View dump.lua
function dump(o, p)
p = p or ''
if type(o) == 'table' then
local s = '{\n'
local pp = p .. ' '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"' .. k .. '"' end
s = s .. pp .. '[' .. k .. '] = ' .. dump(v, pp)
View document-meta-proxy.js
import React from "react";
import DocumentMeta from "react-document-meta";
const applyTransforms = ({ title, ...props }) => ({ ...props, title: `${title} - suffix` });
export default const ProxyComponent = (props) => <DocumentMeta {...applyTransforms(props)} extend />;
View index.html
<!doctype html>
<html>
<head>
<title>TableSort Demo</title>
<body>
<table>
<thead>
<tr>
<th class="default-sort">Weekday</th>
<th>Date</th>
View package.json
{
"scripts": {
"build": "browserify index.js > bundle.js"
},
"browserify-shim": {
"./sorts/tablesort.date.js": {
"depends": "tablesort:Tablesort"
}
},
"browserify": {
View active-javascript.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sun, 19 Apr 2015 17:59:08 GMT till Tue, 19 Apr 2016 17:59:08 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter(user => user.followers > 11)
View flatmaplatest.js
export const VALUE = Symbol("VALUE");
const attempt = (fn, ...args) => {
try {
return fn(...args)
} catch (e) {}
}
const listen = function (event, cb) {
const eProp = Symbol.for(event);
View rot13.js
var through = require("through");
var rot13 = through(function write(buffer) {
var transformed = new Buffer(buffer.length);
var rot = 13;
var lcase = { min: 97, max: 122 };
var ucase = { min: 65, max: 90 };
for (var i = 0, b = buffer.readUInt8(i); i < buffer.length; ++i, b = buffer.readUInt8(i, true)) {
if (ucase.min <= b && b <= ucase.max) {
b += rot;
View lambda-bundle.sh
#!/usr/bin/env bash
ERR_BROWSERIFY_NOT_FOUND=1
ERR_SOURCE_NOT_FOUND=2
AWS_STDLIBS="aws-sdk dynamodb-doc"
err_exit()
{
if [ "x$2" != "x" ]; then
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Tab in form</title>
</head>
<body>
<form>
<textarea rows="15" cols="82">lorem ipsum
dolor sit amet
View ssh-complete.bash
_find_all_ssh_hosts() {
grep "^Host " ~/.ssh/config | cut -d " " -f 2 | sort | uniq
}
_find_ssh_host() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"