Skip to content

Instantly share code, notes, and snippets.

/* Generated from Java with JSweet 2.0.0 - http://www.jsweet.org */
/*jshint sub:true*/
function Main(InputString){
Main.main = function () {
//Variables:
// [Shelf #, First Call No, Last Call No, First Call No Comp, Last Call No Comp.]
// Note: Shelf arrays[0] is a blank.
// Make sure that the first Shelf # is 1, not 0. Leave Shelf # = 0 blank.
//var ShelfNumber = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
var FirstCallNo = [10000, 10000, 10000, 700.0, 800.0, 900.0, 10000, 0.001, 300.0, 400.0, 500.0, 600.0, 10000, 10000];
# code modified, tweaked and tailored from code by bertwert
# on RPi forum thread topic 91796
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# GPIO ports for the 7seg pins
segments = (11,4,23,8,7,10,18,25)
# 7seg_segment_pins (11,7,4,2,1,10,5,3) + 100R inline
Personal Programming Notes:
Write 2+ resumes
LibFinder:
Original Java: https://gist.github.com/M0N57R0517Y/5d077b8afcadfccbd1784d5ae10fa150
Finish writeup of Libfinder on personal site
Email Michelle Walsh for drawings of library (Meeting scheduled for 3:20 Tuesday)
Work on button for JS argument
Interactive map with CoSpaces Maker: https://cospaces.io/maker/
Can Libfinder be put on githup to host? Perhaps connect githup account and komodo editor?
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//Variables:
// [Shelf #, First Call No, Last Call No, First Call No Comp, Last Call No Comp.]
// Note: Shelf arrays[0] is a blank.
// Make sure that the first Shelf # is 1, not 0. Leave Shelf # = 0 blank.
//int[] ShelfNumber = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13};
double[] FirstCallNo = new double[] {10000, 10000, 10000, 700.000, 800.000, 900.000, 10000, 0.001, 300.000, 400.000, 500.000, 600.000, 10000, 10000};
Now I know you’re not thrilled to sit here today,
but just give me a few minutes, and then I’ll go away I stand here hoping to get your vote
by reading off this paper with some stuff I wrote Now let me tell you why you should vote for me
for starters, I’m the most experienced nominee
I can make 300 dollars with Boba Tea
and 500 with each bake sale I oversee
a thousand dollars is a lot for one year
But now I’m ready to kick it into high gear
So I’m not gonna act like Trump,
and try to spew words that belong in a dump
@M0N57R0517Y
M0N57R0517Y / SolarSystem.html
Created April 5, 2016 16:21
HTML for Solar System Animation.
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css" media="screen"/>
</head>
<body>
<img id="sun" src="images/1sun.png"/>
<div id="mercury-orbit">
@M0N57R0517Y
M0N57R0517Y / SolarSystem.CSS
Created April 5, 2016 16:19
CSS for Solar System Animation.
html, body {
background-color: #000000;
}
#sun {
position: absolute;
top: 50%;
left: 50%;
@M0N57R0517Y
M0N57R0517Y / "Your Therapist is Typing a Response."
Last active March 19, 2016 00:37
This is a poem I wrote which basically became a Mr. Robot fanfiction, a buddy of mine told me I should put it up.
Who are you?
Why do I come here, day after day.
Talking to you, baring this soul I have made for myself.
I see you as a flashing message on a screen
“Your therapist is typing a response”
I don’t know who you are
They told me to come here every week
Talk to you for an hour
Take my meds with dinner.
Why should I do that?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="./site-icon.png">
<title>Cubing competition markup creator &middot; /r/Cubers</title>
<link rel="stylesheet" type="text/css" href="sweetalert/sweetalert.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css">
</head>
<body>
**Attention to all competitors:
A new program has been created to sort results. This program will do the majority of the work rather than the person using it doing most of it, (how it is currently), however it has specific criteria that it looks for in order to do everything automatically. These requirements are:
Name (In comment! It is indistinguishable from the flair, so it has to be seperate. No /u/ please)
Event name, copied exactly from how /u/PWNZ0R_P373R spells it in the competition page.
A colon (**:**) following *directly* after the event name. IE,