This will demonstrate how to upload build files from Travis CI to S3.
NOTE: Keys have been changed to protect the innocent.
Create an S3 ACL policy, see s3_policy.json for an example.
class LoginFeature extends GivenWhenThenFeatureSpec with ShouldMatchers with OneInstancePerTest { | |
feature("Admin Login") { | |
scenario("Incorrect password") { | |
// You can provide the code for a step in a block | |
given("user visits", the[AdminHomePage]) { | |
startPage(pageClass) | |
} |
/** まず、import, case class, val nodeseqのところまで | |
* REPLの:pasteコマンドでコピペして、各Exampleも同様にコピペして実行してみてね! | |
* | |
* Use :paste command in Scala REPL to run example code. | |
*/ | |
import xml._ | |
case class ColorPair(foregroundOption: Option[String], backgroundOption: Option[String]) |
TitanKey happiness = g.makeType().name("happiness").dataType(Integer.class).eidetic(true).makePropertyKey(); | |
TitanVertex v = g.addVertex() | |
v.setProperty("name","Zack") | |
v.setProperty("happiness",2) | |
v.getProperty("happiness") | |
//TimeSeries([[2,1000]]) | |
v.setProperty("happiness",10) | |
v.getProperty("happiness") | |
//TimeSeries([[2,1000],[10,1001]]) | |
v.getProperty("happiness").now() |
git log --author="Radim Klaska" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n",add,subs,loc }' - | |
# returns: "added lines: XXX removed lines: XXX total lines: XXX" | |
git log --shortstat --pretty="%cE" | sed 's/\(.*\)@.*/\1/' | grep -v "^$" | awk 'BEGIN { line=""; } !/^ / { if (line=="" || !match(line, $0)) {line = $0 "," line }} /^ / { print line " # " $0; line=""}' | sort | sed -E 's/# //;s/ files? changed,//;s/([0-9]+) ([0-9]+ deletion)/\1 0 insertions\(+\), \2/;s/\(\+\)$/\(\+\), 0 deletions\(-\)/;s/insertions?\(\+\), //;s/ deletions?\(-\)//' | awk 'BEGIN {name=""; files=0; insertions=0; deletions=0;} {if ($1 != name && name != "") { print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net"; files=0; insertions=0; deletions=0; name=$1; } name=$1; files+=$2; insertions+=$3; deletions+=$4} END {print name ": " files " files changed, " insertio |
package hu.javaportal.test | |
import org.junit.runner.RunWith | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.{BeforeAndAfter, FunSuite} | |
import org.scalatest.mock.MockitoSugar | |
import com.orientechnologies.orient.`object`.db.{OObjectDatabasePool, OObjectDatabaseTx} | |
import com.orientechnologies.orient.core.tx.OTransaction.TXTYPE | |
import javax.persistence.{Version, Id} | |
import com.orientechnologies.orient.core.sql.query.OSQLSynchQuery |
This will demonstrate how to upload build files from Travis CI to S3.
NOTE: Keys have been changed to protect the innocent.
Create an S3 ACL policy, see s3_policy.json for an example.
Python, version 3.6.2, macOS 10.12.6 (from Brew)
MacBook Pro 2016, Intel i5 3.1GHz, mem 16GB
Content of main.html
<html>
<body>
<h1>Hello World!</h1>
name := "DES and AES encryption in Scala" | |
version := "1.0" | |
scalaVersion := "2.9.1" | |
libraryDependencies += "commons-codec" % "commons-codec" % "1.6" |
/* | |
PC Emulator | |
Copyright (c) 2011 Fabrice Bellard | |
Redistribution or commercial use is prohibited without the author's | |
permission. | |
*/ | |
"use strict"; | |
var aa; |
import time | |
import Image | |
import ImageGrab | |
while True: | |
time.sleep(0.5) | |
t = str(time.time()).replace('.','-') | |
tt = time.time() | |
img=ImageGrab.grab() | |
img = img.resize((800,600)) |