- ブログを書く 簡潔にまとめる 1週間に1つ (2020年6月16日)
- アウトプットを増やす
- 自分の考えを言語化する
- 両耳同時に長押ししてオフ
- 両耳同時に長押ししてオン => そのまま長押しし続けて2回目のポンポンポッポンまで押し続ける
- ケースにしまって同時に出す => ピロリロリンがなったら右耳ペアリング
This file contains 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
require 'combine_pdf' | |
#require 'prawn' | |
def crop(page, x1, y1, x2, y2) | |
size = page.page_size | |
x1_new = size[0] - x1 | |
y1_new = size[1] - y1 | |
x2_new = size[2] + x2 | |
y2_new = size[3] + y2 | |
page.mediabox = [x1_new, y1_new, x2_new, y2_new] |
This file contains 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
{"regions":[{"id":"us-east-1","name":"US East","location":"N. Virginia"},{"id":"us-east-2","name":"US East","location":"Ohio"},{"id":"us-west-1","name":"US West","location":"N. California"},{"id":"us-west-2","name":"US West","location":"Oregon"},{"id":"ap-south-1","name":"Asia Pacific","location":"Mumbai"},{"id":"ap-northeast-2","name":"Asia Pacific","location":"Seoul"},{"id":"ap-southeast-1","name":"Asia Pacific","location":"Singapore"},{"id":"ap-southeast-2","name":"Asia Pacific","location":"Sydney"},{"id":"ap-northeast-1","name":"Asia Pacific","location":"Tokyo"},{"id":"ca-central-1","name":"Canada","location":"Central"},{"id":"eu-central-1","name":"EU","location":"Frankfurt"},{"id":"eu-west-1","name":"EU","location":"Ireland"},{"id":"eu-west-2","name":"EU","location":"London"},{"id":"eu-west-3","name":"EU","location":"Paris"},{"id":"sa-east-1","name":"South America","location":"São Paulo"}],"consoleHomeServiceCategoriesByColumn":[["compute","storage","database","migration","networking","developer_tools"], |
This file contains 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
var list = [] | |
for(i = 0; i < 200; i++) { | |
list.push(i) | |
} | |
var semaphore = [true, true, true, true, true, true] | |
var uploadImage = function(num, callback) { | |
setTimeout(function() { | |
console.log('upload', num) | |
callback() | |
}, 2000) |
curl https://api.github.com/repos/fukajun/245cloud-app/releases\?access_token\=$GITHUB_PERSONAL_TOKEN | vim -
This file contains 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
class User < ActinveRecord::Base | |
# address = '1540022 tokyo aa street | |
Address = Struct.new(:zip, :street) | |
before_save :rebuild_address | |
def address_object | |
@address_object ||= Address.new(address[0..5], address[6..-1]) | |
end | |
def rebuild_address | |
address = @address_object.zip + ... | |
end |
This file contains 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
var render = function() { | |
$('.talk').css('background-color', 'white') | |
result = '' | |
Object.keys(list).map(function(id) { | |
var $el = $('.talk').has('#' + id) | |
$el.css('background-color', 'pink') | |
result += $el.find('.title').text() + '\n' | |
}) | |
console.log(result) | |
localStorage.wanted = JSON.stringify(list); |