This file contains hidden or 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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class GameOfLife extends JPanel implements ActionListener, Runnable { |
This file contains hidden or 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 | |
count = 0 | |
for folder in os.listdir('.'): | |
if not os.path.isdir(folder): | |
continue | |
for filename in os.listdir('./' + folder): | |
oldPath = './' + folder + '/' + filename |
This file contains hidden or 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 | |
count = 0 | |
for filename in os.listdir('.'): | |
if filename == 'separateGifs.py': | |
continue | |
elif os.path.isdir(filename): | |
continue |
This file contains hidden or 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
// ==UserScript== | |
// @name Crunchyroll: Resize Player To Window Size | |
// @description Moves the video to the top of the website and resizes it to the screen size. | |
// @author Chris H (Zren / Shade) | |
// @icon http://crunchyroll.com/favicon.ico | |
// @homepageURL http://userscripts.org/scripts/show/157272 | |
// @downloadURL http://userscripts.org/scripts/source/157272.user.js | |
// @updateURL http://userscripts.org/scripts/source/157272.meta.js | |
// @namespace http://xshade.ca | |
// @version 1.1.1 |
This file contains hidden or 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
package subnomo; | |
import robocode.AdvancedRobot; | |
import robocode.HitByBulletEvent; | |
import robocode.RobotDeathEvent; | |
import robocode.ScannedRobotEvent; | |
import robocode.util.Utils; | |
import java.awt.*; | |
import java.awt.geom.Point2D; |
This file contains hidden or 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
var async = require('async'); | |
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
var mkdirp = require('mkdirp'); | |
var progressbar = require('progress'); | |
var prompt = require('prompt'); | |
var request = require('request'); | |
if (!fs.existsSync('images')) { | |
mkdirp('images'); |
This file contains hidden or 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
def rock(): | |
from random import randrange | |
import sys | |
'''Chooses random number and then assigns either rock, paper, | |
or scissors to variable "choice" depending on number. Returns choice.''' | |
def rps(): | |
num = randrange(1, 4, 1) | |
if num == 1: | |
choice = 'Rock' | |
elif num == 2: |
NewerOlder