Skip to content

Instantly share code, notes, and snippets.

@Saruultugs
Saruultugs / README.md
Created February 5, 2020 16:57 — forked from edds/README.md
Socket.IO example to stream tweets on a topic

A simple example to create a websocket server and stream tweets about a pre-defined subject to the page.

Installation

$ npm install socket.io, twitter

Run

$ node ./app.js
@Saruultugs
Saruultugs / keybase.md
Created November 13, 2019 16:10
keybase.md

Keybase proof

I hereby claim:

  • I am saruultugs on github.
  • I am saruultugs (https://keybase.io/saruultugs) on keybase.
  • I have a public key ASBnP2ekTh5m9ajNhk3vQEuL6JS-AO_-5EXY4EXofr2Kzgo

To claim this, I am signing this object:

@Saruultugs
Saruultugs / list.log
Created August 9, 2018 16:24 — forked from nicolasembleton/list.log
List of most past CryptoCurrency ICO whitepapers PDF (from January 16th 2018), probably incomplete
https://www.gatcoin.io/wp-content/uploads/2017/08/GATCOIN-Whitepaper_ENG-1.pdf
https://appcoins.io/pdf/appcoins_whitepaper.pdf
https://pareto.network/download/Pareto-Technical-White-Paper.pdf
http://betbox.ai/BetBoxBizWhitepaper.pdf
https://www.aidcoin.co/assets/documents/whitepaper.pdf
https://irp-cdn.multiscreensite.com/ee070c4a/files/uploaded/Whitepaper%20AlchemyByte%20%26%20SLHashByte%20v1.6.pdf
http://goldminecoin.io/wp-content/uploads/2017/11/GoldMineCoin_ENG.pdf
https://www.pecun.io/wp-content/uploads/2017/10/Pecunio_White_Paper_011.pdf
http://ico.cryptoibet.com/assets1/pdf/whitepaper-1.pdf
https://www.bitnettoken.org/documents/BNETWhitePaper.pdf
@Saruultugs
Saruultugs / README.md
Created December 19, 2016 08:37 — forked from debashisbarman/README.md
A Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

#Creating a Twitter bot with Node.js Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

##Tools we need Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application

@Saruultugs
Saruultugs / twitter_network.py
Created April 19, 2016 09:37 — forked from mjcreativeventures/twitter_network.py
Process twitter data to generate an output file of relationships between twitter account
import glob
import os
import json
import sys
from collections import defaultdict
users = defaultdict(lambda: { 'followers': 0 })
for f in glob.glob('twitter-users/*.json'):
data = json.load(file(f))
@Saruultugs
Saruultugs / get_followers.py
Created April 19, 2016 09:37 — forked from mjcreativeventures/get_followers.py
Collect twitter followers
import tweepy
import time
import os
import sys
import json
import argparse
FOLLOWING_DIR = 'following'
MAX_FRIENDS = 200
FRIENDS_OF_FRIENDS_LIMIT = 200
// PhantomJS Cheatsheet
$ brew update && brew install phantomjs // install PhantomJS with brew
phantom.exit();
var page = require('webpage').create();
page.open('http://example.com', function() {});
page.evaluate(function() { return document.title; });

Sendy

Sendy is a self hosted email newsletter application that lets you send trackable emails via Amazon Simple Email Service (SES).

Heroku

You can deploy Sendy on Heroku using the following instructions (I assume you've already installed the heroku toolbelt).

  1. On Heroku, create a new app and add the following add on: ClearDB (I chose the free tier).