The classic Pac-Man pie chart made with D3.js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Nested TOC POC</title> | |
<style media="screen"> | |
div { | |
display: inline-block; | |
} | |
.content { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
fizz_buzz.py | |
------------------------------------ | |
My solution to the Fizz Buzz Test. | |
http://wiki.c2.com/?FizzBuzzTest | |
""" | |
def main(): | |
for i in range(1, 101): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uninstall_atom.sh: Remove all Atom related files and folders from OS X installs | |
# See https://discuss.atom.io/t/how-to-completely-uninstall-atom-for-mac/9084 | |
# ------------------------------------------------------------------------------- | |
ATOM=( | |
"${HOME}/.atom" | |
"${HOME}/Library/Application Support/com.github.atom.ShipIt" | |
"${HOME}/Library/Application Support/Atom" | |
"${HOME}/Library/Caches/Atom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create symlink for only PDFs or really any filetype in a directory with find and xargs | |
find /some/directory/ -name \*.pdf -print0 | xargs -0 -I {} ln -s {} . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
var rss = makeRss(); | |
rss.setTitle('RSS 2.0 test'); | |
rss.setLink('http://example.com'); | |
rss.setDescription('RSS 2.0のテスト'); | |
rss.setLanguage('ja'); | |
rss.setAtomlink('http://example.com/rss'); | |
for (var i = 1; i < 3; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background-image: url('https://i.imgflip.com/l2142.jpg'); | |
} | |
</style> | |
</head> | |
<body> |
NewerOlder