Skip to content

Instantly share code, notes, and snippets.

Syntax

Postprocessing

Semicolons will be added to the token stream, using the following rules:

TODO

Types

@hzamani
hzamani / keep-direction.user.js
Last active October 4, 2016 14:35
Add bidi support to Google Keep
// ==UserScript==
// @name Google Keep Direction
// @namespace https://github.com/hzamani/
// @description Add bidi support to Google Keep
// @include https://keep.google.com*
// @run-at document-end
// @version 2.0
// ==/UserScript==
var tag = document.createElement('style');
@hzamani
hzamani / HowToAddWebpackToPhoenix.md
Last active December 11, 2015 10:49
Configure phoenix framework to use webpack as assets manager
  1. For new projects run mix phoenix.new with --no-brunch option and for existing projects remove brunch related things.

  2. create package.json file:

echo '{"private": true}' > package.json
  1. install webpack and loaders you want to use:
@hzamani
hzamani / gist:c446bea100e0c55b6972
Last active August 29, 2015 14:07
Try to have higher order messages (HOM) in ruby :-)
module Messaging
def method_missing(name, *args, &block)
each do |item|
item.send(name, *args, &block)
end
end
def compose(op)
case op
when Symbol