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 | |
| declare(strict_types=1); | |
| /** | |
| * Walks nested array structures to retrieve values. | |
| */ | |
| class ArrayWalkerReference | |
| { | |
| /** |
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
| <template> | |
| <div> | |
| <button type="button" @click="createElement()">Create element</button> | |
| <button type="button" @click="prependRow()">+</button> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| methods: { |
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 printMemoryUsage() { | |
| gc_collect_cycles(); | |
| printf("Memory used: %.4fMB\n", memory_get_usage() / 1024 / 1024); | |
| } | |
| gc_enable(); | |
| $batchCount = 1000; | |
| $iterations = 10000; |
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
| { | |
| "version": "1.0.0", | |
| "summary": "Tic Tac Toe practice project", | |
| "repository": "https://github.com/amcsi/elm-tic-tac-toe.git", | |
| "license": "MIT", | |
| "source-directories": [ | |
| "." | |
| ], | |
| "exposed-modules": [], | |
| "dependencies": { |
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
| # deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://gb.archive.ubuntu.com/ubuntu/ utopic main restricted | |
| deb-src http://gb.archive.ubuntu.com/ubuntu/ utopic main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://gb.archive.ubuntu.com/ubuntu/ utopic-updates main restricted |
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
| /** | |
| * @author amcsi / Szerémi Attila | |
| **/ | |
| #include <stdio.h> | |
| /** | |
| * Returns the length of a string | |
| **/ | |
| int strlen(char* str) { |
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 | |
| class A { | |
| protected $protectedProperty = 'default'; | |
| public function get() | |
| { | |
| return $this->protectedProperty; | |
| } | |
| } |
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 | |
| return array( | |
| 'router' => array( | |
| 'router_class' => 'Zend\Mvc\Router\Http\TranslatorAwareTreeRouteStack', | |
| 'routes' => array( | |
| 'base' => array( | |
| 'type' => 'Literal', | |
| 'options' => array( | |
| 'route' => '/base', | |
| 'defaults' => array( |
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
| #!/bin/sh | |
| # | |
| # This is a script to run syntax check (via `sh -n $filename`) but it | |
| # supports recursive checking and --quiet | |
| QUIET=0 | |
| while [ "$1" != "" ]; do | |
| PARAM=`echo $1 | awk -F= '{print $1}'` | |
| VALUE=`echo $1 | awk -F= '{print $2}'` | |
| case $PARAM in |
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
| # This file is loaded by vim when calling :sh | |
| # The purpose of this file is to set up PS1 to show that you are in a shell | |
| # opened by vim. | |
| source ~/.bashrc | |
| export VIMEXTRA='' | |
| if [[ -z "$VIMSHELL" ]]; then | |
| export VIMSHELL=1 | |
| else | |
| export VIMSHELL=`expr $VIMSHELL + 1` |