Person/Place/Thing | Shit-storm level (tm) |
---|---|
Obama / Healthcare | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
ERB and HAML templates | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
Matt Newton Metaprogramming | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
T-Mobile | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
Ruby Hash Rockets | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
PHP Developers | ![1][poo] ![2][poo] ![3][poo] ![4][poo] ![5][poo] |
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
defmodule CertificationClient do | |
@moduledoc """ | |
Varlink client certification tests. | |
""" | |
@doc """ | |
Runs the client certification tests. | |
## Ported from [the Python certification test code](https://github.com/varlink/python/blob/master/varlink/tests/test_certification.py#L31 | |
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
+----------------------------------------+ | |
|script/cibuild | | |
| build and test on CI server | | |
| | | |
| * calls script/test | | |
| * sets environment variables for CI | | |
| | | |
+----------------------------------------+ | |
| |
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
class A | |
attr_reader :val | |
def initialize(a, &b) | |
@val = a || (b ? b.call : :nada) | |
end | |
end | |
class B < A | |
def initialize(b) | |
super(b) |
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
# We have a couple of indices that have been created independently. | |
# Now we want to search across them, with highlighting (and ideally | |
# suggestors as well) without breaking exisiting services. | |
# | |
# The mappings do not have consistent field names, but they have fields that can | |
# be semantically mapped into "title" or "body" (and some others) fields. | |
# | |
# From the size of the data, I'm told that creating a new purpose-build index is | |
# out of the question--even something that would duplicate data in another field | |
# in the same index is a stretch. |
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 MountJSON where | |
-- import Prelude hiding (getContents) | |
import qualified Data.Aeson as JSON | |
import qualified Data.ByteString.Lazy.Char8 as Char | |
main :: IO () | |
main = do | |
input <- Char.getContents | |
case JSON.eitherDecode input of |
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 Enumerator::WithFinal | |
# Emits a boolean indicating whether or not the current iteration is the final one. | |
def self.with_final(prev_enum) | |
begin | |
while next_val = prev_enum.next | |
is_final = begin | |
prev_enum.peek | |
rescue StopIteration | |
true | |
else |
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
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.dudes=[ | |
{name:'Leonardo'}, | |
{name:'Donatello'}, | |
{name:'Raphael'}, | |
{name:'Michaelango'} | |
]; | |
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
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.dudes=[ | |
{name:'Leonardo'}, | |
{name:'Donatello'}, | |
{name:'Raphael'}, | |
{name:'Michaelango'} | |
]; | |
}); |
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
[url, height, width, output_dir] = phantom.args | |
console.log("url #{url}, height #{height}, width #{width}, output_dir #{output_dir}") | |
page = require('webpage').create() | |
page.viewportSize = | |
width: width | |
height: height | |
page.onConsoleMessage = (msg) -> |
NewerOlder