http://docs.scala-lang.org/style/
https://github.com/alexandru/scala-best-practices
Follow scala-lang style guide with the following additions.
(alreadySeen => { | |
function downloadURI(uri) { | |
console.log('trying to download') | |
var link = document.createElement("a"); | |
link.download = name; | |
link.href = uri; | |
link.click(); | |
return new Promise(resolve => setTimeout(resolve, 2000 + Math.round(Math.random() * 1000))) | |
} |
{ | |
"vsicons.presets.hideFolders": true, | |
"workbench.iconTheme": "vscode-icons", | |
"window.zoomLevel": 1, | |
"editor.tabSize": 2, | |
"files.insertFinalNewline": true, | |
"files.trimTrailingWhitespace": true, | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, |
{ | |
"\UF729" = moveToBeginningOfLine:; | |
"\UF72B" = moveToEndOfLine:; | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; | |
} |
// TAKEN FROM https://icanbeyourlighthouse.firebaseapp.com/ | |
(function() { | |
'use strict'; | |
class Loader { | |
constructor(url=null) { | |
this.url = url; | |
} |
/* | |
dcraw.c -- Dave Coffin's raw photo decoder | |
Copyright 1997-2016 by Dave Coffin, dcoffin a cybercom o net | |
This is a command-line ANSI C program to convert raw photos from | |
any digital camera on any computer running any operating system. | |
No license is required to download and use dcraw.c. However, | |
to lawfully redistribute dcraw, you must either (a) offer, at | |
no extra charge, full source code* for all executable files |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') # Remove all untagged images | |
docker rm $(docker ps -a | grep -E '^[a-f0-9]+\s+[a-f0-9]+\s' | awk '{print $1}') # Remove all containers running untagged images |
#!/bin/sh | |
ps aux | grep ssh[:] | awk {'print $2'} | xargs kill -9 |
siege -c 20 -d 0 -H "Content-Type: application/x-www-form-urlencoded" -g 'http://localhost:3000/endpoint POST mydata=foo' | |
siege -c 20 -d 0 -H "Content-Type: application/json" -g 'http://localhost:3000/endpoint POST {"key": "value"}' |
var webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
app: './entry.js' | |
}, | |
output: { | |
path: __dirname, | |
publicPath: '/assets/', | |
filename: "[name].bundle.js" |
http://docs.scala-lang.org/style/
https://github.com/alexandru/scala-best-practices
Follow scala-lang style guide with the following additions.