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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Eye</title> | |
<style> | |
html, body { background-color: #333; color: #eee; margin: 0; padding: 0; } | |
canvas { background-color: #000; color: #fff; display: block; margin: 16px auto 0; outline: 1px solid #555;} | |
</style> | |
</head> |
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 'snoo' | |
bot = Snoo::Client.new 'http://www.reddit.com', 'r/mylittlestreamlog bot' | |
puts 'Logging in...' | |
bot.log_in(ARGV[0], ARGV[1]) | |
def is_stream(item) | |
data = item['data'] | |
if /(?<!main)stream/i.match(data['title']) |
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
--[[ | |
Currently implemented functions are: | |
login(user, passwd) | |
me(auth) | |
submit(title, isSelf, content, subreddit, auth) | |
comment(thing_id, text, auth) | |
]] | |
local json = require "json" | |
local util = require "reddit.util" |
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 os | |
import urllib2 | |
import re | |
import ctypes | |
from _winreg import * | |
def apod(): | |
url = "http://apod.nasa.gov/apod/" |
NewerOlder