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 U | |
@@attr = [ | |
:id, | |
:name | |
] | |
attr_accessor(*@@attr) | |
def initialize(values) | |
@@attr.each {|key| | |
self.send("#{key}=".to_sym, values[key]) |
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
# Description: | |
# ใใซใชใฏใ็ฅใใ | |
# | |
# Configuration: | |
# GITHUB_TOKEN | |
# REPO_OWNER | |
# REPO_NAME | |
# DEVELOPER_ROOM_NAME | |
# | |
# Dependencies: |
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 "selenium-webdriver" | |
DELIMITER = ',' | |
print "target URI: " | |
target = STDIN.gets.strip | |
print "count: " | |
count = STDIN.gets.strip.to_i | |
print "smart phone? (y/n): " |
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
(function(){ | |
let prefix = prompt('prefix?'); | |
alert([].map.call( | |
document.querySelectorAll('.js-draggable-issues-container > li a.js-navigation-open'), | |
e => `${prefix} #${e.href.split('/')[6]} ${e.textContent.trim()}`) | |
.join('\n')) | |
})() |
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
FROM httpd | |
COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf |
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 issues2md | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description issues in github milestone detail page to list | |
// @author oieioi | |
// @match https://github.com/*/*/milestone/* | |
// @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
# Description: | |
# GitHub ใฎใกใณใทใงใณใ็ฅใใ | |
# | |
# Configuration: | |
# GITHUB_TOKEN | |
# REPO_PATHS "owner_name/repo_name_1,owner_name/repo_name_2,other_owner_name/repo_name_3" | |
# DEVELOPER_ROOM_NAME | |
# | |
# Dependencies: | |
# "@octokit/rest": "^14.0.9" |
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 GitHub issue templatize | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description GitHub issue templatize | |
// @author oieioi | |
// @match https://github.com/*/*/issues/new* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 'forwardable' | |
class Hoge | |
include Enumerable | |
extend Forwardable | |
def_delegators :@hash, :each, :reject! | |
def initialize hash | |
@hash = hash | |
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
require 'pp' | |
# USAGE: | |
# $ cat << EOS| ruby average_columns.rb | |
# 123 123 123 | |
# 333 333 333 | |
# 444 34 23 | |
# 43 3 33 | |
# EOS | |
PRECISION = (ENV['PRECISION'] || 1).to_i | |
DELIMINATOR = ENV['DELIMINATOR'] || ' ' |