Skip to content

Instantly share code, notes, and snippets.

View amonks's full-sized avatar
🐋
🐟🐠🐡

Andrew Monks amonks

🐋
🐟🐠🐡
View GitHub Profile
@amonks
amonks / circleofdads.md
Last active August 29, 2015 14:25
moving a facebook groupchat to xmpp

moving circleofdads to XMPP

so it's def time to get this thing off facebook

proposal

I propose XMPP cuz it's open/federated/standard/makes me nostalge for AIM

I also thought about Slack cuz it's trendy. maybe that is the better option and we will switch. Let's try this first.

game = {
player: {
starting_moment: "go home"
},
moments: [
{
title: "go home",
image: "home.jpg",
text: "you live here",
// you have two clickable options: "look at all your shit.", and "text arjun about maybe having a show"
@amonks
amonks / game.js
Created June 16, 2015 20:43
i changed around the end of this to show how locations could be used optionally to share stuff across moments. I think the `need` `unless` syntax is a bit rough though. Thoughts?
// game.js
Game = {
// this title shows up on the top of the page
"title": "Demo Sidevalve Adventure",
// this text shows up in the `about` popup
"about": "This is a *super* cool demo game about weed.",
// this theme is used in the game
function fish_prompt
if not set -q -g __fish_robbyrussell_functions_defined
set -g __fish_robbyrussell_functions_defined
function _git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
@amonks
amonks / 0-pftv-skip-interstitial-ads.user.js
Last active April 21, 2024 20:07
This is a browser user script to skip the annoying interstitial ad pages on Project Free TV, and a quick introduction to user scripts and jQuery in general.
// ==UserScript==
// @name Skip Interstitial Ad Pages on Project Free TV
// @namespace https://gist.github.com/amonks/b68fe6fc0c447719f2a9
// @version 1.0
// @description Skip the annoying interstitial wait-10-seconds ad page when watching pirated videos on Project Free TV
// @author Andrew Monks
// @match http://www.free-tv-video-online.info/internet/*
// @grant none
// ==/UserScript==
@amonks
amonks / peer-production.md
Created May 9, 2015 05:21
Peer Production in the Museum Context: a Strategic Plan for the Future

Peer Production in the Museum Context: a Strategic Plan for the Future

Andrew Monks, May 7, 2015

Abstract

Museums could increase their ability to accomplish their missions using limited resources by leveraging peer production economies. They could become the canonical reference source for information within their field, and they could harness the work of a large online community to create and improve their educational resources. By accomplishing those two things, a museum can establish itself as the primary academic entity in its field, bringing attention and centralizing research and content production. Over the next year, I will create a software package and a documented procedure which museums can follow to accomplish these two goals.

Contents

What The Hell Is Testing?

If you've spent any time in programming circles in the last few1 years, you've probably heard people talk about writing tests.

If you're self-taught, there's a decent chance you have no idea what they're talking about.

Why test?

Let's say you're writing a pluralizer. You have a main function, pluralize(), which takes a string and returns a plural version of that string.

@amonks
amonks / rot13.rb
Created April 9, 2015 00:04
"hello".rot(13)
class String
def rot num = 13
self.upcase.split("").collect { |char|
((char.ord - 'A'.ord + num) % 26 + 'A'.ord).chr()
}.join()
end
def tryRot
(0..26).each do |i|
p "#{i}: '#{self.rot(i)}'"
@amonks
amonks / docker-notes.md
Created April 8, 2015 23:41
notes from laura frank's presentation on Docker at chicagoruby

docker

layers

  • lxc/libcontainer/ :: execution
  • namespaces :: isolation
  • cgroups :: sharing
  • unionfs :: layering

notes

@amonks
amonks / .editorconfig
Last active August 29, 2015 14:16
my .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# Andrew Monks' .editorconfig
# current version at http://gist.github.com/amonks/0da5953d8c49f2aa0026
# 3/2/15
# top-most EditorConfig file
root = true
[*]
end_of_line = lf