Skip to content

Instantly share code, notes, and snippets.

View ipetepete's full-sized avatar

Peter Peterson ipetepete

  • NOIRLab
  • Tucson, AZ
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html, body {
margin: 0;
padding: 0;
@ipetepete
ipetepete / .tmux.conf
Last active November 21, 2016 15:19 — forked from anonymous/.tmux.conf
# Install reattach-to-user-namespace from
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
# remap prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix

KC60 Keyboard end-user tips, tricks, programming notes, etc.

Leimi's note: removed lots of stuff from the original gist of scottjl, (thanks to him by the way!), as in the end some wasn't useful for me. If you are intestered, go check the gist revisions.

The KC60 is kinda like a premade GH60 that was first sold on Massdrop during summer 2015.
It runs on TMK firmware, or something based on it at least (not sure this is the real source for the keyboard but it seems it is), which means it's heavily programmable.
There is a GUI tool (the source of this tool seems to be here) and a command-line tool to ease up the process of programming the board.
**Go check this great article on Key

@ipetepete
ipetepete / English.js
Created January 20, 2016 13:29 — forked from naxmefy/English.js
Unity3D Internationalization (I18N)
#pragma strict
public class English {
public static var lang : Hashtable = {
// General
"game_name": "My Awesome Game"
// Menus
, "new_game" : "New Game"
, "save_game" : "Save Game"
@ipetepete
ipetepete / mersenne-twister.js
Created November 10, 2015 22:41 — forked from banksean/mersenne-twister.js
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
@ipetepete
ipetepete / hn_seach.js
Created October 1, 2015 21:01 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
total = 0, shown = 0,
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments);
// This traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.className === klass) {
@ipetepete
ipetepete / dabblet.css
Created December 28, 2012 23:52 — forked from anonymous/dabblet.css
Button styles
/**
* Button styles
*/
body{
background: #fc6;
font-size: 16px;
font-family: sans-serif;
min-height: 100%;
}