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 'set' | |
require 'bibtex' | |
# Usage: ruby citecut.rb <latex> <bib> | |
# Get the citekeys used in the LaTeX doc | |
citekeys = Set.new | |
open(ARGV[0]).readlines.each do |line| | |
line.scan(/\\\w*cite\w*{([\w\d,:-]+)}/) do |c| | |
citekeys.merge c[0].split(',') |
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 request = require('request'); | |
function filter(options, callback){ | |
var params = { | |
uri: "https://stream.twitter.com/1/statuses/filter.json", | |
} | |
if (typeof options['oauth'] !== 'undefined'){ | |
params.oauth = options.oauth; | |
delete options.oauth; | |
} |
NewerOlder