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
| [INFO] :web:war:1.0-SNAPSHOT | |
| [INFO] +- :services:jar:1.0-SNAPSHOT:compile | |
| [INFO] | \- core:core:jar:1.1-SNAPSHOT:compile | |
| [INFO] | +- com.sun.faces:jsf-api:jar:2.2.4:compile | |
| [INFO] | +- com.sun.faces:jsf-impl:jar:2.2.4:compile | |
| [INFO] | +- javax.validation:validation-api:jar:1.1.0.Final:compile | |
| [INFO] | +- org.hibernate:hibernate-validator:jar:4.3.1.Final:compile | |
| [INFO] | +- javax.servlet:javax.servlet-api:jar:3.0.1:compile | |
| [INFO] | +- javax.servlet:jstl:jar:1.2:compile | |
| [INFO] | +- org.primefaces.extensions:primefaces-extensions:jar:1.0.0:compile |
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
| .box { | |
| background-color: lightblue; | |
| padding: 11px 10px 11px 38px; | |
| margin: 0 0 0 0; | |
| text-decoration: none; | |
| border-radius: 3px; | |
| -moz-border-radius: 3px; | |
| -webkit-border-radius: 3px; | |
| } |
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
| .box { background-color: lightblue; padding: 11px 10px 11px 38px; margin: 0 0 0 0; text-decoration: none; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; } |
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
| create database spike; | |
| grant all privileges on spike.* to 'anon'@'localhost' identified by 'password'; | |
| flush privileges; | |
| use spike; | |
| CREATE TABLE `projects` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `name` varchar(255) DEFAULT NULL, | |
| `status` varchar(255) DEFAULT NULL, | |
| `createdAt` datetime DEFAULT NULL, |
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
| // connect | |
| var Sequelize = require("sequelize") | |
| var sequelize = new Sequelize('spike', 'anon', 'password', { | |
| logging: console.log | |
| }); | |
| // models | |
| var User = sequelize.define('User', { | |
| name: Sequelize.STRING | |
| }); |
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
| /** | |
| * create database spike; | |
| * grant all privileges on spike.* to 'anon'@'localhost' identified by 'password'; | |
| * flush privileges; | |
| */ | |
| var async = require('async'); | |
| // set up sequelize | |
| var Sequelize = require("sequelize"); |
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
| { | |
| "name": "moment", | |
| "version": "2.8.4", | |
| "main": "moment.js", | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", | |
| "bower_components", | |
| "test", | |
| "tests", |
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
| { | |
| "name": "test-project-1", | |
| "dependencies": { | |
| "moment": "2.8.2" | |
| }, | |
| "overrides": { | |
| "moment": { | |
| "main": [ | |
| "min/moment.min.js", | |
| "locale/fr.js", |
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
| #!/bin/bash | |
| echo "---------------------" | |
| echo "Write Test Running. Please Wait..." | |
| write=$(dd if=/dev/zero bs=2048k of=tstfile count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }') | |
| sudo purge | |
| echo "" | |
| echo "Read Test Running. Please Wait..." | |
| read=$(dd if=tstfile bs=2048k of=/dev/null count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }') | |
| clear | |
| echo "" |
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
| import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; | |
| import com.google.api.client.http.HttpTransport; | |
| import com.google.api.client.json.JsonFactory; | |
| import com.google.api.client.json.jackson2.JacksonFactory; | |
| import com.google.api.services.translate.Translate; | |
| import com.google.api.services.translate.TranslateRequestInitializer; | |
| import com.google.common.collect.ImmutableList; | |
| /** | |
| * Date: 15/02/2016 |