Burner inserters will pickup coals to keep themselves running while supplying others.
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
#!/bin/bash | |
# Login to heroku CLI. | |
heroku login | |
# Create a new app project on heroku. | |
heroku create <appName> --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git | |
# Add heroku remote to the git config file. | |
heroku git:remote -a meteor-mdc-demo |
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 { Template } from 'meteor/templating'; | |
/** | |
* Returns true when any of the provided arguments is true. | |
* Example: | |
* > {{#if some varA varB varC}} | |
* > At least something is true. | |
* > {{/if}} | |
*/ | |
Template.registerHelper('some', (...args) => args.some(Boolean)); |
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
@media print { | |
/* Hide everything other than code. */ | |
body.page-blob .header[role=banner], | |
body.page-blob [role=main] .pagehead.repohead, | |
body.page-blob [role=main] .repository-content > :not(.file), | |
body.page-blob [role=main] .repository-content > .file > .file-header > .file-actions, | |
body.page-blob .site-footer-container { | |
display: none; | |
} |
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
node_modules |
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
/** | |
* @param {function} func - The function to call. The payload of the promise. | |
* @param {Array.<*>} args - The list of arguments for `func`. | |
* @param {*} ctx - The context for `func`. | |
*/ | |
function makePromise(func, args, ctx) { | |
return new Promise(function (resolve, reject) { | |
try { | |
func.apply(ctx, Array.prototype.concat.call(args, function (err, result) { | |
if (err) { reject(err); } else { resolve(result); } |
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
// Omit the last argument (the callback) of the original function and use promise instead. | |
function wrapAsPromise (func) { | |
var expectedArgCount = func.length - 1; | |
return function () { | |
// Only the last argument (the callback) can be missing. | |
switch (true) { | |
case arguments.length < expectedArgCount: | |
throw new Error('Not enough arguments given. Expecting ' + expectedArgCount + '.'); | |
break; | |
case arguments.length < expectedArgCount: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AMApplicationBuild</key> | |
<string>419</string> | |
<key>AMApplicationVersion</key> | |
<string>2.6</string> | |
<key>AMDocumentVersion</key> | |
<string>2</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
# Dockerfile for the TerraRef hyperspectral image conversion extractor | |
# August 17, 2016 | |
FROM ubuntu:14.04 | |
MAINTAINER Yan Y. Liu <[email protected]> | |
# install common libraries and python modules | |
USER root | |
RUN apt-get update | |
RUN apt-get upgrade -y -q | |
RUN apt-get install -y -q build-essential m4 swig antlr libantlr-dev udunits-bin libudunits2-dev unzip cmake wget git libjpeg-dev libpng-dev libtiff-dev |
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
'use strict'; | |
const nodePath = process.argv[0], | |
exePath = process.argv[1], | |
inputPath = process.argv[2], | |
fs = require('fs'); | |
if (typeof inputPath === 'undefined') { | |
throw new Error('Need to specify input file path.'); | |
} |