Skip to content

Instantly share code, notes, and snippets.

@jesseXu
jesseXu / DefaultKeyBinding.dict
Created March 12, 2012 08:28
xcode keybindings for emacs emulation
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* To use: copy this file to ~/Library/KeyBindings/
* after that any Cocoa applications you launch will inherit these bindings
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
@jesseXu
jesseXu / maskview.swift
Created August 30, 2016 23:51
Mask View
UIView *overlay = [[UIView alloc] initWithFrame:window.bounds];
overlay.backgroundColor = [UIColor colorWithHex:0x3ED4B6];
UIBezierPath *path = [UIBezierPath bezierPathWithRect:overlay.bounds];
// transparent circle rect
CGRect rect = CGRectMake(CGRectGetMidX(overlay.bounds) - 41, CGRectGetMidY(overlay.bounds) - 41, 82, 82);
[path appendPath:[UIBezierPath bezierPathWithOvalInRect:rect]];
CAShapeLayer *shapeLayer = [CAShapeLayer layer];

Emacs - What I learned today

  • 10/05/2017

    I can edit gist in Emacs using gist package. (added in Emacs ゚ヽ(*´∀`)ノ゚)

    Reload gist list: g

  • 12/05/2017