Skip to content

Instantly share code, notes, and snippets.

@SkyLeach
SkyLeach / README.md
Last active September 27, 2018 22:41
Userscript for extracting data from Audible.com

Somewhat tempermental userscript for extracting data from Audible.com

@beesandbombs
beesandbombs / wavingCubes.pde
Created September 11, 2017 22:23
waving cubes
// gif by dave @beesandbombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
#!/usr/bin/env ruby
USAGE = <<EOF
usage: xcode2vimr.rb [path_of_open_xcode_file]
This script talks to Xcode via osascript to determine its cursor's line number
for the given file, then opens VimR to the specified line.
If no path argument is given, it determines the path via the title of the
frontmost Xcode window.
@jdesilvio
jdesilvio / pomodoro.ex
Last active February 18, 2017 05:13
Elixir Pomodoro Timer
defmodule Pomodoro do
@moduledoc """
Adapted from the Countdown module
in 'Programming Elixir' by Dave Thomas.
# Usage:
$ iex pomodoro.ex
iex> Pomodoro.start(15, 5, true)
@kblake
kblake / devcoop_meetup_outline.md
Last active February 18, 2017 21:05
Outline for Dev Coop meetup (June 29th, 2016)
@mvadu
mvadu / grafana custom.ini
Last active November 11, 2023 18:26
nginx config for using grafana, Influxdb via reverse proxy with authentication
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@DoomHammer
DoomHammer / pandoc-pygmentize
Last active December 13, 2021 22:40
Quick-and-dirty pandoc filter to pass all code blocks through pygments highlighter
#!/usr/bin/env python
"""
Pandoc filter to pass all code blocks through pygments highlighter.
"""
from pandocfilters import toJSONFilter, RawBlock
from pygments import highlight
from pygments.lexers import (get_lexer_by_name, guess_lexer, TextLexer)
from pygments.formatters import get_formatter_by_name
@kharmabum
kharmabum / ocmock-cheatsheet.m
Last active October 8, 2022 07:55
OCMock cheatsheet
/*----------------------------------------------------*/
#pragma mark - XCTAsserts
/*----------------------------------------------------*/
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management