THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
/* plyml converts Apple plists into YAML, and vice-versa. This is used to make it easier to hack on TextMate and Sublime Text themes. It depends on Apple's "plutil" utility, meaning it is only useful on OSX. */ | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"launchpad.net/goyaml" | |
"os" | |
"os/exec" |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to [email protected] |
alternatively use: http://geoff.greer.fm/lscolors/
The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.
The color designators are as follows:
a black
The pre-commit file listed here is setup to scan files for invalid keywords prior to commit to avoid debug or logging information making its way into production files. Right now it is setup to scan only .js
and .coffee
files for the following keywords:
KEYWORDS_REGEX="console\.(debug|info|log|warn)\(|alert\(|debugger"
EXTENSIONS_REGEX="(.js$|.coffee$)"
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
require 'openssl' | |
class String | |
def encrypt(key) | |
cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt | |
cipher.key = Digest::SHA1.hexdigest key | |
s = cipher.update(self) + cipher.final | |
s.unpack('H*')[0].upcase | |
end |
license: gpl-3.0 |
bid() { | |
local shortname location | |
# combine all args as regex | |
# (and remove ".app" from the end if it exists due to autocomplete) | |
shortname=$(echo "${@%%.app}"|sed 's/ /.*/g') | |
# if the file is a full match in apps folder, roll with it | |
if [ -d "/Applications/$shortname.app" ]; then | |
location="/Applications/$shortname.app" | |
else # otherwise, start searching |
xmllint --format http://xmlsoft.org/html/libxml-xpathInternals.html | perl -nle '/Function: xmlXPath(\w+)Function</ && print lcfirst $1' | |
boolean | |
ceiling | |
concat | |
contains | |
count | |
false | |
floor | |
id |