フィボナッチ数を出してみるやつ
object Fibonacci {
def get(index: Int): Int = {
def go(fibonacci: Array[Int], index: Int): Int = {
require 'trello' | |
require 'tracker_api' | |
require 'pry' | |
Trello.configure do |config| | |
config.developer_public_key = 'your_public_key' | |
config.member_token = 'your_token' | |
end | |
joe_re = Trello::Member.find('joe_re') | |
board = Trello::Board.find('your_board_id') |
フィボナッチ数を出してみるやつ
object Fibonacci {
def get(index: Int): Int = {
def go(fibonacci: Array[Int], index: Int): Int = {
foo 'test' | |
block_test do | |
puts 'blockも渡せる' | |
end | |
# コメントは無視される | |
boolean_test |
package jp.co.example; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class GenericsTest { | |
public static void main(String[] args) { | |
List<String> generatedList = ListGenerator.generate("this", "is", "a", "generics", "test!"); | |
System.out.println(generatedList); | |
for (String e : generatedList) { |
import jsm | |
import datetime | |
class Stock: | |
def __init__(self, stock_code, start_date, end_date): | |
q = jsm.Quotes() | |
self.prices = q.get_historical_prices(4689, jsm.DAILY, start_date, end_date) | |
def calc_close_average(self, index, avg_count): | |
if len(self.prices) < index + avg_count: | |
return None |
require 'selenium-webdriver' | |
driver = Selenium::WebDriver.for :firefox | |
FileUtils.mkdir_p 'screenshots' | |
[ | |
{ email: '[email protected]', password: 'yuihirasawa' }, | |
{ email: '[email protected]', password: 'mioakiyama' }, | |
{ email: '[email protected]', password: 'ritsutainaka' }, | |
{ email: '[email protected]', password: 'tsumugikotobuki' }, |
require "selenium-webdriver" | |
# stubbyがデーモン起動できないのでThreadで起動する。(無理やり感漂うので、いい方法あれば変えたい。) | |
t = Thread.new { system("forever node_modules/.bin/stubby --data #{ARGV[0]}") } | |
driver = Selenium::WebDriver.for :chrome, switches: %w[--allow-running-insecure-content] | |
# ログイン | |
driver.navigate.to 'https://your-awesome-app/login' | |
driver.find_element(:name, 'loginid').send_keys 'user_id' |