Skip to content

Instantly share code, notes, and snippets.

@sfpprxy
sfpprxy / max_prime_factor.py
Created March 8, 2016 19:49
max_prime_factor
import math
def is_prime(n):
return not [i for i in range(2, int(math.sqrt(n)) + 1) if n % i == 0]
def max_prime_factors(n):
x = [i for i in range(2, int(math.sqrt(n)) + 1)
if is_prime(i) and n % i == 0]
@sfpprxy
sfpprxy / api_url.txt
Created March 10, 2016 02:45
api/sample
http://60e0a66f.ngrok.io/api/sample
/**
* This class is used to test Operations methods
*
* @author Joe Cui
* @version 1.0
*/
package eventmanage;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java -Didea.launcher.port=7546 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/
package eventmanage;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
/**
* Class to represent individual Events *** DO NOT MODIFY ***
*
* @author Faiyaz Doctor
package eventmanage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
/**
* Implementation of EventList Interface
*
* @author Joe Cui
package eventmanage;
import java.util.Date;
/**
* This class is used to test Operations methods
*
* @author Joe Cui
* @version 1.0
*/
package eventmanage;
import java.util.Arrays;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.util.List;
/**
* Helper class for event operations *** DO NOT MODIFY ***
package andy;
import java.lang.reflect.Array;
import java.util.Date;
/**
* This class is used to test Operations methods
* @author (enter your name here)
* @version (date)
*/