Skip to content

Instantly share code, notes, and snippets.

View RascalTwo's full-sized avatar

Rascal Two RascalTwo

View GitHub Profile
@RascalTwo
RascalTwo / ExamScores.java
Created December 12, 2015 01:32
Exercise 102 from Programming Part 1 from http://mooc.fi/
import java.util.ArrayList;
public class ExamScores{
private ArrayList<Integer> examScores;
private int[] gradeDistribution;
public static void main(String[] args){
ExamScores es = new ExamScores(34, 41, 53, 36, 55, 27, 43, 40);
es.printDistribution();
@RascalTwo
RascalTwo / DeepLearningPDFScraper.py
Last active August 4, 2021 00:21
Downloads almost all the pdfs from https://github.com/terryum/awesome-deep-learning-papers, thrown together in about an hour.
import requests
import os
try:
import requests
has_requests = True
except ImportError:
import urllib.request
has_requests = False
if has_requests:
@RascalTwo
RascalTwo / math_testing.py
Last active August 5, 2021 05:03
Python Bug Scavenger Hunt
"""
Can you find all the errors?
While you can look through the code line-by-line, it'd probably be easier if you
ran the included tests and let them show you where the bugs reside...
"""
import textwrap
import math
from functools import wraps
@RascalTwo
RascalTwo / README.md
Last active October 25, 2022 15:46
Javascript vs Brython Hangman

Hangman Comparison

Classic Hangman with a digital theme!

Gameplay

Side-by-side comparison of using Javascript and Brython to add identical functionality to a derivative game of Hangman.

You can use the keyboard enter guesses, the Enter and Escape keys dismiss the current message, and ? toggles the hint

@RascalTwo
RascalTwo / README.md
Last active August 5, 2021 05:02
jQuery Parallax Optical illusion

jQuery Parallax

A neat optical illusion using a jQuery Parallax library.

jQuery.parallax.mp4
@RascalTwo
RascalTwo / .gitignore
Last active August 5, 2021 05:02
JS Custom Hashing function with benchmarks
*.txt
@RascalTwo
RascalTwo / README.md
Last active November 1, 2022 03:58
Python CLI Minesweeper

CLI Minesweeper

Simple Minesweeper CLI

minesweeper.cli.mp4

How It's Made

Tech Used: Python

@RascalTwo
RascalTwo / multiple_choice.cpp
Last active August 7, 2021 02:29
C++ Multiple choices
#include <fstream>
#include <iostream>
using namespace std;
typedef struct Question {
string text;
string one;
string two;
string three;
@RascalTwo
RascalTwo / Makefile
Last active August 7, 2021 02:33
Tracfone CLI details fetcher
all:
@javac $(shell find -name "*.java")
@java TracfoneInfo $(PHONE_NUMBER)
@RascalTwo
RascalTwo / wattpad.py
Last active August 7, 2021 02:32
Random Wattpad Story Fetcher
import requests
import random
from typing import List
API_STORYINFO = 'https://www.wattpad.com/api/v3/stories/' # ?name=username filter available
API_STORYTEXT = 'https://www.wattpad.com/apiv2/storytext?id='
API_GETCATEGORIES = 'https://www.wattpad.com/api/v3/categories'
API_USERS = 'https://www.wattpad.com/api/v3/users/'