https://github.com/miksago/jade-tmbundle
https://github.com/LearnBoost/stylus/tree/master/editors
~/Downloads/
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
//: Playground - noun: a place where people can play | |
import UIKit | |
import ImageIO | |
import MobileCoreServices | |
let TEST_IMAGE: String = "replace.jpg" | |
let beach: UIImage = UIImage(named: TEST_IMAGE)! | |
let imageData: Data = UIImageJPEGRepresentation(beach, 1)! |
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
SELECT pods.name, stats_metrics.download_total, stats_metrics.download_week, stats_metrics.app_total, stats_metrics.app_week FROM stats_metrics JOIN pods ON stats_metrics.pod_id = pods.id ORDER BY app_total DESC LIMIT 300; |
// ***note*** this is ARC enabled code | |
// DLog will output like NSLog only when the DEBUG variable is set | |
// ALog will always output like NSLog | |
// ULog will show the UIAlertView only when the DEBUG variable is set | |
#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
#ifdef DEBUG | |
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |
#!/usr/bin/env ruby | |
file = File.expand_path(ARGV[0] || (STDERR.puts('you must specify a ruby file'); exit(-1))) | |
# Run in RVM | |
exec("[[ -s \"$HOME/.rvm/scripts/rvm\" ]] && source \"$HOME/.rvm/scripts/rvm\" && rvm use YOUR_RUBY@YOUR_GEMSET && ruby #{file}") | |
# ends here |