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 | |
BASE_PATH="$HOME/Development/tools/playframework" | |
changePath () { | |
path_remove $1; | |
export PATH="$1:$PATH"; | |
} | |
path_remove () { |
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
@RunWith(PlayJUnitRunner.class) | |
public class AfterOrganisationTest { | |
@Test | |
public void canBePersisted() { | |
new Organisation("org1").save(); | |
Organisation reloadedOrg = Ebean.find(Organisation.class).findUnique(); | |
assertThat(reloadedOrg.name).isEqualTo("org1"); | |
} | |
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
; (function($, Raphael, window, document, undefined){ | |
function loadLibs(libs, callback) { | |
function loadScripts(callback) { | |
libs.forEach(function(lib){ | |
if (!lib.getLib()){ | |
console.log("loading " + lib.url); | |
var head = document.getElementsByTagName('head')[0]; | |
var script = document.createElement('script'); |
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
[core] | |
autocrlf = input | |
safecrlf = true | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
histall =log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short --all |
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 type="text/javascript" src="http://seats.io/plan.js"></script> | |
<script type="text/javascript"> | |
plan = { | |
// configure plan properties here | |
} | |
</script> |
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 AddressBuilder { | |
public static AddressBuilder anAddress(){ | |
return new AddressBuilder(); | |
} | |
@Override | |
public Address build() { | |
Address address = new Address(); | |
// ... set fields, you get the idea |
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
[ | |
{ "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["ctrl+alt+j"], "command": "join_lines" }, | |
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, | |
{ "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["ctrl+shift+s"], "command": "save_all" }, | |
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["shift+ctrl+f4"], "command": "close_all" }, |
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
alias q='exit' | |
alias cd..='cd ..' | |
alias top='htop' | |
alias ports='netstat -tulanp' | |
alias ll='ls -hal' |
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
$('#pricingModal').click(function(e){ | |
e.preventDefault(); | |
var scroll = $(window).scrollTop(); | |
$('#modalBackdrop, #modalPrice').show(); | |
$('#modalPrice').css({ | |
position: 'absolute', // This is missing | |
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
$scope.saveMyObject = function () { | |
return $http({ | |
method: 'POST', | |
url: '/my/url', | |
headers: { | |
'Content-Type': undefined // --> makes sure the boundary is set in the Content-Type header, see result file | |
}, | |
data: { | |
file: $scope.file, | |
startDate: $scope.startDate, |
OlderNewer