Skip to content

Instantly share code, notes, and snippets.

View jakiestfu's full-sized avatar
🌺

Jacob Kelley jakiestfu

🌺
View GitHub Profile
@psobot
psobot / bouncer.py
Last active October 22, 2024 01:22
Logic Pro X Project Bounce script
import os
import sys
import time
import atomac
import subprocess
if len(sys.argv) < 2:
print "Usage: bouncer.py <path_to_logic_project> (<path_to_logic_project>)"
os.exit(1)
@paulirish
paulirish / bling.js
Last active July 23, 2025 07:08
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@jakiestfu
jakiestfu / aliases.sh
Last active July 30, 2019 19:51
Useful Git Aliases
# Git Destroy
# Deletes a branch locally and on the origin
# git destroy <branch>
git config --global alias.destroy '!g() { git branch -D $1 && git push origin $1 --delete; }; g'
# Git Circle CI
# Opens the projects builds in Circle
# git cci
git config --global alias.cci '!g() { branch=`git rev-parse --abbrev-ref HEAD`; top_level=`git rev-parse --show-toplevel`; repo=`basename $top_level`; url="https://circleci.com/gh/MakerStudios/$repo/tree/$branch"; open $url; }; g'
@chris-rock
chris-rock / gta_net.sh
Last active November 28, 2018 17:27
gta2 mac with network
# download gta from http://www.rockstargames.com/classics/
# download wine from http://winebottler.kronenberg.org/
# or install wine via brew install wine
# change export path if you are using brew install wine
export WINEPATH=/Applications/Wine.app/Contents/Resources
export PATH=$PATH:$WINEPATH/bin
# direplay support for network
brew install winetricks
@jakiestfu
jakiestfu / ko-else.js
Created May 28, 2014 05:42
This is an almost working "else" binding for Knockout.js. It monkey patches the "if" binding and keeps a stack of the last returned values from the bindings. Every "else" binding is actually an if binding with the negated value of the last if bindings return set in a preprocessor. Currently doesn't work with multiple bindings. DOH!
(function(){
var bindingKey = 'else',
stack = [],
_if = ko.bindingHandlers.if,
_init = _if.init
_update = _if.update;
ko.bindingHandlers[bindingKey] =
{
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}
@jakiestfu
jakiestfu / git.config.sh
Last active April 16, 2016 03:40
My favorite git snippets/settings
git config --global color.ui true
git config --global alias.undo-commit 'reset --soft HEAD^'
git config --global push.default current
@wandernauta
wandernauta / sp
Last active June 3, 2025 10:02
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
# coding=UTF-8
from __future__ import division
import nltk
from collections import Counter
# This is a simple tool for adding automatic hashtags into an article title
# Created by Shlomi Babluki
# Sep, 2013
@maccman
maccman / jquery.ajax.queue.coffee
Last active January 13, 2018 12:03
Queueing jQuery Ajax requests. Usage $.ajax({queue: true})
$ = jQuery
queues = {}
running = false
queue = (name) ->
name = 'default' if name is true
queues[name] or= []
next = (name) ->