Skip to content

Instantly share code, notes, and snippets.

View ninetails's full-sized avatar
🏳️‍⚧️
traaa

Nina Kitsu ninetails

🏳️‍⚧️
traaa
View GitHub Profile
@ninetails
ninetails / SimpleStore.js
Created April 11, 2018 16:38 — forked from ksafranski/SimpleStore.js
Simple localStorage function with Cookie fallback for older browsers.
/**
* Simple localStorage with Cookie Fallback
* v.1.0.0
*
* USAGE:
* ----------------------------------------
* Set New / Modify:
* store('my_key', 'some_value');
*
* Retrieve:
@ninetails
ninetails / Vagrantfile
Created February 27, 2018 10:30 — forked from anthonysterling/Vagrantfile
Handy Vagrantfile for IE testing with Vagrant.
# Usage: IE={box} vagrant up
#
# Eg. IE=XPIE6 vagrant up
#
# Password: Passw0rd!
boxes = {
"XPIE6" => "http://aka.ms/ie6.xp.vagrant",
"XPIE8" => "http://aka.ms/ie8.xp.vagrant",
"VistaIE7" => "http://aka.ms/ie7.vista.vagrant",
@ninetails
ninetails / app.go
Created March 2, 2017 22:37 — forked from superbrothers/app.go
Simple Web Server with golang
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func rootHandler(w http.ResponseWriter, r *http.Request) {
@ninetails
ninetails / README.md
Created October 31, 2016 18:50 — forked from plugnburn/README.md
XT.js - DOM construction / templating library in 18 lines of JS, 323 bytes minified

XT.js

Let's close the ultra-small library cycle with some awesome array-based templating. 323 bytes minified.

How to obtain

Just download the minified version here or include it into your code:

@ninetails
ninetails / sprintf.as
Last active August 29, 2015 14:09 — forked from flesch/sprintf.as
function sprintf(){
var args = Array.prototype.slice.call(arguments), f:Array = [], str = args.shift().split("%s");
while (str.length) {
f.push(str.shift(), args.shift() || "");
}
return f.join("");
}
trace(sprintf("Hello %s, how ya %s?", "motherf*cker", "durin"));
@ninetails
ninetails / uri.js
Created August 24, 2014 21:20 — forked from jlong/uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"