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
<html> | |
<head> | |
<style> | |
pre.terminal { | |
display: block; | |
background-color: black; | |
color: white; | |
font-family: monospace; | |
height: 480px; | |
width: 640px; |
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
module Scoring | |
def self.included(base) | |
base.class_eval do | |
let(:__score_keeper) { ScoreKeeper.new } | |
extend ScoreHelpers | |
include ScoreMatchers | |
end | |
end | |
class ScoreKeeper |
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
[ui] | |
verbose = True | |
merge = diffmerge | |
[pager] | |
pager = LESS='FSRX' less | |
[extensions] | |
pager = | |
color = |
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
(function($) { | |
$(function() { | |
var toggle_topics_and_policies = function() { | |
var elem = $(this); | |
var target = elem.parent().data('itemType'); | |
elem.parents('.well').find('.featured-item-type-pane').hide(); | |
elem.parents('.well').find('.featured-item-type-pane[data-item-type='+target+']').show(); | |
}; | |
var wait_for_chosen_to_be_ready_before_toggle_initial_topic_vs_policy_selector = function(container) { | |
// know how many lists to expect |
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
module TicketProcessing | |
class TicketHTMLGenerator | |
def initialize(ticket) | |
@ticket = ticket | |
end | |
def generate! | |
renderer.render(context) | |
end |
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 ruby | |
class Renamer | |
attr_reader :from, :to | |
def initialize(from, to) | |
@from = from | |
@to = to | |
end |
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
// ==UserScript== | |
// @name Growl Notifications with messages for campfire and fluid | |
// @namespace http://tim.theenchanter.com/ | |
// @description If your name is mentioned in a message, a growl notification shows what was said. | |
// @author Tim Harper, Murray Steele (modifications for prototype 1.7) | |
// @homepage http://tim.theenchanter.com/ | |
// @include *.campfirenow.com/room* | |
// ==/UserScript== | |
try { if ( typeof(Campfire) != "undefined" ) { |
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
10 DIM R$(24,1),A(5),B(5),Z(5) | |
20 CLS: WIDTH 40: KEY OFF: SCREEN 0,1 | |
30 LOCATE 12,16,0:COLOR 7:PRINT "Stand by..." | |
40 FOR H=0 TO 1:FOR I = 1 TO 24 | |
50 R$(I,H)="":C=0 | |
60 READ T,KO:R$(I,H)+CHR$(T)+CHR$(KO) | |
70 C=C+T:IF C<17 THEN 60 | |
80 NEXT I,H | |
90 FOR I=1 TO 5: READ A(I), B(I):Z(I)=0:NEXT I | |
100 CLS: FOR K=1 TO 5:GOSUB 1000: NEXT K |
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
Feature: There should be monsters in my dungeon | |
In order to manage what types of monsters are available to my dungeons | |
As a dungeon master | |
I want to be able to see a list of monsters, add new ones, edit them and also delete them | |
Scenario: Adding a monster to my list of monsters available to my dungeons | |
Given I am on the new monster page | |
When I fill in "Name" with "Orc" | |
And I select "very" from "Scariness" | |
And I press "Create" |
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
require 'rubygems' | |
fetcher = Gem::SpecFetcher.fetcher | |
my_dep = 'activesupport' | |
# 1st arg = all (true to get all versions, false to get latest) | |
# 2nd arg = prerelase (true to get pre-release gems, false to get stable) | |
all_gems = fetcher.list(false, false) |