:+1:
👍
<source> | |
type http | |
port 8888 | |
</source> | |
<match gitlab.**> | |
type copy | |
<store> | |
type rewrite | |
add_prefix filtered |
/** | |
* HashMapとLinkedHashMapの性能を調べるためのベンチマーク用のテストコード | |
* | |
* テスト内容 | |
* ・乱数を100万回putして実行時間を出力 | |
* ・乱数keyで100万回getして実行時間を出力 | |
* ・mapのサイズを取得して実行時間を出力 | |
* | |
* インスタンスのメモリサイズの取得にはClassmexerを使用しているため実行時に下記オプションをつけること | |
* -javaagent:./lib/classmexer.jar |
:+1:
👍
println "hello world" |
# created_atでRANGEパーティショニングされたmodelの共通module | |
# | |
# @example | |
# class CreatedAtRangePartitionModel < ActiveRecord::Base | |
# include ActsAsMysqlPartition::CreatedAtRangePartitionModule | |
# | |
# end | |
module CreatedAtRangePartitionModule | |
extend ActiveSupport::Concern |
script: |- | |
./script/build_for_jenkins.sh | |
work_dir: tmp/paraduct_workspace | |
variables: | |
gemfile: | |
- rails4_0.gemfile | |
- rails4_1.gemfile | |
max_threads: 4 | |
rsync_option: | |
exclude_from: .paraduct_rsync_exclude.txt |
require "rubicure" | |
Precure.all_stars.group_by{ |girl| girl.color }.map{ |color, girls| [color, girls.count] }.sort_by{ |color, girl_count| girl_count }.reverse | |
# => [["pink", 9], ["yellow", 8], ["blue", 7], ["purple", 4], ["red", 4], ["white", 3], ["green", 2], ["black", 1]] |
irb(main):001:0> ret = sleep 0.1 | |
#=> 0 | |
irb(main):002:0> ret = sleep 1.5 | |
#=> 2 |
# config/precure.yml | |
common: &common | |
smile_precure: | |
cure_happy: 星空みゆき | |
cure_sunny: 日野あかね | |
cure_peace: 黄瀬やよい | |
cure_march: 緑川なお | |
cure_beauty: 青木れいか | |
development: |
// Chromeのwebインスペクタに下記を入力して実行 | |
var images = []; | |
$(".PhotoGridMediaItem").each(function(){ | |
// ex. いいね!7件・コメント0件 | |
var label = $(this).attr("aria-label"); | |
var url = "https://instagram.com" + $(this).find(".pgmiImageLink").attr("href"); | |
images.push({label: label, url: url}); | |
}); | |
// labelで降順ソート |