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
(defproject teslogger-server "0.1.0-SNAPSHOT" | |
:description "Collect screenshots" | |
:url "https://github.com/kawasima/teslogger-server" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.6.0"] | |
[org.clojure/tools.logging "0.3.1"] | |
[compojure "1.1.9"] | |
[hiccup "1.0.5"] | |
[liberator "0.12.2"] |
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
set TESLOGGER_DB_URL=jdbc:oracle:thin:%USERNAME%/%PASSWORD%@%HOST%:%PORT%:%SID% | |
"%~dp0\bin\teslogger_db_inspection.bat" |
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
java -Dwebdriver.chrome.driver="%~dp0\chromedriver.exe" -jar %~dp0\teslogger-0.2.2-standalone.jar |
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
var archiveFolderName = 'Archives'; | |
function pad0(base,length){ | |
for(var x=base+'';x.length < length;x='0'+x); | |
return x; | |
} | |
var currentFolderPath = WScript.ScriptFullName.substring(0,WScript.ScriptFullName.length - WScript.ScriptName.length); |
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": "projectname", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": {}, | |
"author": "carrotsword", | |
"license": "other", | |
"devDependencies": { | |
"grunt-contrib-copy": "^0.8.2", |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg : grunt.file.readJSON('package.json'), | |
watch : { | |
sync : { | |
tasks : 'sync', | |
files: ['src/main/**/*'] | |
} | |
}, | |
sync : { |
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 pad0(base,length){ | |
for(var x=base+'';x.length < length;x='0'+x); | |
return x; | |
} | |
var d = new Date(); | |
var fname = pad0(d.getFullYear(),4) + '-' + pad0(d.getMonth()+1,2) + '-' + pad0(d.getDate(),2); | |
var target = WScript.ScriptFullName.substring(0,WScript.ScriptFullName.length - WScript.ScriptName.length) + "\\" + fname; |
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
date +%Y-%m-%d |
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
// Usage : cscript template.js infile outfile binding | |
function trim(str){ | |
return str.replace(/^\s+/,'').replace(/\s+$/,''); | |
} | |
function buildContext(path){ | |
var fs = new ActiveXObject('Scripting.FileSystemObject'); | |
var ts = fs.OpenTextFile(path,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
function err(message){ | |
WScript.Echo(message); | |
} | |
function isSuffix(target, suffix){ | |
return target.indexOf(suffix, target.length - suffix.length) !== -1; | |
} | |