This file contains 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
/** | |
* SWT Utilities. | |
* | |
* @author Kevin Sawicki (kevin@github.com) | |
*/ | |
public abstract class SwtUtils { | |
/** | |
* Dispose of resource when widget is disposed. | |
* |
This file contains 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 Main { | |
/** | |
* @see java.lang.Object#hashCode() | |
*/ | |
public int hashCode() { | |
return -1; | |
} | |
public static void main(String args[]) { |
This file contains 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
GitHubClient client = new GitHubClient().setCredentials("user", "p4ssw0rd"); | |
Gist gist = new Gist().setDescription("Prints a string to standard out"); | |
GistFile file = new GistFile().setContent("System.out.println(\"Hello World\");"); | |
gist.setFiles(Collections.singletonMap("Hello.java", file)); | |
gist = new GistService(client).createGist(gist); |
This file contains 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.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import org.eclipse.egit.github.core.Download; | |
import org.eclipse.egit.github.core.RepositoryId; | |
import org.eclipse.egit.github.core.client.GitHubClient; | |
import org.eclipse.egit.github.core.service.DownloadService; | |
/** |
This file contains 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.io.IOException; | |
import org.eclipse.egit.github.core.RepositoryId; | |
import org.eclipse.egit.github.core.client.GitHubClient; | |
import org.eclipse.egit.github.core.service.RepositoryService; | |
public class Fork { | |
public static void main(String... args) throws IOException { | |
GitHubClient client = new GitHubClient(); |
This file contains 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.eclipse.egit.github.core.Repository; | |
import org.eclipse.egit.github.core.service.RepositoryService; |
This file contains 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/env bash | |
curl -s "http://www.google.com/finance/historical?q=$1&startdate=jan+1&2c+$2&enddate=dec+31%2c+$2&output=csv&histperiod=weekly" \ | |
| sed -e '1d' \ | |
| tac \ | |
| cut -d, -f5 \ | |
| spark |
This file contains 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
a | |
b | |
c |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer