I hereby claim:
- I am evansolomon on github.
- I am evansolomon (https://keybase.io/evansolomon) on keybase.
- I have a public key whose fingerprint is 681D CFF5 F3F1 3E5D 54C3 CFBF ED5A 7031 FB5C 6B36
To claim this, I am signing this object:
| var https = require('https') | |
| https.get('https://medium.com', function (res) { | |
| res.on('end', function () { | |
| console.log('You will never see this') | |
| }) | |
| }) | |
| https.get('https://medium.com', function (res) { | |
| // This sets the stream to flowing mode and makes sure it gets through all of its |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /* | |
| Example usage: | |
| $template = new Medium_Template( 'Hi, I am {{name|html}}.' ); | |
| echo $template->compile( array( 'name' => '<b>Evan</b>' ) ); | |
| // Hi, I am <b>Evan</b>. | |
| echo $template->compile( array( 'name' => 'someone else' ) ); |
| <?php | |
| class Thing { | |
| private $name = "Evan"; | |
| } | |
| $thing = new Thing(); | |
| class ExtendedThing extends Thing { | |
| function say_name() { | |
| if (isset($this->name)) |
| #/usr/bin/env bash | |
| printenv | grep "^\([[:alnum:]]\|[[:punct:]]\)\+=" | sed 's/=.*$//g' | while read var; do | |
| echo "$var=$(printenv $var)\0" | |
| done |
| #!/usr/bin/env bash | |
| # Go to the repo | |
| echo "Switching to $1" | |
| cd $1 | |
| # Only publish from master | |
| if git branch | ack "\* master" >/dev/null | |
| then | |
| echo "You're on master, good to go" |
| namespace :build do | |
| desc "Name static files by version" | |
| task :version, :roles => :app do | |
| find_static_files = "find #{current_release} -name '*.js' -o -name '*.css'" | |
| capture(find_static_files).split("\n").each do |file| | |
| # Get paths | |
| full_path = file.chomp | |
| relative_path = full_path.clone | |
| relative_path["#{current_release}/"] = '' |
| // Generated by CoffeeScript 1.4.0 | |
| (function() { | |
| (function($) { | |
| return $(function() { | |
| var db; | |
| db = window.wpDebugBar; | |
| return $(document).keydown(function(event) { | |
| var _ref, _ref1; | |
| if (((_ref = db.body) != null ? _ref.hasClass('debug-bar-visible') : void 0) && 27 === event.keyCode) { |
| <?php | |
| /* | |
| Plugin Name: Jetpack Subscribe | |
| Description: Custom subscription UI for Jetpack | |
| Version: 1.0 | |
| Author: Evan Solomon | |
| Author URI: http://evansolomon.me/ | |
| */ | |
| class ES_Jetpack_Subscribe { |
| #!/bin/bash | |
| # Delete core directories | |
| rm -rf wp-includes/ wp-admin/ | |
| # Delete core files in the root | |
| ls -l | ack "^[^d]" | ack "\swp[^\s]*$" | awk '{print $9}' | xargs rm | |
| # Recover wp-config | |
| git checkout wp-config.php |