View viaversionmapping.kt
import com.google.gson.GsonBuilder
import com.google.gson.JsonObject
import com.google.gson.JsonPrimitive
import net.minecraft.data.Main
import java.io.File
import java.io.PrintWriter
import java.nio.file.Files
fun main(args: Array<String>) {
View config.js
module.exports={
secretkey:'my-super-duper-secret-key',
db:'somedb',
host:'localhost',
port:3306,
dbuser:'user',
dbpass:'pass',
frameguardaction:{ frameguard: {action: 'deny'}},
csp:{ directives: { defaultSrc: ["'self'"], styleSrc: ["'self'", 'maxcdn.bootstrapcdn.com'] }},
limiter:{ windowMs: 15*60*1000, // 15 minutes
View bms_chart.py
import math
from enum import Enum
lcm = lambda x, y: x // math.gcd(x, y) * y
class BMSNodeType(Enum):
DEF_ATTR = 1
DEF_CHANNEL_SEQ = 2
DEF_MEASURE_FRAC = 3
View grep.2018-02-14.EventEmitter_defaultMaxListeners.sorted.filtered.txt
1135513 localtunnel-1.8.3.tgz/lib/Tunnel.js:79: self.setMaxListeners(info.max_conn + (EventEmitter.defaultMaxListeners || 10));
375406 jimp-forked-0.0.1.tgz/browser/lib/jimp.js:2397:EventEmitter.defaultMaxListeners=10;// Obviously not all Emitters should be limited to 10. This function allows
375406 jimp-forked-0.0.1.tgz/browser/lib/jimp.js:2410:if(isObject(this._events[type])&&!this._events[type].warned){if(!isUndefined(this._maxListeners)){m=this._maxListeners;}else{m=EventEmitter.defaultMaxListeners;}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error('(node) warning: possible EventEmitter memory '+'leak detected. %d listeners added. '+'Use emitter.setMaxListeners() to increase limit.',this._events[type].length);if(typeof console.trace==='function'){// not supported in IE 10
71615 rollup-plugin-node-builtins-2.1.2.tgz/src/es6/events.js:59: return EventEmitter.defaultMaxListeners;
66268 purify-css-1.2.5.tgz/lib/purifycss.es.js:58: return EventEmitter.defaultMaxListe
View templateEngine.php
<?php
/*
Original by Rasmus Larsson
http://www.rasmuslarsson.se/2013/05/a-template-engine-in-php/
*/
class Template
{
protected $template;
View keep_ssh_process_running.md

Keep SSH Process Running

#ssh to remote machine
screen #type this and then start script
# Press `Ctrl - A` then `Ctrl - D`
#that's it

Resume SSH Process/Screen

#ssh back onto machine if needed
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View Tutorial.md

The Problem

You're downloading a big 1GB SQL file with Chrome. It stalls at 120mb. Ok, you try again. Looks like it's working this time. Thirty minutes later... stalls at 800mb. You are pulling your hair out.

What do?

wget --continue to the rescue!

Assumptions:

View promise-dot-all.js
/*
Let us re-create `Promise.all`
`Promise.all` method returns a promise that resolves when all of the promises in the iterable argument have resolved,
or rejects with the reason of the first passed promise that rejects.
Read more about `Promise.all` on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
A basic example would be something like this:
View admin-task.html
<template name="admin_tasks">
<div class="container-example-chris">
<div class="container">
<div class="row">
<div class="one-half column" style="margin-top: 25%">
<h4>MeteorJS </h4>