This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.metadata; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.Scanner; | |
import org.apache.commons.lang.StringEscapeUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.czxttkl.stocks.old; | |
import io.github.czxttkl.stocks.auxi.JS; | |
import io.github.czxttkl.stocks.auxi.Stock; | |
import io.github.czxttkl.stocks.auxi.StockGlobal; | |
import io.github.czxttkl.util.UtilJava; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
############################################################ | |
# | |
# | |
# author: [email protected] | |
# date: 03/12/2013 | |
# purpose: count inversions in a given array of numbers | |
# | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestConSum { | |
public static void main(String... args) { | |
int[] arr = new int[]{-2,11,-4,13, -9, -10,99}; | |
int negsum = 0; | |
int maxsum = 0; | |
for (int i = 0; i < arr.length; i++) { | |
if (arr[i] < 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return if the point is in the floor's contour +1: inside the contour -1: outside the contour 0:lies on the edge; | |
* | |
* @param openCvWidth | |
* The width in the opencv screen | |
* @param openCvHeight | |
* The height in the opencv screen | |
*/ | |
public int isPointInFloor(int openCvWidth, int openCvHeight) { | |
return isPointInFloor(openCvWidth, openCvHeight, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void setCurrentMode(int currentMode) { | |
this.currentMode = currentMode; | |
switch(mode) { | |
case MODE_MAIN_MENU: | |
OpenGLBugManager.generateMainMenuBug(); | |
break; | |
case MODE_TUTORIAL_1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void setCurrentMode(int currentMode) { | |
this.currentMode = currentMode; | |
switch(mode) { | |
case MODE_MAIN_MENU: | |
OpenGLBugManager.generateMainMenuBug(); | |
break; | |
case MODE_TUTORIAL_1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TryJoin { | |
public static void main(String... arg) throws InterruptedException { | |
Thread a = new Thread(new Runnable() { | |
@Override | |
public void run() { | |
try { | |
Thread.sleep(5000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
public class HomeWork1b { | |
private static <T> void findFirstSharedElement(LinkedList<T> linkA, | |
LinkedList<T> linkB) { | |
int offsetA = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.czxttkl.homework; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
public class HomeWork1b { | |
private static <T> void findFirstElement(LinkedList<T> linkA, | |
LinkedList<T> linkB) { |