This file contains 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
<script type="text/javascript" src="//makeapi.webmaker.org/gallery.js" ></script> | |
<script type="text/javascript"> | |
// Generate a Gallery | |
var gallery = new MakeGallery({ | |
tags: "makerParty", | |
contentType: "application/parapara" | |
}, "#gallery-div" ); | |
// regenerate gallery |
This file contains 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
pmm = pull moz master | |
po = push origin | |
pmoz = push moz master | |
st = status | |
suir = submodule update --init --recursive | |
co = checkout | |
cob = checkout -b | |
com = checkout master | |
br = branch | |
ass = add |
This file contains 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 queue = async.queue(function(message, queue_done) { | |
if ( !workers[message.ParsedBody.event_type] ) { | |
return queue_done(); | |
} | |
async.waterfall([ | |
function(w_done) { | |
w_done(null, message.ParsedBody.data); | |
}, | |
workers[message.ParsedBody.event_type] | |
], function(err) { |
This file contains 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 hyperquest = require("hyperquest"); | |
var querystring = require("querystring"); | |
module.exports = function(data, cb) { | |
var post = hyperquest.post({ | |
headers: { | |
"Content-Type": "application/x-www-form-urlencoded" | |
}, | |
uri: "https://sendto.mozilla.org/page/s/webmaker" | |
}); |
This file contains 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
// 1. COPY TO LOGIN.WEBMAKER.ORG ROOT DIRECTORY | |
// 2. RUN `NPM INSTALL AWS-SDK` | |
// 3. RUN `SQS_QUEUE_REGION=<QUEUE_REGION> SQS_QUEUE_URL=<QUEUE_URL> node create_user_log.js | |
// 4. RUN `RM -R NODE_MODULES/AWS-SDK` | |
var env = require( "./config/environment" ); | |
var db, | |
dbOptions = {}; | |
// DB Config parsing | |
db = env.get("DB"); |
This file contains 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
// 1. COPY TO WEBMAKER-EVENTS-SERVICE ROOT DIRECTORY | |
// 2. RUN `NPM INSTALL AWS-SDK` | |
// 3. RUN `SQS_QUEUE_REGION=<QUEUE_REGION> SQS_QUEUE_URL=<QUEUE_URL> node create_event_log.js | |
// 4. RUN `RM -R NODE_MODULES/AWS-SDK` | |
var loginConnString = process.env.WMLOGIN_CONNECTION_STRING + "/user/username/"; | |
var Habitat = require('habitat'); | |
Habitat.load(); |
This file contains 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
/*! | |
* EventEmitter v4.2.7 - git.io/ee | |
* Oliver Caldwell | |
* MIT license | |
* @preserve | |
*/ | |
(function(){function e(){}function t(e,t){for(var r=e.length;r--;)if(e[r].listener===t)return r;return-1}function r(e){return function(){return this[e].apply(this,arguments)}}var s=e.prototype,n=this,a=n.EventEmitter;s.getListeners=function(e){var t,r,s=this._getEvents();if(e instanceof RegExp){t={};for(r in s)s.hasOwnProperty(r)&&e.test(r)&&(t[r]=s[r])}else t=s[e]||(s[e]=[]);return t},s.flattenListeners=function(e){var t,r=[];for(t=0;t<e.length;t+=1)r.push(e[t].listener);return r},s.getListenersAsObject=function(e){var t,r=this.getListeners(e);return r instanceof Array&&(t={},t[e]=r),t||r},s.addListener=function(e,r){var s,n=this.getListenersAsObject(e),a="object"==typeof r;for(s in n)n.hasOwnProperty(s)&&-1===t(n[s],r)&&n[s].push(a?r:{listener:r,once:!1});return this},s.on=r("addListener"),s.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},s.once=r("addOnceListener"),s.defineEvent=functio |
This file contains 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
require 'logstash/inputs/base' | |
require 'logstash/namespace' | |
class LogStash::Inputs::FileGelf < LogStash::Inputs::Base | |
config_name 'filegelf' | |
milestone 2 | |
default :codec, 'plain' |
This file contains 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
function displatchNativeNotification(action) { | |
var params = []; | |
for (key in action) { | |
if (action.hasOwnProperty(key)) { | |
params.push(escape(key) + '=' + escape(action[key])); | |
} | |
} | |
var string = params.join('&'); | |
var uri = 'http://fogger.local/?' + string; |
OlderNewer