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
[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) -> |
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
# Following instructions found on http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository/359759#359759 | |
# Clone your project repo (making sure to copy all files, even hard links) | |
git clone --no-hard-links my_app my_active_shipping | |
cd my_active_shipping | |
# In your new repo, extract only the commits related to the vendor'd plugin and move that into the new root | |
git filter-branch --subdirectory-filter vendor/plugins/active_shipping/ HEAD | |
git reset --hard | |
# Clean out all of the other commits | |
git gc --aggressive | |
git prune |
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
framework 'Cocoa' | |
framework 'WebKit' | |
require 'optparse' | |
class Browser | |
attr_accessor :view | |
def initialize | |
@view = WebView.alloc.initWithFrame([0, 0, 520, 520]) |
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
framework 'Cocoa' | |
framework 'WebKit' | |
class Cat | |
attr_accessor :name, :age | |
def initialize(name = 'kitty', age=42) | |
@name = name | |
@age = age | |
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
require 'open-uri' | |
require 'rubygems' | |
require 'hpricot' | |
LAST_NAMES = %w{ | |
black | |
white | |
gray | |
green | |
red |
NewerOlder