Skip to content

Instantly share code, notes, and snippets.

for year in range(2021, 2038):
for submission in reddit.subreddit('futurology').search(str(year), sort='relevance'):
print(submission.title)
print 'https://www.reddit.com'+submission.permalink
# Append to the file here
filename = "DATA/prediction.txt"
# Append the comments
with io.open(filename, 'a', encoding='utf-8') as file:
@iontom
iontom / nav_userlogin.js
Created August 18, 2014 22:00
How to make user login responsive
//Make file called nav_users.js and put this in there somewhere. Then reference nav_users from main.js
document.getElementById('usersubmit').addEventListener('click', function (e) {
e = e || window.event;
$user = document.getElementById('user_css_id').value;
$pass = document.getElementById('pass_css_id').value;
$pass = document.getElementById('email_css_id').value;
tryLogin($user,$pass,$email);
@iontom
iontom / Testgist
Created April 25, 2014 19:44
TestGist
# Primary Components
import os
from python.bottle import route, run, static_file, template, view, post, request, error
import sqlite3 as lite
import sys
import json
import pymongo # import Connection
# OAuth components