This file contains hidden or 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 static Result acceptedLanguages() throws IOException { | |
Map<String, Object> stuff = new HashMap<>(); | |
stuff.put("profilepage.profile.button.connect", Messages.get("profilepage.profile.button.connect")); | |
stuff.put("acceptedLanguages header", request().headers().containsKey("Accept-Language")?request().headers().get("Accept-Language")[0]:"non-existant"); | |
stuff.put("play.mvc.Http.Context.current().request().cookies()", Http.Context.current().request().cookies()); | |
List<Lang> availables = Lang.availables(); | |
Collection<Locale> transform = Collections2.transform(availables, new Function<Lang, Locale>() { | |
@Override | |
public Locale apply(Lang lang) { | |
return lang.toLocale(); |
This file contains hidden or 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
# watch a file changes in the current directory, | |
# compiles bootstrap.less | |
$watcher = New-Object System.IO.FileSystemWatcher | |
$watcher.Path = get-location | |
$watcher.IncludeSubdirectories = $true | |
$watcher.EnableRaisingEvents = $false | |
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName | |
while($TRUE){ |
NewerOlder