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
{ | |
"meta": { | |
"theme": "flat" | |
}, | |
"basics": { | |
"name": "Tom Hermann", | |
"label": "Agile Developer", | |
"picture": "http://0.gravatar.com/avatar/50d7947cb5ed517406f0be1eb9a950c0?s=200", | |
"email": "tomhermann@gmail.com", | |
"website": "https://tomhermann.me", |
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 com.zombietank.rx | |
import io.reactivex.* | |
import timber.log.Timber | |
private const val TAG = "rxDebug" | |
private fun log(tag: String) = Timber.tag(tag) | |
fun <T> Observable<T>.debug(tag: String = TAG): Observable<T> { |
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
git config --global alias.co checkout | |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.ci commit |
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 com.zombietank; | |
import java.io.IOException; | |
public class SystemControl { | |
public boolean lockComputer() { | |
return executeAndWait("rundll32.exe", "user32.dll,LockWorkStation"); | |
} | |
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
############################################################################## | |
# This file lives at ~/.gradle/gradle.properties, and supplies secure details | |
# for 'gradle uploadArchives' | |
############################################################################## | |
# keyId from 'gpg --list-keys' | |
signing.keyId= | |
# passphrase used when generating key | |
signing.password= |
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
# use with mod_proxy | |
$HTTP["host"] =~ "(^|\.)server\.com$" { | |
proxy.server = ( | |
"" => ( | |
"tomcat" => ( | |
"host" => "127.0.0.1", | |
"port" => 8080, | |
"fix-redirects" => 1 | |
) |
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
$HTTP["host"] =~ "^source\.com$" { | |
url.redirect = ( "^/(.*)" => "http://dest.com/$1") | |
} |
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
apply plugin: "war" | |
apply plugin: "jetty" | |
apply from:"https://raw.github.com/tomhermann/gradle-scripts/master/sources-javadoc.gradle" | |
apply from:"https://raw.github.com/breskeby/gradleplugins/0.9-upgrade/aspectjPlugin/aspectJ.gradle" | |
repositories { | |
mavenRepo urls: "http://repo.jfrog.org/artifactory/repo" | |
} | |
version = "0.0.4.SNAPSHOT" |
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
apply plugin: 'war' | |
apply plugin: 'groovy' | |
apply plugin: 'jetty' | |
apply plugin: 'eclipse' | |
version = '1.0' | |
springVersion='3.0.5.RELEASE' | |
slf4jVersion='1.6.1' | |
sourceCompatibility = 1.6 |
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
template <class T> | |
Matrix<T> gaussian_solver<T>::operator()(const Matrix<T>& A, const Vector<T>& b) { | |
if(!A.is_square()) { | |
throw CSignal("Gaussian solver can only be applied to square matrices"); | |
} | |
Matrix<T> system = A; // make a copy because we're going to mess it up | |
Vector<T> row_temp; | |
system = system.augment(b); // Augment vector b, now we have a system |
NewerOlder