Skip to content

Instantly share code, notes, and snippets.

View berkus's full-sized avatar
🎯
Haptic drift

Berkus Decker berkus

🎯
Haptic drift
View GitHub Profile
@berkus
berkus / gist:2651413
Created May 10, 2012 06:25 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@berkus
berkus / gist:4090915
Created November 16, 2012 21:07
Test is green
def collapse(lines_of_text):
return ["I am a line of text","I'm an adjacent line", "I'm not adjacent to the first line"]
@berkus
berkus / index.html
Last active December 13, 2015 18:08 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<div style="max-width:600px; -webkit-transform:rotate(0deg);">
<scene id="scene1" width="400px">
<label t="translate(0,346) rotate(-3)">
<tspan x="0" y="0em">One crazy day</tspan>
;
; Selfer.
;
; Shikhin Sethi, the author of selfer, has dedicated the work to the public domain
; by waiving all of his or her rights to the work worldwide under copyright law,
; including all related and neighboring rights, to the extent allowed by law.
;
; You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
;
; https://creativecommons.org/publicdomain/zero/1.0/
;
; Selfer.
;
; Shikhin Sethi, the author of selfer, has dedicated the work to the public domain
; by waiving all of his or her rights to the work worldwide under copyright law,
; including all related and neighboring rights, to the extent allowed by law.
;
; You can copy, modify, distribute and perform the work, even for commercial purposes,
; all without asking permission.
;
//
// SWFHTTPClient
// RACCancelTest
//
// Created by Nikolay Kasyanov on 29.03.13.
// Copyright (c) 2013 Softwear Finance. All rights reserved.
//
#import "SWFHTTPClient.h"
@implementation SWFHTTPClient {
# Copyright (C) 2011 Anurag Priyam - MIT License
module Jekyll
# Jekyll plugin to generate tag clouds.
#
# The plugin defines a `tag_cloud` tag that is rendered by Liquid into a tag
# cloud:
#
# <div class='cloud'>
//
// RemoteEntity.h
//
// Created by Christopher Bradford on 5/6/10.
// Copyright 2010 INM United. All rights reserved.
//
@interface RemoteEntity : NSManagedObject
{
@berkus
berkus / ninja-1.3.4-mavericks.patch
Created September 16, 2013 14:24
brew ninja 1.3.4 patch on OSX Mavericks
--- ninja-1.3.4/src/manifest_parser.cc.orig 2013-09-16 17:23:25.000000000 +0300
+++ ninja-1.3.4/src/manifest_parser.cc 2013-09-16 17:23:31.000000000 +0300
@@ -121,7 +121,7 @@
if (key == "depth") {
string depth_string = value.Evaluate(env_);
- depth = atol(depth_string.c_str());
+ depth = stol(depth_string.c_str());
if (depth < 0)
return lexer_.Error("invalid pool depth", err);