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 { ColumnMissing } = require('massive-collections/errors.js'); | |
const Collection = require('massive-collections'); | |
module.exports = (app) => { | |
// Get our db from app object | |
const db = app.get('db'); | |
const Users = new Collection('users', db); | |
/** |
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
PROMPT_COMMAND=__prompt_command | |
__prompt_command() { | |
# Remove previous existing .bin in $PATH | |
PATH=$(echo $PATH | sed -e "s@[^:]\+node_modules/.bin@@ ; s/\(^:\|:$\)// ; s/::/:/") | |
# Add current .bin and export | |
export PATH=$(npm bin):$PATH | |
} |
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 sys, hashlib, argparse | |
parser = argparse.ArgumentParser(description='Merge files.') | |
parser.add_argument('files', type=argparse.FileType('r'), nargs='+') | |
args = parser.parse_args() | |
output_file = "output" | |
def concat(files): |
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 hashlib, sys | |
if len(sys.argv) != 3: | |
print('Error must have 2 args : python get_hash.py <algo> <filename>') | |
exit(1) | |
algo = sys.argv[1] | |
filename = sys.argv[2] | |
func = getattr(hashlib, algo) |
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
======================================================= | |
glmark2 2014.03+git20150611.fa71af2d | |
======================================================= | |
OpenGL Information | |
GL_VENDOR: X.Org | |
GL_RENDERER: AMD RENOIR (DRM 3.36.0, 5.4.0-37-generic, LLVM 10.0.0) | |
GL_VERSION: 4.6 (Compatibility Profile) Mesa 20.2.0-devel (git-4de678c 2020-06-13 focal-oibaf-ppa) | |
======================================================= | |
[build] use-vbo=false: FPS: 7141 FrameTime: 0.140 ms | |
[build] use-vbo=true: FPS: 8731 FrameTime: 0.115 ms |