This file contains hidden or 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
set hidden | |
set shiftwidth=4 | |
set tabstop=4 | |
set expandtab | |
set smarttab | |
set hlsearch | |
colorscheme darkblue | |
filetype plugin on | |
filetype indent on | |
syntax on |
This file contains hidden or 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
.DS_Store | |
*.swp | |
*~.nib | |
build/ | |
*.pbxuser | |
*.perspective | |
*.perspectivev3 | |
*.mode1v3 | |
*.mode2v3 | |
*.xcodeproj/* |
This file contains hidden or 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
bin/ | |
obj/ | |
/_ReSharper.* | |
*.ReSharper.* | |
*.sln.cache | |
*.suo | |
*.csproj.user | |
*.resharper.user | |
.*.swp |
This file contains hidden or 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
[Test] | |
public void finding_a_series() { | |
string aeNumber; | |
ISeries series; | |
given_a_tv_series_already_exists(aeNumber: out aeNumber, series: out series); | |
when_a_user_searches_for_a_tv_series_by_ae_number(aeNumber); | |
then_details_of_that_tv_series_should_be_displayed(series); | |
} |
This file contains hidden or 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' | |
require 'warden' | |
require 'sinatra' | |
require 'cgi' | |
class LoginManager < Sinatra::Base | |
Warden::Manager.serialize_into_session{|id| id } | |
Warden::Manager.serialize_from_session{|id| id } | |
def call(env) |
This file contains hidden or 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
public class MultiStage { | |
[Targets] | |
public static object GetTargets (IParameters parameters) { | |
var archive = new Archive( | |
parameters.Default("archive", false), | |
"archive" | |
); | |
var solution = new VisualStudioSolution { | |
SolutionPath = @"C:\dev\BigWebSite.sln", |
This file contains hidden or 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
.DS_Store | |
*.swp |
This file contains hidden or 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 'capybara' | |
require 'capybara/dsl' | |
Capybara.current_driver = :selenium | |
Capybara.app_host = 'localhost:3000' | |
Capybara.default_selector = :css | |
include Capybara::DSL |
This file contains hidden or 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
def read_m3u8(m3u8) | |
File.open(m3u8, 'r') do |file| | |
keyfile = nil | |
iv = 0 | |
file.each_line do |line| | |
line.chomp! | |
if line =~ /^#EXT-X-KEY:METHOD=AES-128,URI="(.*?)"(,IV=0x(.*))?/ | |
keyfile = $1 | |
if $2 | |
iv = $3 |
This file contains hidden or 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
[TestFixture] | |
public class TrackXml { | |
[Test] | |
public void ShouldSerialiseKeyValuePairs() { | |
var xml = @"<track><title>Abracadabra</title><artist>Steve Miller Band</artist></track>"; | |
var track = new Track(); | |
track.Properties["title"] = "Abracadabra"; | |
track.Properties["artist"] = "Steve Miller Band"; |
OlderNewer