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 MyThread extends Thread | |
{ | |
public function run() | |
{ | |
sleep(1); | |
echo "ran\n"; | |
} | |
} |
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
" ]m -> mmmm (next method) MMMM (prev method) | |
call submode#enter_with('nextMethod', 'n', '', ']m', ']m') | |
call submode#leave_with('nextMethod', 'n', '', '<Esc>') | |
call submode#map('nextMethod', 'n', '', 'm', ']m') | |
call submode#map('nextMethod', 'n', '', 'M', '[m') | |
" [m -> mmmm (prev method) MMMM (next method) | |
call submode#enter_with('prevMethod', 'n', '', '[m', ']m') | |
call submode#leave_with('prevMethod', 'n', '', '<Esc>') | |
call submode#map('prevMethod', 'n', '', 'm', '[m') |
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
# http://www.doknowevil.net/2010/10/18/sorry-screen-tmux-is-better-but-here-are-some-screen-lik-hotkeys/ | |
unbind C-b | |
set -g prefix C-a | |
bind-key a send-prefix | |
# other ^A | |
unbind ^A | |
bind ^A last-window |
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 | |
namespace MyProject; | |
class Person | |
{ | |
private $data; | |
/** | |
* | |
* [ |
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` |
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
<?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
<?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
/** | |
* @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
# 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 |
OlderNewer