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 / dabblet.css
Created January 21, 2013 21:51
CSS Percentage infographic
/**
* CSS Percentage infographic
*/
body{
background: #fff;
font-size: 16px;
}
@ipetepete
ipetepete / dabblet.css
Created January 22, 2013 18:01
Info block
/* Info block */
body{
background: #fff;
}
.info_graf{
perspective: 500px;
perspective-origin-x: 0px;
display: inline-block;
@ipetepete
ipetepete / dabblet.css
Created January 22, 2013 19:33
Info block
/* Info block */
body{
background: #fff;
}
.info_graf{
perspective: 500px;
perspective-origin-x: 0px;
display: inline-block;
@ipetepete
ipetepete / dabblet.css
Created February 21, 2013 19:44
Feature selector styled
/**
* Feature selector styled
*/
body{
background: #f3f3f3;
}
.feature-selector{
position:relative;
box-shadow: 2px 2px 0px #5486AC;vertical-align: top;margin: 3px;display: inline-block !important;border-radius: 25px;padding: 0.5em;background: #7ABCED;clear: both;text-align: right;
@ipetepete
ipetepete / index.html
Created February 25, 2013 21:47
A CodePen by Peter Peterson. Simple input incrementer/decrementer - Simple controls to increment or decrement an input field (no validation, formatting added, assuming you've entered in a valid number) Proof of concept, accessibility hasn't been addressed, javascript required.
<section class="qty">
<label>Quantity</label>
<input name="quantity" value="5">
<div class="controls-wrapper">
<a href="#" class="minus">-</a>
<a href="#" class="plus">+</a>
</div>
</section>
@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 / 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) {