Skip to content

Instantly share code, notes, and snippets.

Michael B heptal

  • Baton Rouge, LA
Block or report user

Report or block heptal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kizzx2 / hammerspoon-move-resize.lua
Last active Dec 26, 2019
Hammerspoon script to move/resize window under cursor
View hammerspoon-move-resize.lua
-- Inspired by Linux alt-drag or Better Touch Tools move/resize functionality
function get_window_under_mouse()
-- Invoke `hs.application` because `hs.window.orderedWindows()` doesn't do it
-- and breaks itself
local _ = hs.application
local my_pos =
local my_screen = hs.mouse.getCurrentScreen()
chroth7 /
Last active Dec 6, 2017
React/D3 Resources

React <-> D3 Resources

Thanks for all the stars.

Due to unexpected demand, I move this to a proper github repo, see here:

I would very much like to get your PRs there, thank you!

View DataBuffer.swift
class DataBuffer {
var internalData: NSData;
init(fromData: NSData) {
self.internalData = NSData.dataWithData(fromData) as NSData;
init(fromFilePath: String) {
self.internalData = NSData.dataWithContentsOfFile(fromFilePath, options: .DataReadingMappedIfSafe, error: nil) as NSData;
gridaphobe / god-state.el
Last active Nov 21, 2016
evil-mode god state
View god-state.el
(evil-define-state god
"God state."
:tag " <G> "
:message "-- GOD MODE --"
:entry-hook (evil-god-start-hook)
:exit-hook (evil-god-stop-hook)
:input-method t
:intercept-esc nil)
(defun evil-god-start-hook ()
jasonrudolph /
Last active Jan 8, 2020
5 entertaining things you can find with the GitHub Search API
threedaymonk / srutis.clj
Created Aug 16, 2012
Hacking Chris Ford's Overtone code to play Indian scales.
View srutis.clj
(ns noize.core
(:use [ :exclude [midi->hz sharp flat scale run pitch shift]]))
(definst harps# [freq 440]
(let [duration 1]
(line:kr 1 1 duration FREE)
(pluck (* (white-noise) (env-gen (perc 0.001 5) :action FREE)) 1 1 (/ 1 freq) (* duration 2) 0.25))))
(def midi-0 8.1757989156)
brandonb927 /
Last active Jan 13, 2020
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here
erikh /
Created Mar 31, 2012 — forked from DAddYE/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
lrvick /
Created Sep 1, 2011
Simple Websocket echo client/server with Flask and gevent / gevent-websocket
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from flask import Flask, request, render_template
app = Flask(__name__)
def index():
return render_template('index.html')
jordandobson / vignette.css
Created Nov 25, 2010
Examples of adding a Vignette to Photos with CSS3 Gradients. Code sampled from:
View vignette.css
/* Border & Vignette Setup */
position: relative;
display: block;
line-height: 0;
width: 500px;
height: 333px;
margin-bottom: 2em;
border: 1em solid #fff;
You can’t perform that action at this time.