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
Show hidden characters
{ | |
"sublimelinter_delay": 0.1, | |
// If true, lines with errors or warnings will have a gutter mark. | |
"sublimelinter_gutter_marks": true, | |
// If true, the find next/previous error commands will wrap. | |
"sublimelinter_wrap_find": true, | |
// Use ~/.jshintrc instead | |
// "jshint_options": {} |
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
# coding=utf-8 | |
from elementtree.ElementTree import * | |
from jinja2 import Template | |
tree = parse("path/to/file") | |
rootElem = tree.getroot() | |
elementTemplate = """ | |
<account-data cd="{{userCd}}"> | |
<password>{{password}}</password> |
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; | |
} | |
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
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
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
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
{ | |
"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
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
java -Dwebdriver.chrome.driver="%~dp0\chromedriver.exe" -jar %~dp0\teslogger-0.2.2-standalone.jar |
OlderNewer