This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Snippet: [[SnippetName]] | |
| Chunk: [[$ChunkName]] | |
| System Setting: [[++SettingName]] | |
| TV: [[*fieldName/TvName]] | |
| Link tag: [[~PageId? ¶mName=`value`]] | |
| Placeholder: [[+PlaceholderName]] | |
| <?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OBJECTS | |
| ===== | |
| // There are two ways you can create objects: Literal notation and construction notation. | |
| // | |
| // Literal notation uses curly braces: | |
| var james = { | |
| job: "programmer", | |
| married: false, | |
| greet: function() { | |
| console.log("Hello!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and php56-FPM | |
| sudo yum install -y nginx php56-fpm | |
| # Install php56 extensions | |
| sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 86937 isset | |
| 43159 echo | |
| 31697 empty | |
| 29252 substr | |
| 26146 count | |
| 24248 is_array | |
| 22572 strlen | |
| 19365 sprintf | |
| 18090 unset | |
| 16584 str_replace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function factorial_recursive($num) | |
| { | |
| if ($num < 0) { | |
| return 'Param must be larger than zero!!'; | |
| } | |
| if ($num < 2) { | |
| return $num; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function fib($num) { | |
| $iter = function($a, $b, $acc) use (&$iter) { | |
| if ($acc === 0) { | |
| return $b; | |
| } | |
| return $iter($a + $b, $a, $acc - 1); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function fctrl($num) { | |
| $iter = function($num, $acc) use (&$iter) { | |
| if ($num == 1) { | |
| return $acc; | |
| } | |
| return $iter($num - 1, $acc * $num); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| {"caption": "Мозаика", "fields": [ | |
| {"field": "is_active", "caption": "Активно", "inputTVtype": "checkbox", "inputOptionValues": "Да==1"}, | |
| {"field": "image", "caption": "Картинка", "inputTVtype": "image"}, | |
| {"field": "title", "caption": "Название"}, | |
| {"field": "article", "caption": "Артикул"}, | |
| {"field": "country", "caption": "Страна", "description": "(например, Китай)"}, | |
| {"field": "size", "caption": "Размеры, мм", "description": "(например, 300*200)"}, | |
| {"field": "is_new", "caption": "Новинка", "inputTVtype": "checkbox", "inputOptionValues": "Да==1"}, | |
| ]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #1 | |
| "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd | |
| "c:\Users\{%USERPROFILE%}\VirtualBox VMs\VMBitrix5.1.2-i386\VMBitrix5.1.2-i386-disk1.vmdk" | |
| "c:\Users\{%USERPROFILE%}\VirtualBox VMs\VMBitrix5.1.2-i386\VMBitrix5.1.2-i386-disk1.vdi" | |
| --format vdi | |
| #2 | |
| "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd | |
| "c:\Users\{%USERPROFILE%}\VirtualBox VMs\VMBitrix5.1.2-i386\VMBitrix5.1.2-i386-disk1.vdi" | |
| --resize 20000 |
NewerOlder