Skip to content

Instantly share code, notes, and snippets.

View ipetepete's full-sized avatar

Peter Peterson ipetepete

  • NOIRLab
  • Tucson, AZ
View GitHub Profile
@ipetepete
ipetepete / vintageos keybindings
Created August 8, 2014 16:52
Sublime Text Vintageous Esc Remaping
[
{ "keys": ["j", "k"], "command": "_enter_normal_mode", "args":{"mode":"mode_insert"}, "context":[{"key":"vi_insert_mode_aware"}]}
]
@ipetepete
ipetepete / Spritebuilder crash log
Created September 13, 2014 16:55
Console log output - Spritebuilder crash
Process: SpriteBuilder [23447]
Path: /Applications/SpriteBuilder.app/Contents/MacOS/SpriteBuilder
Identifier: SpriteBuilder
Version: 1.2.1 (1.2.1)
App Item ID: 784912885
App External ID: 700852706
Code Type: X86-64 (Native)
Parent Process: launchd [356]
Responsible: SpriteBuilder [23447]
User ID: 501
package com.bigbaddevil7.example;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
# let emmet expand in mustache files (templates)
'atom-text-editor[data-grammar="text html mustache"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
# let emmet expand in javascript files ( good for templates )
'atom-text-editor[data-grammar="text html javascript"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
# Bind 'j k' to switch to normal mode (vim-mode)
'atom-text-editor.vim-mode.insert-mode':
@ipetepete
ipetepete / dabblet.css
Created December 29, 2011 17:24
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body{
background: #000;
color: rgb(247, 203, 5);
font-family: helvetica, sans-serif;
line-height:1.5em
}
.stage{
@ipetepete
ipetepete / dabblet.css
Created January 4, 2012 16:08
Star Wars Episode Cliff Notes
/**
* Star Wars Episode Cliff Notes
*/
body{
background: #000;
color: rgb(247, 203, 5);
font-family: helvetica, sans-serif;
line-height:1.5em
}
.stage{
@ipetepete
ipetepete / dabblet.css
Created January 4, 2012 16:52
Tree List
/**
* Tree List
*/
nav{ font: 120%/1.5 sans-serif; }
nav ul { -webkit-padding-start: 15px; list-style:none; }
nav li { line-height: 1.5em; -webkit-padding-start: 0.8em; display:list-item; }
nav li:before { content: "» "; color: lightblue; font-size: 1.1em; margin-top: -5px; margin-right: 5px; vertical-align: middle; display: inline-block;}
@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 / index.html
Created August 29, 2012 16:38
I wanted to make form controls a little more finger friendly using the latest/greatest tricks. All while maintaining accessibility. Some solutions I found involved using images, and display: none. Unacceptable. This uses plain 'ol CSS to get the job done
<h3>The Check-BIOX!</h3>
<input type="checkbox" id="howudoin"/> <label for="howudoin"> Sup?</label>
<h3>The ham radio group</h3>
<div>
<input type="radio" name="ham" value="1" id="brkrbrkr"/> <label for="brkrbrkr">Breaker breaker</label>
</div><div>
<input type="radio" name="ham" value="2" id="tenfour"/>
<label for="tenfour">10-4</label>
</div>
@ipetepete
ipetepete / dabblet.css
Created August 31, 2012 20:40
Untitled
h2{ font-size: 0.3em;}
h2:after{
display: block;
content: "sup";
font-size: 24px;
}