Skip to content

Instantly share code, notes, and snippets.

View lamogura's full-sized avatar

Justin Kovalchuk lamogura

  • TeamSofa
  • Tokyo, Japan
View GitHub Profile
@kwylez
kwylez / EXIFImage-playground.swift
Created February 1, 2017 14:10
Modifying EXIF Data with Swift 3
//: 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)!
@wesbos
wesbos / tab-trigger.js
Created November 16, 2015 19:33
How to properly get a TAB trigger working with Emmet inside of JSX
{
"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": [
{
@orta
orta / _SQL.sql
Last active November 8, 2016 12:12
Top 300 Pods by Application Integrations
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;
@lamogura
lamogura / nslog_macros.h
Created December 8, 2012 16:36
NSLog() Macros for iOS Development
// ***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__);
@jakebellacera
jakebellacera / rvm_ruby
Created January 17, 2012 23:00
Build in Sublime Text 2 with your RVM ruby. mv to ~/bin && chmod +x (with custom gemset features)
#!/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
@csanz
csanz / jade_stylus_sublime.md
Created July 11, 2011 19:22
Getting Jade and Stylus working w/ Sublime Text 2

Download Jade and Stylus bundles

https://github.com/miksago/jade-tmbundle
https://github.com/LearnBoost/stylus/tree/master/editors

~/Downloads/

Create directories:

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages