I hereby claim:
- I am strml on github.
- I am strml (https://keybase.io/strml) on keybase.
- I have a public key whose fingerprint is 6EA6 FDA3 2B20 AE38 13C4 411B 011E 698E E329 F38B
To claim this, I am signing this object:
# A simple Makefile alternative to using Grunt for your static asset compilation | |
# | |
## Usage | |
# | |
# $ npm install | |
# | |
# And then you can run various commands: | |
# | |
# $ make # compile files that need compiling | |
# $ make clean all # remove target files and recompile from scratch |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace Money; | |
class Bitcoin { | |
#const BITCOIN_NODE = '173.224.125.222'; // w001.mo.us temporary | |
const BITCOIN_NODE = '50.97.137.37'; | |
static private $pending = array(); | |
public static function update() { |
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var React = require('react'); | |
var App = React.createClass({ | |
render: function() { | |
return ( | |
React.createElement("div", {className: "example"}, | |
React.createElement("h1", null, "Example Component"), | |
React.createElement("ul", null, React.createElement("li", null, "One item"), React.createElement("li", null, "Another item")) |
// This belongs in %SDK%/compat/scripts/ | |
(function() { | |
var defaultJsb3Object = { | |
"projectName": "Project Name", | |
"licenseText": "Copyright(c) 2012 Company Name", | |
"builds": [ | |
{ | |
"name": "All Classes", | |
"target": "all-classes.js", |
var page = require('webpage').create(), | |
t, address; | |
if (phantom.args.length === 0) { | |
console.log('Usage: dumpExtLoader.js <some URL>'); | |
phantom.exit(); | |
} else { | |
page.onConsoleMessage = function (msg) { | |
console.log(msg); | |
}; |
#!/bin/sh | |
T=/usr/local/mycompany/my-project | |
chown -R www-data:root $T | |
find $T -type d ! -perm 770 -print -exec chmod 770 {} \; | |
find $T -type f ! -perm 660 ! -name "*.sh" -print -exec chmod 660 {} \; | |
find $T -type f ! -perm 770 -name "*.sh" -print -exec chmod 770 {} \; | |
(function foo(){bar = 10; var bar = 20;}()); | |
alert(bar) // ReferenceError: bar is not defined | |
(function foo(){bar = 10;}()); | |
alert(bar) // 10 |
-- | |
-- Fix Slack's channel switching. | |
-- This rebinds ctrl-tab and ctrl-shift-tab back to switching channels, | |
-- which is what they did before the Teams update. | |
-- | |
-- Slack only provides alt+up/down for switching channels, (and the cmd-t switcher, | |
-- which is buggy) and have 3 (!) shortcuts for switching teams, most of which are | |
-- the usual tab switching shortcuts in every other app. | |
-- | |
local ctrlTab = hotkey.new({"ctrl"}, "tab", function() |
// @flow | |
const crypto = require('crypto'); | |
module.exports = WebpackStableChunkHash; | |
function WebpackStableChunkHash() {} | |
WebpackStableChunkHash.prototype.apply = function(compiler) { | |
// | |
// For a while, webpack has had issues with [chunkhash] being unstable and not reflecting the actual |