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
#!/usr/bin/env python | |
from os.path import * | |
from SCons.Builder import * | |
from SCons.Script.SConscript import SConsEnvironment | |
def TOOL_APP_BUNDLE(env): | |
if env['PLATFORM'] != 'darwin': | |
return |
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
#!/usr/bin/env ruby | |
# Note: original hint from Florian Pilz @ http://stackoverflow.com/questions/4307192/is-it-possible-to-hook-a-git-commit-to-the-save-on-textmate. Slightly updated with git path (homebrew) and change to git_answer. | |
filename = ENV["TM_FILEPATH"].split("/").last | |
require ENV['TM_SUPPORT_PATH'] + '/lib/ui' | |
message = TextMate::UI.request_string(:title => "Committing changes of #{filename}", :prompt => "Please enter the commit message for your changes.") | |
`/usr/local/bin/git add #{ENV["TM_FILEPATH"]} 2>&1` | |
commit = `/usr/local/bin/git commit -m "#{message}" 2>&1` |
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
<IfModule mod_deflate.c> | |
#The following line is enough for .js and .css | |
AddOutputFilter DEFLATE js css | |
AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html | |
#The following lines are to avoid bugs with some browsers | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> |
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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>Terminal</appname> | |
<equal>com.apple.Terminal</equal> | |
</appdef> | |
<item> | |
<name>TMUX Key Remappings</name> | |
<item> | |
<name>TMUX: Right Control to Ctrl+B</name> |
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
--log_gc (Log heap samples on garbage collection for the hp2ps tool.) | |
type: bool default: false | |
--expose_gc (expose gc extension) | |
type: bool default: false | |
--max_new_space_size (max size of the new generation (in kBytes)) | |
type: int default: 0 | |
--max_old_space_size (max size of the old generation (in Mbytes)) | |
type: int default: 0 | |
--max_executable_size (max size of executable memory (in Mbytes)) | |
type: int default: 0 |
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
import _ from 'lodash'; | |
export function enumNumber(... params) { | |
return Object.freeze(_.mapValues(_.invert(params), Number)); | |
} | |
export function enumString(... params) { | |
return Object.freeze(_.mapKeys(params)); | |
} |
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
import { Dispatcher } from 'flux' | |
function isPromise(obj) { | |
return obj && (typeof obj === 'object' || typeof obj === 'function') && | |
typeof obj.then === 'function' | |
} | |
// the minimalest | |
class Alt { | |
constructor() { |
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
import Alt from './' | |
import AltTestingUtils from './utils/AltTestingUtils' | |
const alt = new Alt() | |
const Store = alt.createStore(class { | |
constructor() { | |
this.x = 2 | |
this.exportPublicMethods({ |
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
import Alt from './' | |
const alt = new Alt() | |
const ShopActions = alt.generateActions('addItem', 'taxPercentChanged') | |
const ItemStore = alt.createStore({ | |
displayName: 'ItemStore', | |
state: { |
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
/* Slash and burn / shock and awe / total war CSS reset for Chrome specifically */ | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1, | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1, | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1, | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1, | |
:-webkit-any(article,aside,nav,section) h1, | |
::-webkit-input-placeholder, | |
:focus, | |
a:-webkit-any-link, |
OlderNewer