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
// ==UserScript== | |
// @name show meta | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description show meta what we want | |
// @author me | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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 'aws-sdk' | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
# エントリーポイント | |
# See https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/lambda-ruby.html | |
def lambda_handler(event:, context:) | |
fetch_cost | |
.then { |res| pretty_response(res) } |
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
// 最初 | |
// 'body *' | |
// d=1 | |
// 'body > *:nth-child(1) *' | |
// 'body > *:nth-child(2) *' | |
// 'body > *:nth-child(3) *' | |
// 'body > *:nth-child(4) *' | |
// d=2 | |
// 'body > *:nth-child(1) > *:nth-child(1) *' | |
// 'body > *:nth-child(1) > *:nth-child(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
class Klass | |
def initialize | |
puts 'klass' | |
end | |
end | |
class Klass2 | |
def initialize | |
puts 'klass 2' | |
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
// ==UserScript== | |
// @name add-pull-requests-link-to-github-user-page | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description Add pull requests to GitHub User page | |
// @author oieioi | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== |
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 user = { name: 'john' } | |
console.log(user) | |
user.hello = function () { | |
// この this == user(レシーバー) になってほしい | |
return "I am " + this.name + "!" | |
} | |
user.callback = function (cb) { | |
console.log('exec callback') |
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
def meth(arg, **kwargs) | |
puts "kwargs: #{kwargs}" | |
end | |
puts '---- no warning ----' | |
meth(1, hoge: 1) #=> no warning | |
meth(1, **{ hoge: 1 }) #=> no warning | |
public_send(:meth, *[1, **{hoge: 1}]) # => NO warning | |
puts '---- warning ----' |
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
def meth(arg, **kwargs) | |
puts "kwargs: #{kwargs}" | |
end | |
puts '---- no warning ----' | |
meth(1, hoge: 1) #=> no warning | |
meth(1, **{ hoge: 1 }) #=> no warning | |
send(:meth, *[1, **{hoge: 1}]) # => NO warning | |
puts '---- warning ----' |
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
// ==UserScript== | |
// @name Move bookmeter kansou and pie chart to the bottom | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 読書メーターのユーザページのグラフと感想を下の方にする | |
// @author oieioi | |
// @match https://bookmeter.com/* | |
// @grant none | |
// ==/UserScript== |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<title>Test</title> | |
<script src="https://code.jquery.com/jquery-3.5.0.js"></script> | |
</head> | |
<body> | |
<select id="list"> | |
<option class="item" value="1">1</option> | |
<option class="item" value="2">2</option> |