FROM node:0.12.7
RUN apt-get update -y
RUN apt-get install -y libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev build-essential g++ software-properties-common
RUN mkdir /home/dockerthing
EXPOSE 4000
This file contains 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
constructor(platform: Platform) { | |
platform | |
.ready() | |
.then(() => { | |
// statusBar.overlaysWebView(false); | |
statusBar.styleDefault(); | |
splashScreen.hide(); | |
this.dumblog.realLog = console; |
This file contains 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
foreach ($arr as $key => $val) { | |
if (!is_numeric($key)) { | |
continue; | |
} | |
// do stuff here. | |
} |
I hereby claim:
- I am cthos on github.
- I am cthos (https://keybase.io/cthos) on keybase.
- I have a public key whose fingerprint is B85C 05E8 AC84 D63D 0652 5C6D C80C F249 F9D6 206C
To claim this, I am signing this object:
This file contains 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
string(11) "Phase is 0." | |
array(5) { | |
[0]=> | |
string(51) "/home/vagrant/.composer/vendor/drush/drush/commands" | |
[1]=> | |
string(25) "/usr/share/drush/commands" | |
[2]=> | |
string(20) "/home/vagrant/.drush" | |
[3]=> | |
string(14) "/var/www/drush" |
This file contains 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
function git-push-all() { | |
for i in `git remote`; do | |
echo "Pushing to $i" | |
git push $i $1 | |
done | |
} |
This file contains 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 | |
$test_url = 'https://gist.github.com/2286656'; | |
$bits = explode('/', $test_url); | |
$id = array_pop($bits); | |
$raw_url = 'https://raw.github.com/gist/' . $id; | |
$ch = curl_init($raw_url); |
This file contains 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
require 'ruble' | |
command 'Generate Entity Getter/Setters' do |cmd| | |
cmd.key_binding = 'M1+M2+G' | |
cmd.scope = 'source.php' | |
cmd.output = :replace_document | |
cmd.input = :document | |
cmd.invoke do |context| | |
file = context.TM_SELECTED_FILES.match(/([a-zA-Z0-9]+)\.php/)[1] | |
line = STDIN.read | |
columns = line.scan(/@Column\(name="([^"]+)", type="([^"]+)"/) |
This file contains 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 | |
error_reporting(E_ALL); | |
var_dump(ini_get('display_errors')); | |
var_dump(ini_get('error_reporting')); | |
//set_error_handler('custHandler'); | |
register_shutdown_function('shutdownHandler'); |
This file contains 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 | |
error_reporting(0); | |
set_error_handler('custHandler'); | |
register_shutdown_function('shutdownHandler'); | |
function custHandler($errno, $errstr, $errfile, $errline, $errcontext) | |
{ | |
echo "Custom handler called."; |
NewerOlder