Skip to content

Instantly share code, notes, and snippets.

@b-outlaw
b-outlaw / insert_newline_xcode.md
Created May 1, 2019 20:58
Xcode – Insert Newline Before/After
  1. Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
  1. Open IDETextKeyBindingSet.plist with a text editor (not Xcode's plist editor).

  2. Add this in:

Keybase proof

I hereby claim:

  • I am b-outlaw on github.
  • I am outlaw (https://keybase.io/outlaw) on keybase.
  • I have a public key ASAM-7lYSrtUhUTG-eszIHGsX8GgepR3IPI_6WRMX7WFXAo

To claim this, I am signing this object:

git log --oneline --no-merges feature ^master | wc -l
////////////////////////////////////////////////////////////////////////////////
// Base icon
////////////////////////////////////////////////////////////////////////////////
.icon {
@include hide-text;
display: inline-block;
//////////////////////////////////////////////////////////////////////////////
// Icon modifiers
//////////////////////////////////////////////////////////////////////////////
@b-outlaw
b-outlaw / FancyLog.h
Created January 28, 2015 22:26
Fancy Logging
#ifndef FancyLog_h
#define FancyLog_h
#define __FANCY_FILE__ [[NSString stringWithUTF8String:__FILE__] lastPathComponent]
#ifndef FancyLog
#ifdef DEBUG
#define FancyLog(fmt, ...) NSLog((@"%s [%@:%d] - " fmt), __PRETTY_FUNCTION__, __FANCY_FILE__, __LINE__, ##__VA_ARGS__);
#else
#define FancyLog( s, ... )
@b-outlaw
b-outlaw / vim_replicators
Created May 30, 2013 21:48
Replicate basic VIM navigation key bindings. Just put this in your User Key Bindings.
{ "keys": ["ctrl+h"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "lines", "forward": true} }
@b-outlaw
b-outlaw / compass_retina_sprites.scss
Created February 11, 2013 19:25
This gist is for creating regular and retina sprite sheets. Put the sprite pieces in their appropriate folders and just include the appropriate class name on your element.
@import "compass/utilities/sprites";
@import "compass/css3/background-size";
$sprites: sprite-map("sprites/*.png"); /**/
$sprites-retina: sprite-map("sprites-retina/*.png"); /**/
$sprite-url: sprite-url($sprites);
$sprite-retina-url: sprite-url($sprites-retina);
@mixin sprite-background($name) {