This file contains 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 cheerio = require('cheerio'); | |
fs.readFile('input.html','utf8', function (err, data) { | |
if (err) throw err; | |
var $ = cheerio.load(data); | |
$('.js-tweet-text').html(); | |
var tweets = [] | |
$('.js-tweet-text').each(function(index,element) | |
{ |
This file contains 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 "oauth" | |
require 'json' | |
require 'uri' | |
#CONFIG : | |
oauthConsumer = "consumerkey" | |
oauthSecret ="consumersecret" | |
tumblrUsername="mail" |
This file contains 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/env python | |
import sys | |
import os | |
import base64 | |
from subprocess import call | |
from subprocess import Popen, PIPE | |
from os.path import expanduser | |
for f in sys.argv[1:]: | |
pathToDropBoxFolder = expanduser("~")+"/Dropbox/" |
This file contains 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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |