Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Sawicki kevinsawicki

View GitHub Profile
@kevinsawicki
kevinsawicki / MergeButton.java
Created Aug 19, 2011
Merge Button using GitHub Java API
View MergeButton.java
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import org.eclipse.egit.github.core.IRepositoryIdProvider;
import org.eclipse.egit.github.core.MergeStatus;
import org.eclipse.egit.github.core.PullRequest;
import org.eclipse.egit.github.core.RepositoryId;
import org.eclipse.egit.github.core.client.GitHubClient;
import org.eclipse.egit.github.core.service.PullRequestService;
@kevinsawicki
kevinsawicki / UploadFile.java
Created Aug 2, 2011
Add downloads to a GitHub repository
View UploadFile.java
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;
/**
@kevinsawicki
kevinsawicki / SwtUtils.java
Created Apr 26, 2011
SWT utility method for disposing of a resource when the disposal of a widget occurs.
View SwtUtils.java
/**
* SWT Utilities.
*
* @author Kevin Sawicki (kevin@github.com)
*/
public abstract class SwtUtils {
/**
* Dispose of resource when widget is disposed.
*
View Main.java
public class Main {
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return -1;
}
public static void main(String args[]) {
@kevinsawicki
kevinsawicki / instructions.md
Last active Aug 29, 2015
Style hyperlinks in Atom
View instructions.md
  • Open Atom
  • Click the Atom > Open Your Stylesheet menu item
  • Paste code below
.editor .markup.underline.link.hyperlink {
  color: #F9EE98;
  text-decoration: underline;
}