Skip to content

Instantly share code, notes, and snippets.

package Challenge_177_Intermediate;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.util.HashMap;
import java.util.Scanner;
import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
package Challenge_174_Intermediate;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
package Challenge_174_Easy;
public class ThueMorseSequence{
private static int orders = 6;
private static boolean printSequence = false;
public static void main(String[] args){
sequence(orders);
}
package Challenge_173_Intermediate;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
import javax.imageio.ImageIO;
@MrP123
MrP123 / free_game_bot.py
Last active August 29, 2015 14:02
A reddit (reddit.com) bot that gets free games of cheapshark.com and posts a link to a subreddit
import json
import urllib
import praw
from time import sleep
#All the necessary urls
jsonUrl = "http://www.cheapshark.com/api/1.0/deals?upperPrice=0.0001"
redirectPage = "http://www.cheapshark.com/redirect?dealID={id}"
#All available stores in an array for generating tags