Skip to content

Instantly share code, notes, and snippets.

View shanev's full-sized avatar
💭
#BUIDL

shane.stars shanev

💭
#BUIDL
View GitHub Profile
" Git rebase helper for:
" git rebase --interactive
"
" L - view commit log
" p - pick
" e - edit
" s - squash
" r - reword
" D - delete
"
@jimmcgowan
jimmcgowan / EchoPrint Codegen Cocoa Example.m
Created July 9, 2011 11:25
A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and look for a match on EchoNest. For OS X or iOS using Cocoa and Core Audio.
//
// EchoPrint Cocoa Example
// Created by Jim McGowan on 08/07/2011.
// jim at bleepsandpops dot com
//
// A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and
// look for a match on EchoNest. For OS X or iOS. Error checking removed for brevity.
//
// Requires the 'Other C Flags' XCode build setting "-x objective-c++" to compile as Objective-C++
//
@shanev
shanev / coffee_sf.md
Created August 2, 2011 01:13
Work-friendly Coffee Shops in SF

Mission

  • Coffee Bar (3)
  • Stable Cafe (piaf w/ bacon)
  • Haus
  • Philz
  • Ritual
  • Rogers

Hayes Valley

  • Cafe Arlequin
@sorted-bits
sorted-bits / SBCircleProgressBar.h
Created November 19, 2011 07:19
A circle as progressbar
//
// SBCircleProgressBar.h
//
// Created by Wim Haanstra on 17-11-11.
// Copyright (c) 2011 Sorted Bits. All rights reserved.
//
@interface SBCircleProgressBar : UIView
// The maximum value of the progressbar
@shanev
shanev / recipes.md
Last active September 28, 2015 22:08
Shane's recipes

Mushroom bun burger

  • 1lb grass-fed ground beef
  • large portobello mushroom
  • onions/tomatoes/lettuce
  • garlic/salt/pepper
  • oil/ghee

Combine garlic, salt, pepper, beef, and make a patty. Oil cast-iron pan. Sear each side on high heat for 1 minute. Reduce heat and cook each side for an additional 2-3 minutes. Cook mushroom in leftover grease in the pan. Serve burger over mushroom and top with onions/tomato/lettuce. Use lettuce as top bun.

@simonmichael
simonmichael / 2016.journal
Created April 14, 2017 00:38
renaming hledger accounts for tax reporting
; align business expenses with IRS Schedule C categories:
; Advertising
; Business Travel
; Commissions
; Communication
; Contract Labor
; Insurance Payments
; Interest Payments
; Legal and Professional Fees
; Meals and Entertainment
@rajohns08
rajohns08 / BorderButton.swift
Last active November 14, 2017 09:00
iOS / Swift - IBDesignable and IBInspectable working example for a UIButton subclass with a border
import UIKit
@IBDesignable
class BorderButton: UIButton {
@IBInspectable var cornerRadius: CGFloat = 0 {
didSet {
layer.cornerRadius = cornerRadius
layer.masksToBounds = cornerRadius > 0
}
import Foundation
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
extension Data {
init(referencing data: DispatchData) {
self = (data as AnyObject) as! Data
}
@amiller
amiller / TinyDuplex.sol
Last active May 13, 2019 20:38
TinyDuplex.sol: minimalist duplex micropayment channel for Ethereum
pragma solidity ^0.4.22;
// ECE 398 SC - Smart Contracts and Blockchain Security
// http://soc1024.ece.illinois.edu/teaching/ece398sc/spring2018/
// Simpest possible duplex-micropayment channel
// - Funded with an up front amount at initialization
// - The contract creator is called "alice". The other party, "bob", is passed
// as an argument to the Constructor
// - There is no fixed deadline, but instead any party can initiate a dispute,
// which lasts for a fixed time