This file contains 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 Handlebars = | |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) |
This file contains 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
# define base image and system tools | |
FROM fedora | |
RUN yum install unzip zip findutils which wget less -y | |
# install java | |
RUN yum install java-1.8.0-openjdk-devel -y | |
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk | |
# get gradle, android sdk | |
RUN curl -s "https://get.sdkman.io" | bash &&\ |
This file contains 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
cluster_name: 'Test Cluster' | |
partitioner: org.apache.cassandra.dht.Murmur3Partitioner | |
commitlog_sync: periodic | |
commitlog_sync_period_in_ms: 10000 | |
seed_provider: | |
- class_name: org.apache.cassandra.locator.SimpleSeedProvider | |
parameters: | |
- seeds: "172.17.0.2" | |
listen_address: 172.17.0.2 | |
endpoint_snitch: SimpleSnitch |
This file contains 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
"""This is a convenient wrapping/mapping pattern for Flask-based WSGI | |
applications. Specifically, a WSGI app may require state (for database | |
connections, for example) that is poorly-managed by function-based WSGI | |
routes. Instead, this pattern lets a specific class instance define it's | |
server state, with methods being defined and decorated for the usual Flask | |
route syntax. The URL map is then dynamically constructed from the pattern | |
property that the decorator attaches to route methods, with support for | |
optional route arguments (like method=[]) as well. | |
""" |
This file contains 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
/** | |
* @file | |
* | |
* Single-file JavaScript module that defines a developer-friendly interface | |
* for adapting, and calling, WASM modules in a threaded manner using | |
* WebWorkers. There are two components merged within this single file: | |
* | |
* 1. The first "if" block is evaluated by the WebWorker (child thread). This | |
* block is responsible for instantating the WASM module referenced by the | |
* main thread, and then managing the individual calls. This includes |
This file contains 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
/** | |
* Copyright (c) 2013 Gildas Lormeau. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* | |
* 2. Redistributions in binary form must reproduce the above copyright |
This file contains 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
/* Logging singleton modeled after syslog severity levels. Currently, no | |
differentiation (aside from the message prefix) is made between severity | |
levels, beyond filtering against the current logger state, except that any | |
message at or above "ERROR" will also throw a runtime error. | |
*/ | |
#include <iostream> | |
#include <stdexcept> | |
#include <string> |
This file contains 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
/** | |
*/ | |
define(function(require, exports, module) { | |
let D2R = Math.PI / 180; | |
let sum = function(series) { return series.reduce(function(a=0, b) { return a + b; } ) }; | |
/** | |
* Returns a unit vector (3-element Array) for the given phi and theta | |
* values. |
This file contains 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
/* Single-file JavaScript module that defines a developer-friendly interface | |
for adapting, and using, AMD-compatible modules in a threaded manner using | |
WebWorkers. There are two components: | |
1. The first ("if") block is evaluated by the WebWorker, which should | |
include the following line at the beginning of the file: | |
> importScripts("WebThread.js"); | |
The module in question, which should be single-file (dependency-free), |
This file contains 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
"""Basic reusable server base, using Flask-based WSGI application served | |
asynchronously with gevent.pywsgi; provides a nice template / starting point | |
that I've reused several dozen times. | |
""" | |
import os | |
import flask | |
from gevent import pywsgi | |
MOD_PATH, _ = os.path.split(os.path.abspath(__file__)) |
NewerOlder