// public part
export interface MyApiOptions {
/// Typedoc here
foo?: string;
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
void debugMaybeSetVariable( const char*& ref, const char* variable_name ) | |
{ | |
const char* env_variable = std::getenv( variable_name ); | |
if( !env_variable ) | |
{ | |
return; | |
} | |
std::cerr << "using value" << variable_name << "=" << env_variable << "\n"; | |
ref = env_variable; | |
} |
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 Sequelize = require('sequelize'); | |
const config = require(__dirname + '/config/sequelize.json')[process.env.NODE_ENV || 'development']; | |
const sequelize_options = { | |
logging: console.log, | |
define: { | |
timestamps: true, | |
// paranoid: true, | |
underscored: true, | |
freezeTableName: true, |
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
// | |
// this automagically parses all JSX files | |
// from client | |
// | |
process.env.BABEL_DISABLE_CACHE = 1; | |
require('babel-register')({ | |
presets: ['react', 'es2015'], | |
only: [ "web/src" ] | |
}); |
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
FROM gradle:4.10.1-jdk8 | |
USER root | |
# Install Build Essentials | |
RUN \ | |
apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
file \ |
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
dist/gh_deploy/ | |
dist/gh_deploy/decoder.bundle.js.map | |
dist/gh_deploy/releases.json | |
dist/gh_deploy/_config.yml | |
dist/gh_deploy/index.css.map | |
dist/gh_deploy/0ce79b6b2ddf393b809c7a2ae509941e.jpg | |
dist/gh_deploy/index.bundle.js.map | |
dist/gh_deploy/docs | |
dist/gh_deploy/docs/index.html | |
dist/gh_deploy/examples |
FooBar
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
type JsonAllTypes = null | string | number | boolean | object; | |
/// Tainted Input - type modifier, that decorates "proper" type with | |
/// all possible bad input types. | |
/// Purpose. When parsing input, it's common to write | |
/// | |
/// const x: Type = JSON.parse(input); | |
/// |
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
/** | |
* Given dictionary K -> V, find a key with best score. | |
* | |
* If no score fun returns defined value, it will return `undefined`. | |
* | |
* Complexity O(nKeys) | |
* | |
* @param object object to search | |
* @param scoreFun score function applied over (k,v) | |
* @returns key or undefined |
OlderNewer