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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# 2.7 | |
import sys | |
import os | |
import re | |
rootdir = '.' | |
filetypePattern = re.compile('.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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# 2.7 | |
######################################################################## | |
## How To: ## | |
## Place script into 'js' folder or in any nested folder for local use## | |
## Call completeValidation() or statusChecking() to begin validation ## | |
## be aware you may use quiet mode (var 'quiet' at top-level) ## | |
######################################################################## |
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 | |
cat >> ~/.bashrc << EOL | |
export PATH=$PATH:/var/lib/gems/1.8/bin | |
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' | |
alias ls='ls --color=auto' | |
alias grep='grep --colour=auto' | |
alias kx-python='s_development-python' |
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
Column API: | |
1. Plain arg list replaced with options object: | |
Column(@title, @fieldName, options) | |
Usage: | |
new Column 'Title', 'field', | |
template: '/cell.tpl' | |
isSortable: false | |
2. Default template for Column class | |
Column class will use same template as a SimpleColumn. |
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
var express = require('express') | |
var pipe = require('pipe') | |
var request = require('request') | |
var app = express(); | |
// Remote host API root url | |
var API = 'http://10.9.210.28:8081/hackathon' | |
app.listen(9000) |
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
;(function () { | |
var styles = document.createElement('style'); | |
styles.innerHTML += '.output-node p {margin: 1px 0;}'; | |
styles.innerHTML += '.output-node {margin-top: 20px; line-height: 1.5;}'; | |
styles.innerHTML += '.failed-assert {color: #B22}'; | |
styles.innerHTML += '.summary {font-weight: 600}'; | |
styles.innerHTML += '.all-passed {color: #5D2}'; | |
document.body.appendChild(styles); | |
var outputNode = document.createElement('div'); | |
outputNode.classList.add('output-node'); |
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
const passport = require('passport') | |
const LocalStrategy = require('passport-local').Strategy | |
const bcrypt = r('bcrypt') | |
const User = require('./User') | |
const ERR = 'Authentication error!' | |
passport.use(new LocalStrategy( | |
function(username, password, done) { | |
return User.find({username}, function(err, users) { |
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
{"queryId":1,"db":"ArangoDB","readingTime":"12.8633ms"} | |
{"queryId":1,"db":"Neo4jDB","readingTime":"9.6339ms"} | |
{"queryId":2,"db":"ArangoDB","readingTime":"2.7958ms"} | |
{"queryId":2,"db":"Neo4jDB","readingTime":"8.8287ms"} | |
{"queryId":3,"db":"ArangoDB","readingTime":"8.093ms"} | |
{"queryId":3,"db":"Neo4jDB","readingTime":"7.8797ms"} | |
{"queryId":4,"db":"ArangoDB","readingTime":"9.5532ms"} | |
{"queryId":4,"db":"Neo4jDB","readingTime":"8.705ms"} | |
{"queryId":5,"db":"ArangoDB","readingTime":"6.0999ms"} | |
{"queryId":5,"db":"Neo4jDB","readingTime":"12.021ms"} |
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
{"queryId":1,"db":"ArangoDB","readingTime":"10.052681ms"} | |
{"queryId":1,"db":"Neo4jDB","readingTime":"117.842903ms"} | |
{"queryId":2,"db":"ArangoDB","readingTime":"2.823589ms"} | |
{"queryId":2,"db":"Neo4jDB","readingTime":"13.876804ms"} | |
{"queryId":3,"db":"ArangoDB","readingTime":"2.343047ms"} | |
{"queryId":3,"db":"Neo4jDB","readingTime":"14.171817ms"} | |
{"queryId":4,"db":"ArangoDB","readingTime":"3.961202ms"} | |
{"queryId":4,"db":"Neo4jDB","readingTime":"15.84186ms"} | |
{"queryId":5,"db":"ArangoDB","readingTime":"3.03025ms"} | |
{"queryId":5,"db":"Neo4jDB","readingTime":"52.12925ms"} |
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 json | |
import atexit | |
import mimetypes | |
from multiprocessing.pool import ThreadPool | |
import io | |
import os | |
import re | |
import typing |
OlderNewer