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
| 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 = []; |
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
| var _ = require('i18n_library'); | |
| modules.exports = { | |
| literalPhrase: "Hola Sean", | |
| parameterizedPhrase: _("Hola {{person}}", { person: "Sean" }) | |
| } |
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
| spymaster: PropTypes.bool.isRequired, | |
| double: PropTypes.string, | |
| toggleSpymaster: PropTypes.func | |
| } | |
| window.addEventListener('deviceorientation', this.onDeviceOrientation) | |
| } |
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
| $ npm install | |
| > [email protected] 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 | |
| [email protected] /Users/alunny/dev/tmp/rq | |
| ├─┬ [email protected] | |
| │ ├─┬ [email protected] | |
| │ │ ├── [email protected] |
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
| 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", |
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
| Sub LockAllVisibleToolbars() | |
| Dim cb As CommandBar | |
| For Each cb In CommandBars | |
| If cb.Visible = True Then | |
| cb.Protection = msoBarNoChangeDock + _ | |
| msoBarNoChangeVisible + _ | |
| msoBarNoCustomize + _ | |
| msoBarNoMove + _ | |
| msoBarNoResize |
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
| 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 |
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
| 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 |
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
| if (value === 'onething') { | |
| return correctValue; | |
| } else { | |
| omfg.this.should.never.happen | |
| } |
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 | |
| while true | |
| do | |
| curl http://eztv.it | grep "href=\"\/ep\/.*\/masterchef" | |
| if [ $? -ne 0 ] | |
| then | |
| echo "not found at `date`" | |
| sleep 30 | |
| else |
NewerOlder