Skip to content

Instantly share code, notes, and snippets.

View dzt's full-sized avatar
🛹

Peter Soboyejo dzt

🛹
  • Worcester, Massachusetts
View GitHub Profile
var math = require('mathjs');
/*
You One 1s and Four 7s, how do you make these numbers equal 100 with any operation.
*/
// dictionary to create combinations from
var dictionary = ['+', '-', '/', '*'];
@dzt
dzt / FloatCheck.java
Last active October 20, 2017 06:33
AP CS A - Chapter 5 Solutions (100pts)
public class FloatCheck {
float one, two;
public FloatCheck(float one, float two) {
this.one = one;
this.two = two;
}
public boolean roundToTwoDec() {
@dzt
dzt / Card.java
Last active October 16, 2017 01:17
Chp5 Ex1, 2
import java.util.HashMap;
public class Card {
private String input;
private HashMap<Integer, String> numberDictionary = new HashMap<Integer, String>();
private HashMap<String, String> cardDictionary = new HashMap<String, String>();
public Card(String input) {
@dzt
dzt / Month.java
Created October 6, 2017 03:15
Chp4 Pt 2
public class Month {
private final String months = "January February March April May June July August September October November December";
int monthNo;
public Month(int monthNo) {
this.monthNo = monthNo;
}
@dzt
dzt / BankAccount.java
Created September 28, 2017 03:25
Chp3 Finale
/**
* Allows you to manage your BankAccount information and modify it by adding and withdrawing from the account.
* @author Peter Soboyejo
* @version 1.0
* @since September 27, 2017
*/
public class BankAccount
{
private double balance;
private double fee = 0.00;
@dzt
dzt / Dog.java
Created September 13, 2017 03:37
AP CS A Help for Bud
public class Dog {
String name, breed;
double weight;
// constructor
public Dog(String name, String breed, double weight) {
this.name = name;
this.breed = breed;
this.weight = weight;
@dzt
dzt / acknowledgements
Created August 27, 2017 00:14
Acknowledgements for Gonk App
SwiftyJSON
------------------
The MIT License (MIT)
Copyright (c) 2017 Ruoyu Fu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 4 columns, instead of 3 in line 4.
Name,Description,Link,Image
Supreme®/Schott® Faux Fur Peacoat,Custom fit Schott® faux fur peacoat with satin lining. Double breasted 8-button closure with hand pockets at lower front and 2 interior chest pockets.,http://www.supremenewyork.com/previews/fallwinter2017/jackets/supreme-schott-faux-fur-peacoat,http://d17ol771963kd3.cloudfront.net/136533/zo/-dGaNM8icEY.jpg
Reversed Shearling Hooded Jacket,Sheepskin with reverse shearling body. Full zip closure with leather logo appliqué on lower back.,http://www.supremenewyork.com/previews/fallwinter2017/jackets/reversed-shearling-hooded-jacket,http://d17ol771963kd3.cloudfront.net/133679/zo/PMVtDFB0Zag.jpg
100 Dollar Bill Trucker Jacket,"All cotton denim jacquard trucker with button front closure, hand pockets at lower front and chest pockets with button closures.",http://www.supremenewyork.com/previews/fallwinter2017/jackets/100-dollar-bill-trucker-jacket,http://d17ol771963kd3.cloudfront.net/134739/zo/ywBE767ervE.jpg
100 Dollar Bill Overalls,All cotton twill,h
@dzt
dzt / background.js
Last active July 7, 2017 01:05
Chrome Harvester
var config = {
mode: "pac_script",
pacScript: {
data: "function FindProxyForURL(url, host) {\n" +
" if (shExpMatch(url, \'*helper*\'))\n" +
" return 'PROXY 127.0.0.1:3000';\n" +
" return 'DIRECT';\n" +
"}"
}
};
javascript:(function(){
var code=prompt("Enter the injection Code","Code");
eval(code);
})();