- lxc/libcontainer/ :: execution
- namespaces :: isolation
- cgroups :: sharing
- unionfs :: layering
| 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)}'" |
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.
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.
Peer Production in the Museum Context: a Strategic Plan for the Future
Andrew Monks, May 7, 2015
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.
| // ==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== |
| 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) |
| // 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 |
| 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" |
this is not intended as an entry level guide