Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kevinsawicki's full-sized avatar

Kevin Sawicki kevinsawicki

View GitHub Profile

token = aio_XoSD69IcBnZXuIaRrpgQPgx5yBWw

@kevinsawicki
kevinsawicki / index.html
Last active February 1, 2023 19:15
Electron Vibrancy Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vibrancy Example</title>
<style>
* {
color: rgba(100, 100, 100, 0.9);
}
h1 {
@kevinsawicki
kevinsawicki / .gitignore
Last active December 4, 2015 22:17
Require issue
node_modules
@kevinsawicki
kevinsawicki / transcript.coffee
Created May 28, 2014 19:00
Convert Campfire Transcript
#!/usr/bin/env coffee
fs = require 'fs'
log = fs.readFileSync('log.txt', 'utf8')
lines = log.split('\n')
lines = lines.filter (line) -> not /\thas entered the room$/.test(line)
lines = lines.filter (line) -> not /\thas left the room$/.test(line)
@kevinsawicki
kevinsawicki / instructions.md
Last active August 29, 2015 13:56
Style hyperlinks in Atom
  • Open Atom
  • Click the Atom > Open Your Stylesheet menu item
  • Paste code below
.editor .markup.underline.link.hyperlink {
  color: #F9EE98;
  text-decoration: underline;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevinsawicki
kevinsawicki / stork.sh
Created December 28, 2011 21:50
Prints weekly stock prices for a specific year
#!/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
@kevinsawicki
kevinsawicki / EclipseMirrors.java
Created September 15, 2011 00:23
Print out Eclipse Git repositories that are not mirrored on GitHub
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;
@kevinsawicki
kevinsawicki / Fork.java
Created August 26, 2011 23:29
Forks a repository using API v3
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();