Skip to content

Instantly share code, notes, and snippets.

View alunny's full-sized avatar

Andrew Lunny alunny

  • Twitter
  • San Francisco, CA
View GitHub Profile
var Hogan = require('./twitter-hogan');
var renderOptions = { asString: true, sectionTags: [{ o: '_i', c: 'i' }] };
var translateMustache = require('./translate-mustache');
function extractPartials(tmpl) {
// need eval to pull the partials out of the Hogan-generated string
/* eslint-disable no-eval */
var hoganParams = eval(`(${tmpl})`);
/* eslint-enable no-eval */
var partialNames = [];
@alunny
alunny / idealOutput.js
Last active December 12, 2016 23:22
webpack plugin question
var _ = require('i18n_library');
modules.exports = {
literalPhrase: "Hola Sean",
parameterizedPhrase: _("Hola {{person}}", { person: "Sean" })
}
spymaster: PropTypes.bool.isRequired,
double: PropTypes.string,
toggleSpymaster: PropTypes.func
}
window.addEventListener('deviceorientation', this.onDeviceOrientation)
}
$ npm install
> fsevents@1.0.9 install /Users/alunny/dev/tmp/rq/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
[fsevents] Success: "/Users/alunny/dev/tmp/rq/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node" is installed via remote
require-from-twitter@0.0.1 /Users/alunny/dev/tmp/rq
├─┬ babel-cli@6.6.5
│ ├─┬ babel-polyfill@6.7.4
│ │ ├── babel-regenerator-runtime@6.5.0
diff --git a/src/unit.js b/src/unit.js
index 5ad4499..3f35708 100644
--- a/src/unit.js
+++ b/src/unit.js
@@ -2,17 +2,21 @@ define([
"./core",
"./common/validate/parameter-presence",
"./common/validate/parameter-type/number",
+ "./common/validate/parameter-type/plain-object",
"./unit/format",
Sub LockAllVisibleToolbars()
Dim cb As CommandBar
For Each cb In CommandBars
If cb.Visible = True Then
cb.Protection = msoBarNoChangeDock + _
msoBarNoChangeVisible + _
msoBarNoCustomize + _
msoBarNoMove + _
msoBarNoResize
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:93:in `load'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:89:in `load'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:86:in `each'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:86:in `load'
from ./config/deploy.rb:17:in `load'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /home/alunny/.rvm/gems/RUBY_VERSION/gems/capistrano/lib
set -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
# important!
bind-key d confirm-before -p "detach-client? (NO) (y/n)" detach-client
set -g status-bg black
set -g status-left-fg green
if (value === 'onething') {
return correctValue;
} else {
omfg.this.should.never.happen
}
#!/bin/bash
while true
do
curl http://eztv.it | grep "href=\"\/ep\/.*\/masterchef"
if [ $? -ne 0 ]
then
echo "not found at `date`"
sleep 30
else