Skip to content

Instantly share code, notes, and snippets.

View crismanNoble's full-sized avatar

Cris Noble crismanNoble

View GitHub Profile
@crismanNoble
crismanNoble / dabblet.css
Created February 9, 2012 20:05
Animated QR Code or Where it Goes Nobody Knows
/* Animated QR Code or Where it Goes Nobody Knows */
body {
background: #f5f5f5;
}
#container {
height: 210px;
width: 210px;
background: grey;
@crismanNoble
crismanNoble / index.html
Created July 16, 2012 23:00 — forked from mbostock/.block
SVG Linear Gradient (D3) Rainbow
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.1"></script>
</head>
<body>
<script type="text/javascript">
var w = 400,
h = 200;
@crismanNoble
crismanNoble / inlet.js
Created July 18, 2012 15:14
just another inlet to tributary
/
//
/
//////////////
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crismanNoble
crismanNoble / Chrome to Kippt
Created August 28, 2012 19:41
Importing Chrome Bookmarks to Kippt
//Export Chrome bookmarks as html
//Manually add a id="target" to the <d1> under the <h3> of the folder you want to import
//Initialize your list
var list = '';
//save the children of your target
var target = document.getElementById('target').children;
//grab all the titles and links, format them for easy importation to Kippt API
@crismanNoble
crismanNoble / wordFrequency.js
Created September 5, 2012 18:02
Get frequency of words on a webpage.
//todos: 1) moar than just <p>s, just words. 2)strip out &amp;s and stuff 3)Order by top use
//via: https://www.squarefree.com/bookmarklets/seo.html
javascript:(function(){
var T={},W=[],C=0,s,i;
function F(n){
var i,x,a,w,t=n.tagName;
if(n.nodeType==3){
a=n.data.toLowerCase().split(/[\s\(\)\:\,\.;\<\>\&\'\"]/);
for(i in a)if(w=a[i]){
w=" "+w;T[w]=T[w]?T[w]+1:1;++C;}
<div class="knockout"><a href="http://mksht.crisnoble.com" rel="Like cool shit? visit my site">mksht</a></div>
var noun_project_865 = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><polygon points="35.009,97.063 35.009,97.063 47.875,50.553 25.601,51.904 42.521,7.001 67.758,2.937 49.133,36.511 74.399,33.256 "></polygon></g></svg>';
<i class="noun_project_865"></i>
$('.noun_project_865').html(noun_project_865);