Skip to content

Instantly share code, notes, and snippets.

View jihchi's full-sized avatar
🦀

Jihchi Lee jihchi

🦀
View GitHub Profile
@Grawl
Grawl / prefix-free.styl
Created February 4, 2012 08:29 — forked from sapegin/gist:1735915
-prefix-free for Stylus
// #### it's compilable -prefix-free
// © 2011 Artem Sapegin http://sapegin.ru
// + 2011 Grawl http://grawl.ru
// + radial-gradient and other rules with vendor prefixes added by Grawl.
// add your fixes to My table of vendor prefixes there: http://goo.gl/3hPfR
/* mask:
parameter()
-webkit-parameter arguments
-moz-parameter arguments
-ms-parameter arguments
@jhen0409
jhen0409 / .babelrc
Last active November 15, 2015 17:40
Node 4.0.0 babel 5 blacklist
{
"stage": 0,
"blacklist": [
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes", // Don't black this if you are using ES7 classes features
"es6.forOf",
"es6.templateLiterals",
"es6.constants",
"es6.properties.computed",
@dfkaye
dfkaye / sublime-text-2-cheat-win
Last active December 16, 2015 08:38
Sublime Text 2 cheat sheet for Windows - ST2 is amazing
These are my own commands, shortcuts, configurations for sublime text 2 on windows
There's also a really good one at http://www.sublimetext.com/forum/viewtopic.php?f=2&t=10615.
sublime text 2 documentation at
http://www.sublimetext.com/docs/2/
preferences
@ch-gilbert
ch-gilbert / Sublime-BracketHighlighter-Style.xml
Last active December 20, 2015 12:19
<Sublime BracketHighlighter> Highlight Style Configuration (add this part config into your color theme file)
<!--BracketHighlighter-->
<dict>
<key>name</key>
<string>Bracket Unmatched</string>
<key>scope</key>
<string>brackethighlighter.unmatched</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF0000</string>
@laurisvan
laurisvan / simulate_3g.sh
Last active December 24, 2015 10:19
Simple 3G emulation on OS/X. Remember to reset the IP Firewall after doing this by 'sudo ipfw flush''.
#!/bin/sh
#
# simulate_3g.sh - Simulate a sluggish 3G network with delays & packet loss
# Usage: simulate_3g.sh 8080 8081
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
anonymous
anonymous / gist:7407896
Created November 11, 2013 04:31
Small, moderately scale-able library boilerplate using an immediately invoked object expression
!{
//convenience methods here for create and expose via this
create: function(options){
//constructor logic here
var created = Object.create(this.fn);
var args = [].slice.call(arguments);
this.plugins.forEach(function(plugin){
plugin.apply(created, args);
});
return created;
@vjpr
vjpr / README.md
Last active February 4, 2016 21:29 — forked from skevy/gist:8a4ffc3cfdaf5fd68739
Reduce boilerplate in Redux

Reduce boilerplate in Redux

  • Create actions similar to Flummox.
  • Generate action ids.
  • Supports actions with promises, and therefore ES7 async.
@kurtmilam
kurtmilam / deep_compact_javascript_objects_underscore_lodash_mixin
Last active April 16, 2016 05:20
Underscore.js / Lodash Mixin to deep compact an object
/*The MIT License (MIT)
Copyright (c) 2014 Kurt Milam - http://xioup.com | Source: https://gist.github.com/kurtmilam/886b705fb0eb03001c77
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN AC
@erikroyall
erikroyall / evento.js
Last active September 23, 2016 17:03
A cross-browser event handling system
// Evento - v1.0.0
// by Erik Royall <erikroyalL@hotmail.com> (http://erikroyall.github.io)
// Dual licensed under MIT and GPL
// Array.prototype.indexOf shim
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
'use strict';