Skip to content

Instantly share code, notes, and snippets.

@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@lkopacz
lkopacz / index.html
Last active May 15, 2019 17:05
Semantic HTML buttons
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<!--This doesn't work when you press Enter and
there's a click event -->
<div id="button-1" role="button" tabindex="0">
Open
@mbostock
mbostock / .block
Last active August 9, 2019 05:54
Mona Lisa Histogram
license: gpl-3.0
height: 1452
redirect: https://observablehq.com/@d3/mona-lisa-histogram
@darrenjaworski
darrenjaworski / functions.php
Last active February 15, 2016 17:46
use custom field suite with wp-api
<?php
add_action( 'rest_api_init', 'example_add_cfs' );
/**
* Add cfs fields to api call for post type example
* Fields will be put in cfs object in json
* @param none
*
* @return null
@ericelliott
ericelliott / gitclean.sh
Created January 31, 2016 04:57
gitclean.sh - cleans merged/stale branches from origin
git remote prune origin
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin
package tank;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.concurrent.TimeUnit;
import javax.swing.JFrame;
import javax.swing.JPanel;
@codybuell
codybuell / README.md
Last active October 23, 2019 22:49
Orbits
@jasesmith
jasesmith / AtomVerticalTabs.md
Last active November 23, 2019 09:40
Vertical file tab list in Atom

Vertical File Tabs in Atom

Add the styles to the .atom/styles.less stylesheet in Atom.

Atom Vertical File Tabs

@jarrodirwin
jarrodirwin / storagePolyfill.js
Last active June 21, 2022 14:27 — forked from remy/gist:350433
LocalStorage/SessionStorage Polyfill with Safari Private Browsing support.
// Refer to https://gist.github.com/remy/350433
try {
// Test webstorage existence.
if (!window.localStorage || !window.sessionStorage) throw "exception";
// Test webstorage accessibility - Needed for Safari private browsing.
localStorage.setItem('storage_test', 1);
localStorage.removeItem('storage_test');
} catch(e) {
(function () {
var Storage = function (type) {
@darrenjaworski
darrenjaworski / 1.csv
Created October 11, 2014 23:38
ou payroll csv
We can't make this file beautiful and searchable because it's too large.
First Name,Last Name,Salary,Position
Patricia,Gilman,"56,987.55",Professor
Debra L,Gentis,"48,274.07",IT Specialist II
Sydney F,Henderson,"22,325.17",IT Support Technician I
David G,Carnevale,"7,980.67",Professor Emeritus
Latifah L,Abdul-Raheem,"38,400.00",Grants Specialist I
David S,Gross,"10,275.00",Professor Emeritus
Tina M,Henderson,"38,894.96",Admissions/Recruitmt Spec I
Peter C,Vail,"9,000.00",Adjunct
Carl B,Van Buskirk,"68,181.24",Tech Project Mgmt Spec III