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 org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.context.event.ApplicationPreparedEvent; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.core.env.AbstractEnvironment; | |
import org.springframework.core.env.CompositePropertySource; | |
import org.springframework.core.env.Environment; | |
import org.springframework.core.env.MapPropertySource; | |
import org.springframework.core.env.PropertySource; | |
import org.springframework.core.io.support.ResourcePropertySource; | |
import org.springframework.stereotype.Component; |
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 | |
if [ -z "$1" ]; then | |
echo "Please provide the ec2 hostname to ssh into" | |
exit 1 | |
fi | |
HOST=$1 | |
if [ -z "$2" ]; then | |
echo "Please provide the pem key used to ssh into the ec2 instance" |
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
test do | |
(testpath/"test-server.go").write <<-EOS.undent | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"regexp" |
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
script: | |
- ./build.sh | |
- ./deploy.sh | |
ignore: | |
- .git | |
- .snag.yml | |
verbose: true |
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
package wrkpool | |
import ( | |
"sync" | |
"testing" | |
) | |
const RunCount = 10000 | |
func BenchmarkTestNewRoutine(b *testing.B) { |
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 DatabaseInterface extends SQLiteOpenHelper implements NewsDatabaseInterface { | |
public NewsDatabaseInterface newsHelper; | |
// Database version | |
private static final int DATABASE_VERSION = 1; | |
public DatabaseInterface(Context context) { | |
super(context, DATABASE_NAME, null, DATABASE_VERSION); | |
newsHelper = new NewsDatabaseImpl(this); | |
} |
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
#!/bin/bash | |
function update-dep() { | |
echo "Auditing $1" | |
curdir=$(pwd) | |
cd $GOPATH/src/$1 | |
git checkout master > /dev/null 2>&1 | |
git pull > /dev/null 2>&1 | |
cd $curdir |
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
The following specifications are for the first batch of Google Glass devices that have been shipped. | |
Display Metrics: density=1.5, width=640, height=36-, scaledDensity=1.5, xdpi=180.62222, ydpi=169.33333 | |
Manufacturer Brand: Google | |
Screen Size in Inches: 4.132170655589192 | |
FINGERPRINT= Google/glass_1/glass-1:4.0.4/XRS68/813833:user/release-keys | |
HARDWARE= omap4430 | |
UNKNOWN= unknown | |
RADIO= unknown |