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
# Import packages and config | |
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
from config import consumer_key, consumer_secret, access_token, access_token_secret | |
import datetime | |
import csv | |
# Takes tweets and a designated csv file and writes them to it. |
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
import imaplib | |
import email | |
import os | |
def create_folder(folder_name="backup"): | |
""" | |
Creates a folder to store all mails | |
""" | |
if not os.path.exists(folder_name): |
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 | |
# | |
# Very basic example of using Python and IMAP to iterate over emails in a | |
# gmail folder/label. This code is released into the public domain. | |
# | |
# RKI July 2013 | |
# http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
# | |
import sys | |
import imaplib |
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
"Source","Feed","Rank","Tags" | |
Barrons,http://online.barrons.com/xml/rss/3_7534.xml,5,News | |
Barrons,http://blogs.barrons.com/focusonfunds/feed/,5,Blog | |
Barrons,http://blogs.barrons.com/techtraderdaily/feed/,5,Blog | |
Barrons,http://blogs.barrons.com/stockstowatchtoday/feed/,5,Blog | |
Barrons,http://online.barrons.com/xml/rss/3_7563.xml,5,News | |
Barrons,http://online.barrons.com/xml/rss/3_7560.xml,5,News | |
Barrons,http://online.barrons.com/xml/rss/3_7533.xml,5,News | |
Barrons,http://online.barrons.com/xml/rss/3_7535.xml,5,News | |
Barrons,http://online.barrons.com/xml/rss/3_7544.xml,5,News |
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
http://feeds.reuters.com/news/artsculture | |
http://feeds.reuters.com/reuters/businessNews | |
http://feeds.reuters.com/reuters/companyNews | |
http://feeds.reuters.com/reuters/entertainment | |
http://feeds.reuters.com/reuters/environment | |
http://feeds.reuters.com/reuters/healthNews | |
http://feeds.reuters.com/reuters/lifestyle | |
http://feeds.reuters.com/news/reutersmedia | |
http://feeds.reuters.com/news/wealth | |
http://feeds.reuters.com/reuters/MostRead |
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
git log --diff-filter=D --summary | grep -E 'delete|^commit\s+\S+ |
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
'use strict'; | |
// first, run sudo apt-get install jq nodejs npm | |
// second, run npm install bluebird co to install dependencies, and make sure bitcoin-cli can run these commands. | |
// third, run node thisScript.js and it will change all the addresses on your bitcoind into segwit addresses. | |
var Promise = require('bluebird'); | |
var co = require('co'); | |
var exec = Promise.promisify(require('child_process').exec); | |
var main = function() { |
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
<!-- Code snippet --> | |
<div class="form-group"> | |
<div class="col-md-12 text-center"> | |
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | |
</div> | |
</div> |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
$ brew remove git | |
$ brew remove curl | |
$ brew install openssl | |
$ brew install --with-openssl curl | |
$ brew install --with-brewed-curl --with-brewed-openssl git |