Skip to content

Instantly share code, notes, and snippets.

@bennadel
bennadel / preload-images.htm
Created March 27, 2014 11:55
Preloading Images In AngularJS With Promises
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Preloading Images In AngularJS With Promises
</title>
</head>
<body ng-controller="AppController">
@natelandau
natelandau / .bash_profile
Last active June 21, 2026 16:18
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@mbostock
mbostock / .block
Last active May 13, 2024 17:31
Quicksort IV
license: gpl-3.0
@peterlozano
peterlozano / Readme.md
Last active August 29, 2015 14:05
D3.js + Angular.js Demo.

Demo of how to create an Angular.js directive which provides a d3.js visualization.

The data used by the visualisation is provided by a controller and is synced by Angular.

@jarrodirwin
jarrodirwin / storagePolyfill.js
Last active July 14, 2026 13:40 — 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) {
@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

@codybuell
codybuell / README.md
Last active October 23, 2019 22:49
Orbits
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;
@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
@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