module NerdNode | |
# Rack app to reject common bot attacks. Returns a random HTTP status and content type, along with some LOLs. | |
# | |
# Usage: | |
# use NerdNode::BotProtector, /phpmyadmin\/scripts|mysql\/scripts/ | |
# | |
# # ...or use the Regexp helper which takes an array of URL strings... | |
# blacklist = BotProtector.build_regex(['phpmyadmin/scripts', 'mysql/scripts']) | |
# use NerdNode::BotProtector, blacklist | |
# |
This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.
In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.
You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should
require 'digest/sha1' | |
require 'zlib' | |
require 'pp' | |
module Git | |
OBJECTS = {} | |
class Object | |
#!/bin/sh | |
git rebase --interactive --autosquash \ | |
$(git merge-base $(git symbolic-ref --short HEAD) master) |
Document moved to: https://github.com/servo/servo/blob/master/HACKING_QUICKSTART.md
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
#!/bin/bash | |
set -e | |
droplet=netflix | |
interface=Wi-Fi | |
us_regions=( nyc1 nyc2 nyc3 ) | |
random_region() { | |
echo ${us_regions[RANDOM % ${#us_regions[@]}]} | |
} |
defmodule MyApp.Scheduler do | |
@moduledoc """ | |
Schedules a Mix task to be run at a given interval in milliseconds. | |
## Options | |
- `:task`: The name of the Mix task to run. | |
- `:args`: A list of arguments to pass to the Mix task's `run/1` function. | |
- `:interval`: The time interval in millisconds to rerun the task. |
node_modules |