Skip to content

Instantly share code, notes, and snippets.

View rfinz's full-sized avatar

Raymond Finzel rfinz

View GitHub Profile
@namuol
namuol / INSTALL.md
Last active December 11, 2024 12:21
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@bzg
bzg / emacs-strip.el
Last active January 2, 2023 21:22
Emacs, naked
;; Prevent the cursor from blinking
(blink-cursor-mode 0)
;; Don't use messages that you don't read
(setq initial-scratch-message "")
(setq inhibit-startup-message t)
;; Don't let Emacs hurt your ears
(setq visible-bell t)
;; You need to set `inhibit-startup-echo-area-message' from the
;; customization interface:
@burtlo
burtlo / !result.md
Last active December 29, 2015 06:39

The Problem

I wanted to use a background gradient to represent the types of a Pokémon. There are 18 possible Pokémon types. Pokémon can have one type and some have two types. This leads to roughly 324 combinations (When a Pokémon is one type I simply double that type) or 171 combinations (18 as a triangular number) if I order the types.

The Result

Static Image: Pokemon Types Live: http://attackdex.herokuapp.com/

The Method

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@segphault
segphault / huetest.py
Created November 29, 2012 07:26
Adjust brightness of Hue bulb
import json, urllib2
CLIENT_IP = "xxxx"
CLIENT_ID = "xxxx"
def build_url(endpoint):
return "http://{0}/api/{1}/{2}".format(CLIENT_IP, CLIENT_ID, endpoint)
def send(endpoint, value):
url = build_url(endpoint)
@redinger
redinger / Emacs.md
Created November 26, 2011 03:22
Setting up Emacs daemon on OS X

Setting up Emacs daemon on OS X

Tired of waiting for emacs to start on OS X? This step by step guide will teach you how to install the latest version of emacs and configure it to start in the background (daemon mode) and use emacsclient as your main editor.

Install Cocoa Emacs

Download the latest pretest version of [Emacs for Mac OS X]: http://emacsformacosx.com/builds