most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| # -*- Conf -*- | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| showbranch = auto | |
| ui = true | |
| # color.branch | |
| # A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| @interface BaseViewModel : NSObject | |
| - (void)baseMethod; | |
| @end | |
| @implementation BaseViewModel | |
| - (void)baseMethod {} | |
| @end | |
| // --------------------------------------------------------------------------------------------------------------------- |
| #!/usr/bin/env xcrun swift -O | |
| /* | |
| gen.swift is a direct port of cfdrake's helloevolve.py from Python 2.7 to Swift 3 | |
| -------------------- https://gist.github.com/cfdrake/973505 --------------------- | |
| gen.swift implements a genetic algorithm that starts with a base | |
| population of randomly generated strings, iterates over a certain number of | |
| generations while implementing 'natural selection', and prints out the most fit | |
| string. | |
| The parameters of the simulation can be changed by modifying one of the many |
| #import <Foundation/Foundation.h> | |
| // VARIABLE must be a variable declaration (NSString *foo) | |
| // VALUE is what you are checking is not nil | |
| // WHERE is an additional BOOL condition | |
| #define iflet(VARIABLE, VALUE) \ | |
| ifletwhere(VARIABLE, VALUE, YES) | |
| #define ifletwhere(VARIABLE, VALUE, WHERE) \ |
| // | |
| // ARKonamiKeyboardView.h | |
| // Artsy | |
| // | |
| // Created by Daniel Doubrovkine on 3/21/14. | |
| // Copyright (c) 2014 Art.sy. All rights reserved. | |
| // | |
| #import <DRKonamiCode/DRKonamiGestureRecognizer.h> |
| #!/bin/bash | |
| # Run docker to build | |
| #docker run -v $(pwd):/outputs -it amazonlinux:2016.09 \ | |
| # /bin/bash /outputs/build.sh | |
| set -ex | |
| yum update -y | |
| yum install -y \ |
| f <-- find a character | |
| ; <-- repeat find (f) | |
| . <-- repeat action | |
| shift+v <-- select all line | |
| : <-- command (f:x) this can repeat an action |