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 cache = new clientsiiide('MyFeedWidget'); | |
| // Asynchronous with read-through. | |
| cache.get({ | |
| ns: 'tags', | |
| keys: ['key1', 'key2'], | |
| expires: 3600, | |
| onDone: function(results) { | |
| // Process key/value pairs in "results". | |
| }, |
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
| 'use strict'; | |
| var extend = require(__dirname + '/../../prototype.js').extend; | |
| exports.NginxAccessParser = extend({name: 'NginxAccess', humanName: 'nginx access'}, { | |
| parse: function(log) { | |
| // From fluentd-0.10.9/lib/fluent/parser.rb: | |
| return this.namedCapture(log, '^(?<host>[^ ]*) [^ ]+ (?<user>[^ ]+) \\[(?<time>[^\\]]+)\\] "(?<method>\\S+) (?<path>[^ ]+) \\S+ (?<code>[^ ]+) (?<size>[^ ]+) ("(?<referer>[^\\"]+)")? ("(?<agent>[^\\"]+)")?$'); | |
| }, |
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
| {>event_header/} | |
| <table class="table table-striped table-bordered table-condensed"> | |
| <thead> | |
| <tr> | |
| <th>Field</th> | |
| <th>Value</th> | |
| </tr> | |
| </thead> | |
| <tbody> |
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
| <span class="label label-{__codeClass}">{code}</span> {host} {method} {path} | |
| {?referer} | |
| <i class="icon-arrow-left"></i><a title="Referer" href="{referer}">{__refererMin}</a> | |
| {/referer} |
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
| module.exports = function(grunt) { | |
| return { | |
| middleware: { | |
| files: { | |
| src: ['middleware/**/*.js'] | |
| } | |
| } | |
| }; | |
| }; |
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
| module.exports = function(grunt) { | |
| require('grunt-horde') | |
| .create(grunt) | |
| .loot('module-one') | |
| .loot('module-two') | |
| .loot('./config/grunt') | |
| .attack(); | |
| }; |
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
| module.exports = function(grunt) { // Intent: extend patterns seeded by a more universal module ... | |
| this.demand( | |
| 'initConfig.jshint.src.files.src', | |
| this.learn('initConfig.jshint.src.files.src').concat('bin/cli.js') | |
| ); | |
| }; | |
| module.exports = function(grunt) { // Intent: ... or redefine them | |
| return { | |
| src: { |
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
| module.exports = function(grunt) { | |
| 'use strict'; | |
| require('grunt-horde') | |
| .create(grunt) | |
| .demand('initConfig.projName', 'conjure') | |
| .demand('initConfig.instanceName', 'conjure') | |
| .demand('initConfig.klassName', 'Conjure') | |
| .loot('node-component-grunt') | |
| .loot('node-lib-grunt') |
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
| To benchmark: | |
| go test -bench=".*" > machine_description.txt |
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
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const execSync = require('child_process').execSync; | |
| if (process.argv.length < 3) { | |
| console.log(`node ${path.relative('.', process.argv[1])} [DevToolsProfile]`); | |
| process.exit(1); | |
| } | |
| let traceFile = path.resolve(process.argv[2]) |
OlderNewer