Display the last 20 images from Sewanee's photo stream using Flickr's Public feed API.
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
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
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
$path = $args[0] | |
Add-Type -AssemblyName PresentationFramework | |
[System.Windows.MessageBox]::Show("Hello $path") |
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
GIMP Palette | |
Name: NES Color Palette | |
Columns: 16 | |
# | |
124 124 124 nes00 | |
0 0 252 nes01 | |
0 0 188 nes02 | |
68 40 188 nes03 | |
148 0 132 nes04 | |
168 0 32 nes05 |
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
from M2Crypto import SSL | |
from M2Crypto.SSL.Checker import SSLVerificationError, NoCertificate, WrongCertificate, WrongHost | |
import socket, re | |
from datetime import datetime | |
import pytz | |
class ValidationResults: | |
def __init__(self): | |
self.connection_error = False |
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
<?xml version="1.0" encoding="utf-8"?> | |
<project name="tutorialProject" default="prod" basedir="/Users/addy/buildTut/"> | |
<description>Client-side ANT build file example</description> | |
<target name="-load.properties" | |
description="Set properties for this build"> | |
<!--YUI Compressor location--> | |
<property name="yui.dir" value="${basedir}/yuicompressor/build/yuicompressor-2.4.2.jar"/> | |
<!--Source JS dir--> |
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
# ascii art | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -V caca | |
# gradient cartoon | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -Z -L --no-video-deco --no-embedded-video --width=640 --height=360 --mirror-split=0 --gradient-mode=edge --gradient-cartoon --blur-factor=80 --video-filter=mirror:gradient:motionblur | |
# twilight zones | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=16711680 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --vout-filter=transform --transform-type=hflip --rate=2.0 | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=255 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --rate=2.0 |
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
#!/usr/bin/env python3 | |
#-*- coding: utf-8 -*- | |
# Very simple tetris implementation | |
# | |
# Control keys: | |
# Down - Drop stone faster | |
# Left/Right - Move stone | |
# Up - Rotate Stone clockwise | |
# Escape - Quit game |
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
# Ways to execute a shell script in Ruby | |
# Example Script - Joseph Pecoraro | |
cmd = "echo 'hi'" # Sample string that can be used | |
# 1. Kernel#` - commonly called backticks - `cmd` | |
# This is like many other languages, including bash, PHP, and Perl | |
# Synchronous (blocking) | |
# Returns the output of the shell command | |
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111 |