A Twitterbot is a program used to produce automated posts on the Twitter microblogging service, or to automatically follow Twitter users. (Wikipedia)
利用者の Twitter アカウント関する操作権限をもらって何かするもの。つぶやいたり、フォローしたり、ふぁぼったり。
describe LeadService do | |
LeadService.configure(:test) do | |
before { settings.set(:instance, self) } | |
end | |
# Required for Rack::Test | |
# | |
def app | |
LeadService |
// This is the main application configuration file. It is a Grunt | |
// configuration file, which you can learn more about here: | |
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md | |
// | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// The clean task ensures all files are removed from the dist/ directory so | |
// that no files linger from previous builds. |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# == Synopsis | |
# Requires the terminal-notifier gem ([sudo] gem install terminal-notifier) | |
# growlnotify wrapper to turn Growl alerts into Mountain Lion notifications | |
# Uses growlnotify option syntax to keep your old scripts working with the new shiny. | |
# | |
# If you use Growl via growlnotify in your shell scripting, this script | |
# will replace Growl's alerts with Mountain Lion notifications. |
{ | |
"framework": "jasmine", | |
"src_files": [ | |
"app/assets/javascripts/*.js", | |
"spec/scripts/*.js" | |
], | |
"serve_files": [ | |
"public/assets/*.js", | |
"spec/scripts/*.js" | |
], |
// Rewrite http://tour.golang.org/#63 to scala using Channel | |
import scala.concurrent._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
object GO63Channel extends App { | |
def sum(a: List[Int], c: Channel[Int]) = future { | |
c write a.sum | |
} | |
val c = new Channel[Int]() |
module Capybara::Poltergeist | |
class Client | |
private | |
def redirect_stdout(to) | |
prev = STDOUT.dup | |
prev.autoclose = false | |
$stdout = to | |
STDOUT.reopen(to) | |
prev = STDERR.dup |
describe LeadService do | |
# Get the Sinatra application instance that ran the current test. For instance you | |
# could use: | |
# | |
# it "should set an instance variable" do | |
# get '/' | |
# app_instance.instance_variable_get(:@lead).should_not be_nil | |
# end | |
# |
module Capybara::Poltergeist | |
class Client | |
private | |
def redirect_stdout(to = nil) | |
to ||= @write_io | |
prev = STDOUT.dup | |
prev.autoclose = false | |
$stdout = to | |
STDOUT.reopen(to) |