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
| [36mBuilt-in Atom Packages[39m (89) | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] |
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
| function zle-line-init zle-keymap-select { | |
| zle reset-prompt | |
| } | |
| zle -N zle-line-init | |
| zle -N zle-keymap-select | |
| bindkey -v | |
| local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" |
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/local/etc/nginx/nginx.conf | |
| user nkpoid staff; | |
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { |
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 "open-uri" | |
| require "json" | |
| require "nokogiri" | |
| #一気にリクエスト送るとロボット判定されて規制くらうので適当にsleepとか挟ませとくといいと思います | |
| res = [] | |
| for i in 0..49 #Google検索の1ページ目から50ページ目まで収集 | |
| url = "https://www.google.co.jp/search?q=%E5%8F%8B%E5%88%A9%E5%A5%88%E7%B7%92+site:twitter.com&hl=ja&start=#{i*10}" | |
| html = open url | |
| doc = Nokogiri::HTML.parse html |
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 "sqlite3" | |
| require "nkf" | |
| require "uri" | |
| require "rexml/document" | |
| require "open-uri" | |
| require "termcolor" | |
| #require "natto" | |
| $dic = SQLite3::Database.open($dir+"/data/dic.db") | |
| #$natto = Natto::MeCab.new |
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
| class Shiritori | |
| attr_reader :last_word | |
| def initialize(first_word) | |
| @last_word = first_word | |
| end | |
| def next(word) | |
| @last_word = word | |
| end | |
| def last_reading | |
| @last_word.furigana.upper |
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
| gitlab-redis: | |
| image: sameersbn/redis:latest | |
| volumes: | |
| - /home/user/gitlab/redis:/var/lib/redis | |
| gitlab-mysql: | |
| image: sameersbn/mysql:latest | |
| volumes: | |
| - /home/user/gitlab/mysql:/var/lib/mysql | |
| environment: | |
| - DB_NAME=gitlabhq_production |
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 "twitter" | |
| rest = Twitter::REST::Client.new(key) #keyは各位適当に | |
| def ff(method) | |
| return if ![:friend_ids,:follower_ids].include? method | |
| cursor = -1 | |
| list = [] | |
| until cursor == 0 | |
| res = rest.send(method).to_h | |
| list += res[:ids] |
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 "open-uri" | |
| require "uri" | |
| require "nokogiri" | |
| require 'tweetstream' | |
| CONSUMER_KEY = "あなたのCONSUMER_KEY" | |
| CONSUMER_SECRET = "あなたのCONSUMER_SECRET" | |
| OAUTH_TOKEN = "あなたのOAUTH_TOKEN" | |
| OAUTH_TOKEN_SECRET = "あなたのOAUTH_TOKEN_SECRET" | |
| YOUR_ID = "あなたのTwitterID (@sudosanなど)" |
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 "open-uri" | |
| require "nokogiri" | |
| icons=[] | |
| url = "http://anime-eupho.com/special/" | |
| doc = Nokogiri::HTML.parse(open(url)) | |
| doc.css('img').each do |node| | |
| path = node.attributes["src"].value |
NewerOlder