Skip to content

Instantly share code, notes, and snippets.

@Phrogz
Phrogz / LICENSE.md
Last active October 4, 2017 18:47 — forked from ganezasan/LICENSE.md
Day / Hour Heatmap in v4

Copyright (c) 2016, Tom May

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH

@Phrogz
Phrogz / .block
Last active November 12, 2016 01:48 — forked from mbostock/.block
Histogram
license: gpl-3.0
@Phrogz
Phrogz / html5.haml
Last active August 29, 2015 13:56 — forked from fnhipster/html5.haml
!!! 5
%html
%head
%meta(charset="utf-8")
%title Page Title
%meta(name="author" content="")
%meta(name="description" content="")
%meta(name="revisit-after" content="3 days")
%link(href="http://creativecommons.org/licenses/by/4.0/" rel="license" title="Creative Commons Attribution License")
%link(href="/css/screen.css" media="screen" rel="stylesheet")
@Phrogz
Phrogz / quiz-1.md
Created September 26, 2012 16:31 — forked from ahoward/quiz-1.md
quiz-1.md
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

@Phrogz
Phrogz / index.html
Created March 19, 2012 16:04 — forked from mbostock/.block
Force-Directed Symbols (D3)
<!DOCTYPE html>
<html>
<head>
<title>Force-Directed Symbols</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.25.0"></script>
</head>
<body>
<script type="text/javascript">
@Phrogz
Phrogz / example.rb
Created September 12, 2011 18:29 — forked from AndrewVos/example.rb
example
# Define a method that takes a path to a file and returns an array of all words therein
def read_words( filename )
# Read in the contents of the file and split it into
# an array of strings by finding (and discarding) any "whitespace"
# (spaces, tabs, newlines)
File.read(filename).split(/\s+/)
end
# Define a method that takes an array of words and returns an array without any 'junk' words
def remove_useless_words( all_words )