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 org.apache.commons.net.ftp.* | |
| import java.io.InputStream | |
| import java.io.ByteArrayInputStream | |
| String ftphost = "127.0.0.1" | |
| String ftpuser = "test" | |
| String ftppwd = "test" | |
| int ftpport = 21 |
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
| /* GraphicGlDemoActivity.java | |
| * Author: Yong Bakos | |
| * Since: 11/26/2012 | |
| * Thanks to: | |
| * Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
| * OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
| */ | |
| package com.humanoriented.sudoku; | |
| import java.nio.ByteBuffer; |
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 ConnectedComponentsLabelling { | |
| public static int[][] twoPass(int[][] matrix) { | |
| int nextLabel = 1; | |
| int rowLength = matrix.length; | |
| int columnLength = matrix[0].length; | |
| List<Set<Integer>> linked = new ArrayList<Set<Integer>>(); | |
| int[][] labels = new int[rowLength][columnLength]; |
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 Classes; | |
| import org.w3c.dom.NamedNodeMap; | |
| import org.w3c.dom.Node; | |
| import javax.imageio.ImageIO; | |
| import javax.imageio.ImageReader; | |
| import javax.imageio.metadata.IIOMetadata; | |
| import javax.imageio.stream.ImageInputStream; | |
| import java.io.File; |
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
| private static void rotateJpg() { | |
| try { | |
| File imageFile = new File(inFilePath); | |
| BufferedImage originalImage = ImageIO.read(imageFile); | |
| // byte[] pixels = ((DataBufferByte) originalImage.getRaster().getDataBuffer()).getData(); | |
| System.out.println(isLandscape(originalImage)); | |
| Metadata metadata = ImageMetadataReader.readMetadata(imageFile); |
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
| #include "stdafx.h" | |
| /** | |
| * Loads static images from database and detect faces | |
| */ | |
| #include <stdio.h> | |
| #include<conio.h> | |
| #include "cv.h" | |
| #include "highgui.h" |
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
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| try { | |
| PackageInfo info = getPackageManager().getPackageInfo( | |
| "com.facebook.samples.loginhowto", | |
| PackageManager.GET_SIGNATURES); | |
| for (Signature signature : info.signatures) { | |
| MessageDigest md = MessageDigest.getInstance("SHA"); |
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
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Asmera | |
| Africa/Bamako | |
| Africa/Bangui | |
| Africa/Banjul | |
| Africa/Bissau |
NewerOlder