This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
matcher | aliased to | description |
---|---|---|
a_truthy_value | be_truthy | a truthy value |
a_falsey_value | be_falsey | a falsey value |
be_falsy | be_falsey | be falsy |
a_falsy_value | be_falsey | a falsy value |
"^ " | |
=~ ( | |
("(").("~"^"."^"^"^(""=="")."").("^" | |
^"="^(""=="").""^")").("^"^".").("=" | |
^"~"^(""=="")."").("("^(""=="^").""^ | |
"."^"^").("("^(""=="").""^"^"^")").( | |
(" ^( " | |
== " | |
") . | |
"" ^ |
#! /usr/bin/env ruby | |
# Copy random LGTM to clipboard | |
require 'open-uri' | |
require 'nokogiri' | |
require 'shellwords' | |
doc = Nokogiri open('http://www.lgtm.in/g') |
原文: Cassandra - A Decentralized Structured Storage System
This article is translated by @ono_matope. Please contact me if any problem.
#!/usr/bin/env ruby | |
require 'json' | |
def parse(uri) | |
JSON.parse `curl -s #{uri}`.gsub("/*\n * This file is intended for use only on aws.amazon.com. We do not guarantee its availability or accuracy.\n *\n * Copyright 2014 Amazon.com, Inc. or its affiliates. All rights reserved.\n */\ncallback({",'{').gsub("\);", '').gsub(/([a-zA-Z]+):/, '"\1":') | |
end | |
puts %w( | |
region |
#!/usr/bin/env ruby | |
Dir.chdir(File.dirname(__FILE__)) | |
require 'digest/sha2' | |
require 'uri' | |
require 'open-uri' | |
require 'json' | |
API_KEY = 'api_key' | |
TUMBLELOG = 'scrap.sorah.jp' |
# -*- coding:utf-8 -*- | |
class String | |
def kaibun | |
self + self[0..-2].reverse | |
end | |
end |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Pod::Usage; | |
use Text::Markdown 'markdown'; | |
use HTML::TreeBuilder; | |
use List::Util 'max'; | |
use Encode; |