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
| require 'pp' | |
| require 'watir-webdriver' | |
| directory = File.dirname($0) | |
| config = YAML.load_file(directory + "/config.yml") | |
| USERNAME = ARGV.shift | |
| def instagram(username, password) | |
| browser = Watir::Browser.new :phantomjs |
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
| require 'nokogiri' | |
| require 'pp' | |
| require 'watir-webdriver' | |
| SCREEN_NAME = ARGV.shift | |
| FROM_OLDEST = Date.new(2011, 1, 1) | |
| MY_EMAIL = "foo" | |
| MY_PASSWORD = "barbaz" | |
| @browser = Watir::Browser.new :chrome |
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
| # -*- coding: utf-8 -*- | |
| require 'net/https' | |
| require 'pp' | |
| # https://gist.github.com/cielavenir/a858255c4009ecbb9b67 | |
| @channel_urls = ARGV | |
| @player_urls = [] |
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
| puts "カドカワ".split("").zip("ドワンゴ".split("")).map(&:sample).join |
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' | |
| module.exports = (robot) -> | |
| robot.respond /kssn/i, (msg) -> | |
| url = "http://www.eventernote.com/actors/3562" | |
| options = | |
| url: url | |
| timeout: 2000 | |
| headers: {'user-agent': 'eventernote scraper'} |
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 | |
| # A Hubot script for shoda script | |
| # | |
| # Configuration: | |
| # None | |
| # | |
| # Commands: | |
| # | |
| # Author: | |
| # tondol |
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 | |
| # A Hubot script for shoda script | |
| # | |
| # Configuration: | |
| # None | |
| # | |
| # Commands: | |
| # | |
| # Author: | |
| # tondol |
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
| # exaudio hoge.mp4 hoge.m4a | |
| function exaudio() { | |
| ~/Documents/00scripts/ffmpeg -i $1 -vn -acodec copy $2 | |
| } | |
| # exm4a *.mp4 | |
| # *.mp4.m4aが出力される | |
| function exm4a() { | |
| while [ "$1" != "" ] | |
| do |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| double probs[100]; | |
| double table[101][200][200]; // N,K,K | |
| int main(void) { | |
| int i, j, k; | |
| int N, K; | |
| scanf("%d%d",&N,&K); |