- 有休…
- 病休…
- 育休…
- 年収(月給、賞与など)…
- 残業代…
- 早朝/深夜手当…
- 休出手当…
- 住宅補助…
This file contains hidden or 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(datetime). | |
| -export([timestamp/0, timestamp/1, timestamp/2]). | |
| -export([iso8601/1, yyyymmdd/1]). | |
| -define(TZ_UTC, utc). | |
| -define(TZ_JST, jst). | |
| -define(TZ_ECT, ect). | |
| -record(datetime, {year :: non_neg_integer(), |
This file contains hidden or 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
| import com.twitter.scalding._ | |
| import com.twitter.algebird.{ MinHasher, MinHasher32, MinHashSignature } | |
| /** | |
| * Computes similar items (with a string itemId), based on approximate | |
| * Jaccard similarity, using LSH. | |
| * | |
| * Assumes an input data TSV file of the following format: | |
| * | |
| * itemId userId |
This file contains hidden or 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
| object DataImport extends App { | |
| val inputDirJa = "../data/sample-data/web/ja" | |
| val stopWordJa = "../data/stoplists/jp.txt" | |
| val outputFileJa = "data/import_test_ja.mallet" | |
| val importer = new ImportJapaneseNoun(new File(stopWordJa)) | |
| val instances = importer.readDirectory(new File(inputDirJa)) | |
| instances.save(new File(outputFileJa)) | |
| } |
This file contains hidden or 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
| ARGF | |
| ArgumentError | |
| Array | |
| BasicObject | |
| Bignum | |
| Binding | |
| Class | |
| Comparable | |
| Complex | |
| Data |
Ruby の HTTP クライアントライブラリ Faraday が便利そう
API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた
[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた
This file contains hidden or 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
| // Id | |
| "0" ?? "1" assert_=== ("0" match { case null => "1"; case s => s }) | |
| 0 |> (1 +) assert_=== (1 +)(0) | |
| // 0.left[String] assert_=== Left[Int, String](0) | |
| // 0.right[String] assert_=== Right[String, Int](0) |
This file contains hidden or 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
| # -*- encoding: utf-8 -*- | |
| require 'net/http' | |
| require 'rubygems' | |
| require 'nokogiri' | |
| class Comment | |
| class << self | |
| attr_accessor :cookie | |
| end | |
| #下の値はブラウザのクッキーから取得してください |