find . -type f -name "* conflicted *" -exec rm -f {} \;
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
| ['AF', 'AQ', 'CI', 'CU', 'BY', 'BV', 'IO', 'CM', 'CF', 'CX', 'HT', 'HM', 'IR', 'IQ', 'KR', 'LA', 'LB', 'LR', 'LY', 'MM', 'NG', 'PK', 'PG', 'RS', 'SD', 'SY', 'ZW', 'VN', 'BD'] |
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 'octokit' | |
| # https://help.github.com/articles/creating-an-access-token-for-command-line-use/ | |
| client = Octokit::Client.new(:access_token => "getmefromgithub") | |
| COPY_FROM_REPO = "repo/old" | |
| COPY_TO_REPO = "repo/new" | |
| current_labels = client.labels(COPY_FROM_REPO) |
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
| i: 135 | |
| west: 89 | |
| virginia: 74 | |
| media: 55 | |
| marketing: 51 | |
| wv: 49 | |
| social: 46 | |
| news: 38 | |
| political: 38 | |
| love: 37 |
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
| director: 66 | |
| news: 61 | |
| web: 54 | |
| digital: 53 | |
| politics: 52 | |
| twitter: 50 | |
| design: 49 | |
| founder: 44 | |
| tweets: 43 | |
| former: 43 |
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' | |
| # change this to your own info to get the script to work | |
| # get it from https://apps.twitter.com/ | |
| client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = "XXX" | |
| config.consumer_secret = "XXX" | |
| config.access_token = "XXX" | |
| config.access_token_secret = "XXX" |
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
| new: 514 | |
| times: 497 | |
| york: 483 | |
| editor: 264 | |
| reporter: 138 | |
| @nytimes: 101 | |
| author: 83 | |
| correspondent: 71 | |
| bureau: 60 | |
| nyt: 60 |
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 'httparty' | |
| require 'json' | |
| require 'pp' | |
| require 'uri' | |
| require 'hashie' | |
| def load_json(filename) | |
| Hashie::Mash.new(JSON.parse(IO.read(filename))) | |
| end |
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
| var fs = require('fs'); | |
| var request = require('request'); | |
| var cheerio = require('cheerio'); | |
| console.log("Starting scraping"); | |
| var allResults = []; | |
| for (var chapter=1; chapter <= 168; chapter++) { |
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
| worker_processes Integer(ENV["WEB_CONCURRENCY"] || 4) | |
| timeout 15 | |
| preload_app true | |
| before_fork do |server, worker| | |
| Signal.trap 'TERM' do | |
| puts 'Unicorn master intercepting TERM and sending myself QUIT instead' | |
| Process.kill 'QUIT', Process.pid | |
| end |