Skip to content

Instantly share code, notes, and snippets.

View calzoneman's full-sized avatar

Calvin Montgomery calzoneman

View GitHub Profile
@calzoneman
calzoneman / tunes.py
Last active December 10, 2015 03:38
Python [2.7] script for scraping the frontpage of [insert subreddit here] for youtube/soundcloud links (you can add/remove whitelisted domains in the WHITELIST variable), sorting them by score, and dumping them to an HTML file. If the reddit API provides the `media_embed` field, the generated HTML contains an embedded player, otherwise it contai…
"""
-------------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <calzoneman@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a drink in return
* - Calvin Montgomery
-------------------------------------------------------------------------------
"""
@calzoneman
calzoneman / game.js
Created January 27, 2013 03:06
Work in progress breakout clone with screen modifiers
const BRICK_WIDTH = 15;
const BRICK_HEIGHT = 4;
var Brick = function(image) {
this.width = BRICK_WIDTH;
this.height = BRICK_HEIGHT;
this.image = image;
}
Brick.prototype = {
@calzoneman
calzoneman / changelog.md
Last active December 19, 2015 05:49
CyTube Changelog and TODO

===

Changelog and major TODO list

3.1

Server

  • Refactored behavior of the Channel prototype into a small core with several modules
  • Refactored User prototype to be compatible with new Channel prototype
@calzoneman
calzoneman / server.js
Last active January 1, 2016 15:39
Personal IRC bridge for berrytube
/**
* NOTE: BRIDGE DEVELOPMENT HAS MOVED TO https://github.com/berrytube/bt-irc-bridge.
* THIS GIST IS NO LONGER BEING ACTIVELY MAINTAINED
*/
/**
* ### cyzon's berrytube/irc bridge ###
*
* Installation
* - Requires nodejs (http://nodejs.org). Available for Windows/OSX/Linux and source code.
@calzoneman
calzoneman / index.html
Created April 17, 2014 16:12
YouTube autohide controls bug
<!doctype html>
<html lang="en">
<head>
<title>YouTube controls autohide bug</title>
<meta charset="utf-8">
</head>
<body>
<div id="ytapiplayer"></div>
<script src="https://www.youtube.com/iframe_api"></script>
<script src="player.js"></script>
@calzoneman
calzoneman / 3.x.md
Last active August 29, 2015 14:00
CyTube 3.x Development Plans

https://f076d534f36238f9d651505af83c3648b17fc479.googledrive.com/host/0Bx83dbUTzBGETktRaE1BOE1QWFU/Brothers_Conflict_-_Beloved_x_Survival.mp3

Misc Changes

Requests

  • [permissions] Select from Anonymous, Guest, Registered, Leader, Moderator, Admin, Owner and Founder (instead of Anonymous, Guest, Registered, Moderator and Channel Admin) for better control.
  • Add permissions for: view (and change) permissions, view logs, view (and change) javascript and view (and change) CSS.
  • Add permission to clear chat.
  • Log commands (i.e. /clear)

Keybase proof

I hereby claim:

  • I am calzoneman on github.
  • I am montgc (https://keybase.io/montgc) on keybase.
  • I have a public key whose fingerprint is 71CC 8C03 9ED7 0A9C 1E4F EC8A 1957 FBB9 7ABF 6D2C

To claim this, I am signing this object:

@calzoneman
calzoneman / youtube.py
Last active December 2, 2015 10:16
YouTube module for willie - using v3 API
# coding=utf8
"""
youtube.py - Willie YouTube v3 Module
Copyright (c) 2015 Calvin Montgomery, All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list