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
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>
@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 / 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 / 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 / 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 / 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 / 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 / .block
Last active January 19, 2018 14:26
Unsplash Photos of the Year Puzzle
license: gpl-3.0
This file has been truncated, but you can view the full file.
{
"latlng": [
[
39.984155,
-105.239167
],
[
39.984129,
-105.239192
],
airport_code close_amount_sum claim_count total_passengers airport_name coordinates
ABE 130 1 297096 Lehigh Valley International Airport -75.44080352783203, 40.652099609375
ABI 499 3 93756 Abilene Regional Airport -99.68190002440001, 32.4113006592
ABQ 139.1 2 2354087 Albuquerque International Sunport Airport -106.609001, 35.040199
ACY 839.61 4 585709 Atlantic City International Airport -74.57720184326172, 39.45759963989258
ALB 209.75 5 1210621 Albany International Airport -73.80169677734375, 42.74829864501953
AMA 0 1 362280 Ama Airport 141.67, -4.10111111111
AMA 0 1 362280 La Amalia -62.01656, -35.10042
AMA 0 1 362280 Rick Husband Amarillo International Airport -101.706001, 35.219398
AMA 0 1 362280 Amatlan de Jora Airport -104.128434, 21.393753