This file contains hidden or 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
if (typeof String.prototype.trim !== 'function') { | |
String.prototype.trim = function() { | |
return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1"); | |
}; | |
} |
This file contains hidden or 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
function encode(str) { | |
if (!str) { return; } | |
if (/[^a-z]/i.test(str)) { throw Error('Letters only'); } | |
var len = str.length, | |
i = 1, | |
output = '', | |
counter = 1; | |
for (; i <= len; i++) { |
This file contains hidden or 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
[user] | |
name = Kai Mallea | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
st = status | |
co = checkout | |
br = branch | |
lg = log --name-only --graph |
This file contains hidden or 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
[2013-05-10 14:10:15] ERROR 2: include_once(/var/www/phabricator/phabricator/src/storage/exception/AphrontQuerySchemaException.php): failed to open stream: No such file or directory at [/var/www/phabricator/libphutil/src/__phutil_library_init__.php:294] | |
#0 PhutilBootloader::executeInclude called at [/var/www/phabricator/libphutil/src/__phutil_library_init__.php:294] | |
#1 PhutilBootloader::executeInclude(/var/www/phabricator/phabricator/src/storage/exception/AphrontQuerySchemaException.php) called at [/var/www/phabricator/libphutil/src/__phutil_library_init__.php:270] | |
#2 PhutilBootloader::loadLibrarySource(phabricator, storage/exception/AphrontQuerySchemaException.php) called at [/var/www/phabricator/libphutil/src/symbols/PhutilSymbolLoader.php:385] | |
#3 PhutilSymbolLoader::loadSymbol(Array of size 5 starting with: { type => class }) called at [/var/www/phabricator/libphutil/src/symbols/PhutilSymbolLoader.php:291] | |
#4 PhutilSymbolLoader::selectAndLoadSymbols() called at [/var/www/phabricator/libphutil/src/__phutil_ |
This file contains hidden or 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
require.config({ | |
baseUrl: (function determineBaseUrl() { | |
var environments = { | |
'default': '/ui/scripts/js/', | |
'dev.trutv.com': '//z.devcdn.turner.com/trutv/trutv.com/ui/scripts/js/', | |
'www.trutv.com': '//z.cdn.turner.com/trutv/trutv.com/ui/scripts/js/' | |
}; | |
return ( environments[window.location.hostname] || environments.default ); | |
})() |
This file contains hidden or 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
// Media Queries in Sass 3.2 | |
// | |
// These mixins make media queries a breeze with Sass. | |
// The media queries from mobile up until desktop all | |
// trigger at different points along the way | |
// | |
// And important point to remember is that and width | |
// over the portrait width is considered to be part of the | |
// landscape width. This allows us to capture widths of devices | |
// that might not fit the dimensions exactly. This means the break |
This file contains hidden or 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
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( '/home/ubuntu/updatesite' ); | |
} |
This file contains hidden or 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
set nocompatible | |
filetype on | |
filetype plugin on | |
filetype indent on | |
syntax on | |
set ruler | |
set tabstop=4 |
This file contains hidden or 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
.group:before, | |
.group:after { | |
content: ""; | |
display: table; | |
} | |
.group:after { | |
clear: both; | |
} | |
.group { | |
zoom: 1; /* IE6&7 */ |
This file contains hidden or 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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |