Skip to content

Instantly share code, notes, and snippets.

View claraj's full-sized avatar

Clara claraj

  • Minneapolis College
  • Minneapolis, MN
View GitHub Profile
/*
Chpt. 1
Programmer: <redacted>
Date: September 13, 2017
Purpose: Take a Survey of Students Answer
Github: <redacted>
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Colors</title>
<style>
#randomColor {
height : 200px;
width : 300px;
package week_4;
import org.junit.Test;
import sun.dc.pr.PRError;
import test_utils.PrintUtils;
import java.util.regex.Pattern;
import static org.junit.Assert.*;
package week_3;
import org.junit.Test;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.ParseException;
import java.util.Arrays;
import static org.junit.Assert.*;
{"status":{"code":10000,"description":"Ok"},"outputs":[{"id":"bf56110991d040f7934ec48aee5f72ca","status":{"code":10000,"description":"Ok"},"created_at":"2017-09-05T22:42:24.664927828Z","model":{"id":"aaa03c23b3724a16a56b629203edc62c","name":"general-v1.3","created_at":"2016-03-09T17:11:39.608845Z","app_id":"main","output_info":{"message":"Show output_info with: GET /models/{model_id}/output_info","type":"concept","type_ext":"concept"},"model_version":{"id":"aa9ca48295b37401f8af92ad1af0d91d","created_at":"2016-07-13T01:19:12.147644Z","status":{"code":21100,"description":"Model trained successfully"}},"display_name":"General"},"input":{"id":"bca40ac668f846beadf38f80b0145714","data":{"image":{"url":"https://s3.amazonaws.com/clarifai-api/img2/prod/small/b136050531d54fc5b2510db68a802164/a12a46750e93491d819a4b47806a7c70","base64":"true"}}},"data":{"concepts":[{"id":"ai_4CRlSvbV","name":"cute","value":0.98645484,"app_id":"main"},{"id":"ai_SzsXMB1w","name":"animal","value":0.9841515,"app_id":"main"},{"id":"ai_mFqxrph
@claraj
claraj / Regex
Created September 4, 2017 20:45
Regular expressions in Java
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
*/
public class REGEX {
public static void main(String[] args) {
//
const Clarifai = require('clarifai');
const app = new Clarifai.App({
apiKey : 'f0e78cd592a147b58a14e68d156ac5fc'
})
app.models.predict(Clarifai.GENERAL_MODEL, 'https://samples.clarifai.com/metro-north.jpg').then(
MySQL, Git, and Maven from the command line: Windows version
0. MySQL server should be running. You should create the table(s) needed for the application - see MySQL setup information.
1. Fork the example repository and note the URL. In this example I'll use the DogDB repository at https://github.com/minneapolis-edu/DogSQL
2. Clone your repository to your own computer. Navigate to the directory you would like to create the project in and type the following, replacing the URL with your project's URL
git clone https://github.com/yourusername/DogSQL
0. Add the \bin directory of the Java JDK folder to your Windows path. It will be something like C:\Program Files\java\jdk1.8.65\bin. Make sure you use the directory with 'jdk' in the name, not 'jre'.
Click Start
Type Advanced System Settings
In this window, click Environment Variables...
Find the entry for the PATH variable
Click Edit
At the end of the PATH variable, add a semi colon (;) and then the location of the Java jdk \bin directory on your computer.
Example: On my computer, it C:\Program Files\java\jdk1.8.65\bin. Replace with the actual directory on your computer.
package com.company;
import org.joda.time.DateTime;
import org.joda.time.Days;
import java.util.Date;
/**
* Created by admin on 4/26/17.
*/