View performance-test.clj
(defrecord Test [^long a ^long b ^long c])
(defn- test-1 [] (->Test (rand-int 1000) (rand-int 1000) (rand-int 1000)))
(defn- redx-1 [S ^Test {a :a b :b c :c}] (+ S (* a b) c (* a c)))
(defn- redx-1-2 [S {a :a b :b c :c}] (+ S (* a b) c (* a c)))
(defn- test-2 [] {:a (rand-int 1000) :b (rand-int 1000) :c (rand-int 1000)})
(defn- redx-2 [S {a :a b :b c :c}] (+ S (* a b) c (* a c)))
(defn- test-3 [] (hash-map :a (rand-int 1000) :b (rand-int 1000) :c (rand-int 1000)))
View cloudSettings
{"lastUpload":"2017-04-27T18:53:51.721Z","extensionVersion":"v2.6.2"}
View openpanzer-save.json
{"scenario":{"name":"Harz Mountains","maxTurns":21,"date":"1945-04-21T22:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{},"map":{"rows":40,"cols":45,"map":[[{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,
View failingTerm.sql
SELECT
weighted.first_name,
weighted.last_name,
weighted.phone,
weighted.username,
weighted.term,
weighted.course,
weighted.city,
ROUND(SUM(weighted.score), 0) as score
FROM (
View decorator-in-webpack.config.js
const webpack = require('webpack')
const path = require('path')
const commonChunks = new webpack.optimize.CommonsChunkPlugin({
name: 'common',
filename: 'common.bundle.js'
})
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const extractCSS = new ExtractTextPlugin('[name].bundle.css')
View destructuring.js
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
View Kitura commands
=========
= DOCKER
=========
1. Search for image:
docker search swift
2. Pull image:
docker pull <image_name>
View 80-udisks2-ignore-zfs.rules
## /etc/udev/rules.d/80-udisks2-ignore-zfs.rules
# Ignore ZFS vdev filesystem type "zfs_member" with partition ID "Solaris /usr & Apple ZFS"
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_FS_TYPE}=="zfs_member", ENV{ID_PART_ENTRY_TYPE}=="6a898cc3-1dd2-11b2-99a6-080020736631", ENV{UDISKS_IGNORE}="1"
View resume.md
View include.sh
#!/bin/bash
set -o errexit # exit on errors
set -o nounset # exit on use of uninitialized variable
set -o errtrace # inherits trap on ERR in function and subshell
trap 'traperror $? $LINENO $BASH_LINENO "$BASH_COMMAND" $(printf "::%s" ${FUNCNAME[@]:-})' ERR
trap 'trapexit $? $LINENO' EXIT
function trapexit() {