Skip to content

Instantly share code, notes, and snippets.

View yields's full-sized avatar
:octocat:
☕ 💻

Amir Abushareb yields

:octocat:
☕ 💻
View GitHub Profile
@yields
yields / gist:6648208
Last active December 23, 2015 14:19
blink pseudo elements
λ blink master grep -nr "::-webkit-" . | sed -En 's/.*(::-webkit-[a-z]+(-[a-z]+)?).*/\1/p' | sort -u
::-webkit-calendar-picker
::-webkit-clear-button
::-webkit-color-swatch
::-webkit-date-and
::-webkit-datetime-edit
::-webkit-details-marker
::-webkit-distributed
::-webkit-file-upload
@yields
yields / gist:5783382
Created June 14, 2013 16:36
a tiny sublime plugin to create files and folders quickly
#
# a tiny sublime plugin to create files and folders quickly:
#
# copy and paste this to you're sublime packages/user folder
# and add a shortcut with the command `touch` to you're sublime keybindings.
#
# Example:
#
# ../baz/foo.js
var Server = require('http').Server
, server = new Server();
server.on('connection', function(socket){
socket.on('readable', function(){
console.log('this will never be invoked!');
console.log('since `socket` has `ondata` method');
NET: 41690 listen2 0.0.0.0 5000 4 false
NET: 41690 _listen2: create a handle
NET: 41690 bind to 0.0.0.0
NET: 41690 onconnection
NET: 41690 _read
NET: 41690 Socket._read readStart
undefined
NET: 41690 onconnection
NET: 41690 _read
NET: 41690 Socket._read readStart
var http = require('http')
, net = require('net');
var server = new http.Server();
server.on('connection', function(socket){
console.log(socket.bytesRead);
@yields
yields / License
Last active December 12, 2015 02:39
quick plugin for st3 to build components on save.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
$shout->get('foo :bar', function ($params) {
print_r($params);
});
@yields
yields / gist:3427308
Created August 22, 2012 16:41
app.utilize();
describe('Application->utilize()')
 ->setup(function () {
   return new Application;
 })
 ->it('should default the mount point to `/`', function () {
   $layer = ['mount' => '/', 'execute' = function () {}, 'len' => 0];
   $this->utilize($layer['execute'])->stack->should->eql([$layer]);
 })
 ->it('should be return the `app`', function () {
   $this->utilize(function () {})->should->eql($this->__obj__);
function describe ($title) {
$bee = bee\Bee::singleton();
return $bee->describe($title);
};
function setup (callable $setup) {
$this->setup = $setup;
return $this;
}
describe('util::wrap()')
->setup(function () {
print_r($this);
exit;
});