The following jobs will require a config variable is set, so it knows where all your javascript files are located.
var config = {
all_js_src: ['./app/**/*.js']
}
import fnmatch | |
import os | |
import subprocess | |
def execute_command(bashCommand): | |
return subprocess.check_output(bashCommand.split(),stderr= subprocess.STDOUT) | |
libraries = {} | |
for root, dirnames, filenames in os.walk('libs'): | |
matches = [] |
// https://jsfiddle.net/aeyajxac/1/ | |
var colour_map = { | |
0:"rgb("+255+","+255+","+255+")", //white | |
1:"rgb("+192+","+192+","+192+")", //light grey | |
2:"rgb("+96+","+96+","+96+")", // dark grey | |
3:"rgb("+0+","+0+","+0+")" // black | |
} | |
$(document).ready(function() { | |
// |
import os,re | |
import glob | |
# def getFiles(dirname, suffixPattern=None): | |
# dirname=os.path.normpath(dirname) | |
# retDirs, retFiles=[], [] | |
# for root, dirs, files in os.walk(dirname): | |
# for i in dirs: | |
# retDirs.append(os.path.join(root, i)) |
// | |
// # Prettify Javascript files | |
// | |
"jsbeautifier": { | |
files: ["<%= config.app %>/js/*{,*/}*.js", './dashboards/**/*.js', './app/**/*.js', './bin/**/*.js'], | |
options: {} | |
}, | |
// | |
// # Prettify HTML files |
http://gist.io seemed like a good solution but it doesn't seem to work anymore. |
Seems to be possible in a project called Kivy: | |
http://kivy.org/docs/guide/packaging-ios.html | |
Kivy seems pretty interesting: | |
Kivy - Open source Python library for rapid development of applications | |
that make use of innovative user interfaces, such as multi-touch apps. | |
But not sure how much it forces the user to code in thier own style.. |
/* | |
Angular | |
*/ | |
//http://stackoverflow.com/questions/13681116/angularjs-dynamic-routing |
/** | |
* Inserts a warning box under the current cursor location | |
*/ | |
function insertWarningTableAtCursor() { | |
if (!doesTheUserWantToContinue('This will insert a warning Box at your current cursor location, are you sure you want to do this?')) return; | |
var cursor = DocumentApp.getActiveDocument().getCursor(); | |
if (!cursor) {showCursorError(); return;} | |