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
[{ | |
"@context": "http:\/\/vocab.odpt.org\/context_odpt.jsonld", | |
"odpt:calendar": "odpt.Calendar:SaturdayHoliday", | |
"odpt:station": "odpt.Station:JR-East.JobanRapid.Ueno", | |
"odpt:railDirection": "odpt.RailDirection:Inbound", | |
"@id": "urn:ucode:_00001C0000000000000100000320832E", | |
"odpt:stationTimetableObject": [{ | |
"odpt:train": "odpt.Train:JR-East.JobanRapid.752H", | |
"odpt:trainType": "odpt.TrainType:JR-East.Local", | |
"odpt:destinationStation": [ |
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
[{ | |
"@context": "http:\/\/vocab.odpt.org\/context_odpt.jsonld", | |
"odpt:trainType": "odpt.TrainType:JR-East.Local", | |
"odpt:calendar": "odpt.Calendar:Weekday", | |
"@id": "urn:ucode:_00001C000000000000010000031085A0", | |
"odpt:railDirection": "odpt.RailDirection:Outbound", | |
"odpt:originStation": [ | |
"odpt.Station:JR-East.JobanRapid.Ueno" | |
], | |
"@type": "odpt:TrainTimetable", |
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
{ | |
"objects": [ | |
{ | |
"id": "Default", | |
"scheduleType": "TIMESERIES", | |
"failureAndRerunMode": "CASCADE", | |
"name": "Default", | |
"pipelineLogUri": "s3://path_to_log", | |
"role": "DataPipelineDefaultRole", | |
"resourceRole": "DataPipelineDefaultResourceRole" |
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
{ | |
"objects": [ | |
{ | |
"id": "Default", | |
"scheduleType": "TIMESERIES", | |
"failureAndRerunMode": "CASCADE", | |
"name": "Default", | |
"pipelineLogUri": "s3://path_to_log", | |
"role": "DataPipelineDefaultRole", | |
"resourceRole": "DataPipelineDefaultResourceRole" |
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
{ | |
"objects": [ | |
{ | |
"id": "Default", | |
"scheduleType": "TIMESERIES", | |
"failureAndRerunMode": "CASCADE", | |
"name": "Default", | |
"pipelineLogUri": "s3://path_to_log", | |
"role": "DataPipelineDefaultRole", | |
"resourceRole": "DataPipelineDefaultResourceRole" |
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
request = require 'request' | |
cheerio = require 'cheerio' | |
iconv = require 'iconv' | |
convertEncode = (body) -> | |
charset = body.toString('ascii').match /<meta[^>]*charset\s*=\s*["']?([-\w]+)["']?/i | |
return new iconv.Iconv(charset[1], 'UTF-8//TRANSLIT//IGNORE').convert(body) if charset | |
body | |
urlBlackList = { |
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
# Description: | |
# Utility commands for voting someone. | |
# | |
# Commands: | |
# <name>++, <name>--, !vote-list, !vote-clear | |
module.exports = (robot) -> | |
KEY_SCORE = 'key_score' | |
getScores = () -> |
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
#!/usr/bin/ruby | |
str = "a"*100 | |
open("hoge.txt", "a") {|f| f.write str} |
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
#!/usr/bin/ruby | |
require "socket" | |
require "ipaddr" | |
udps = UDPSocket.open() | |
udps.bind("0.0.0.0", 10000) | |
mreq = IPAddr.new("239.192.1.2").hton + IPAddr.new("0.0.0.0").hton | |
udps.setsockopt(Socket::IPPROTO_IP, Socket::IP_ADD_MEMBERSHIP, mreq) | |
p udps.recv(65535) |
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
#!/usr/bin/ruby | |
require "socket" | |
require "ipaddr" | |
udps = UDPSocket.open() | |
saddr = Socket.pack_sockaddr_in(10000, "239.192.1.2") | |
mif = IPAddr.new("172.31.4.93").hton | |
udps.setsockopt(Socket::IPPROTO_IP, Socket::IP_MULTICAST_IF, mif) | |
udps.send("HELLO", 0, saddr) |
NewerOlder