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
#!/usr/bin/env ruby | |
# | |
# Write a method that takes in a string and returns it | |
# with all the vowels removed | |
# | |
def devowel(string) | |
# Write code here... | |
end |
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
=ERROR REPORT==== 2-Sep-2013::12:55:32 === | |
Yaws process died: {{badrecord,headers}, | |
[{yaws,outh_serialize,0}, | |
{yaws_server,deliver_accumulated,4}, | |
{yaws_server,finish_up_dyn_file,2}, | |
{yaws_server,aloop,4}, | |
{yaws_server,acceptor0,2}, | |
{proc_lib,init_p_do_apply,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
development: &development | |
adapter: postgresql | |
database: my-database | |
test: &test | |
adapter: postgresql | |
database: my-database-test | |
production: *development |
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
# ruby 1.9.3 | |
# rails (3.2.15) | |
$ time rspec spec/lib/label_as_csv_spec.rb | |
.......................... | |
Finished in 0.38397 seconds | |
26 examples, 0 failures | |
Randomized with seed 17361 |
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
--- clockingit-tmp.ls.text 2013-11-17 19:22:58.000000000 -0600 | |
+++ clockingit.ls.text 2013-11-17 19:23:10.000000000 -0600 | |
@@ -1,4 +1,10 @@ | |
. drwxr-xr-x loopy/loopy | |
+./store drwxrwxrwx cit/cit | |
+./store/avatars drwxrwxrwx cit/cit | |
+./store/avatars/9416 drwxrwxrwx cit/cit | |
+./store/logos drwxrwxrwx cit/cit | |
+./store/logos/9416 drwxrwxrwx cit/cit | |
+./store/9416 drwxrwxrwx cit/cit |
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
URL_MATCH = Oniguruma::ORegexp.new %q{(?i)(?<=\s|^)((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))} |
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
module RSpec | |
module Matchers | |
module BuiltIn | |
# @api private | |
# Provides the implementation for `exist`. | |
# Not intended to be instantiated directly. | |
class Exist < BaseMatcher | |
def initialize(*expected) | |
@expected = expected | |
end |
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/bash | |
source .config | |
# Setup up master repo | |
# git clone --bare $TMP_REPO $MASTER_REPO | |
sudo -u git git daemon \ | |
--verbose \ | |
--enable=receive-pack \ |
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
// | |
//-- Create a subscriber | |
// | |
// POST /api/my-brand/subscribers | |
{ | |
"subscriber": { | |
"name": "Test Subscriber", | |
"email": "[email protected]", | |
"subscribe": [ | |
'my-list-1', |
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
x_coords = [...] | |
y_coords = [...] | |
x_coords.each do |x| | |
y_coords.each do |y| | |
do_point x, y | |
end | |
end |