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
$.event.trigger('ajaxStop') |
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
/* | |
* helper function for fast typing on | |
* http://10fastfingers.com/ | |
* | |
* 200 ms seems good enough | |
*/ | |
function Gambi(interval) { | |
var timerId, start, stop, getId, currentWord; | |
start = function() { |
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
{ | |
init: function(elevators, floors) { | |
//current #challenge=7 | |
var idleElevators = _.range(elevators.length); | |
elevators.forEach(function(elevator, index) { | |
elevator.index = index; | |
elevator.on("idle", updateIdleQueue); | |
elevator.on("floor_button_pressed", traverse); | |
elevator.on("goto_floor", traverse); |
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
{ | |
"name": "myApp", | |
"private": "true", | |
"devDependencies": { | |
"ionic": "driftyco/ionic-bower#1.0.0-rc.2" | |
}, | |
"dependencies": { | |
"ngCordova": "~0.1.14-alpha", | |
"restangular": "~1.5.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
package model | |
import java.util.UUID | |
import play.api.libs.json.Json | |
case class Address( | |
id: Option[UUID], | |
address: Option[String], | |
number: Option[Int], |
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
shell: . | |
executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo swarm-master --machinereadable | |
STDOUT: name="swarm-master" | |
groups="/" | |
ostype="Linux 2.6 / 3.x (64 bit)" | |
UUID="bbf5592e-0ca1-461f-b995-be57e3387624" | |
CfgFile="C:\\Users\\Pedro\\.docker\\machine\\machines\\swarm-master\\swarm-master\\swarm-master.vbox" | |
SnapFldr="C:\\Users\\Pedro\\.docker\\machine\\machines\\swarm-master\\swarm-master\\Snapshots" | |
LogFldr="C:\\Users\\Pedro\\.docker\\machine\\machines\\swarm-master\\swarm-master\\Logs" | |
hardwareuuid="bbf5592e-0ca1-461f-b995-be57e3387624" |
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
executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe | |
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 4.3.20 | |
(C) 2005-2014 Oracle Corporation | |
All rights reserved. | |
Usage: | |
VBoxManage [<general option>] <command> | |
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
docker build -t chrome - << __EOF__ | |
#FROM java:8-jre | |
#FROM tifayuki/java:8 | |
FROM ubuntu:14.04 | |
RUN adduser --disabled-password --gecos '' chrome \ | |
&& adduser chrome sudo \ | |
&& adduser chrome video \ | |
&& adduser chrome audio \ | |
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
RUN apt-get update -qqy \ |
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 scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.duration.Duration | |
import scala.concurrent.{Await, Future} | |
/** | |
* Created by thiago on 3/10/16. | |
*/ | |
object EitherTest extends App { | |
//given a list of ids |
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 DB profile | |
spring: | |
profiles: db | |
jpa: | |
database: MYSQL | |
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect | |
generate-ddl: true | |
hibernate: | |
ddl-auto: create-drop |
OlderNewer