Skip to content

Instantly share code, notes, and snippets.

View steve-kasica's full-sized avatar

Steve steve-kasica

View GitHub Profile
@steve-kasica
steve-kasica / index.html
Created April 25, 2017 19:01
Nested TOC POC
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nested TOC POC</title>
<style media="screen">
div {
display: inline-block;
}
.content {
@steve-kasica
steve-kasica / fizz_buzz.py
Created January 10, 2017 16:46
The Fizz Buzz Test
"""
fizz_buzz.py
------------------------------------
My solution to the Fizz Buzz Test.
http://wiki.c2.com/?FizzBuzzTest
"""
def main():
for i in range(1, 101):
@steve-kasica
steve-kasica / uninstall_atom.sh
Created December 11, 2015 23:18
Uninstall Atom
#!/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"
@steve-kasica
steve-kasica / example.sh
Created October 28, 2015 22:33
Symlink only PDFs
#!/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 {} .
@steve-kasica
steve-kasica / example.js
Created October 11, 2015 00:29 — forked from thinkAmi/example.js
GoogleAppsScriptでRSS2.0フィードを出力する例 (使う時は、.jsを.gsにする)
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++){
@steve-kasica
steve-kasica / README.md
Last active August 29, 2015 14:27 — forked from mbostock/.block
The Pac-Man Pie Chart

The classic Pac-Man pie chart made with D3.js.

@steve-kasica
steve-kasica / index.html
Last active August 29, 2015 14:20
Test if browser has enabled JavaScript
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url('https://i.imgflip.com/l2142.jpg');
}
</style>
</head>
<body>