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
import EscapeOutside from "react-escape-outside" | |
class MyComponent extends Component { | |
constructor() { | |
super() | |
this.state = { | |
isOpen: false, | |
} |
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
#!/bin/bash | |
# Send TCP dumps to S3 | |
die() { status=$1; shift; echo "FATAL: $*"; exit $status; } | |
# Replace with actual bucket name | |
BUCKET_NAME="my-bucket"; | |
# Get instance id | |
INSTANCE_ID="`wget -q -O - http://169.254.169.254/latest/meta-data/instance-id || die \"wget instance-id has failed: $?\"`" | |
# Init temp file |
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
import xml2js from 'xml2js'; | |
import AWS from 'aws-sdk'; | |
import { Meteor } from 'meteor/meteor'; | |
import { HTTP } from 'meteor/http'; | |
import { Picker } from 'meteor/meteorhacks:picker'; | |
import { DeathrowInstances } from '/imports/startup/server/ddp-graceful-shutdown'; | |
import { errorResponse } from '/imports/api/our-api/server/route-helpers.js'; | |
import './middleware'; | |
const SNS_PROTOCOL = Meteor.isDev() ? 'http' : 'https'; |
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 app = require('express')(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
app.get('/', function(req, res){ | |
res.sendFile(__dirname + '/index.html'); | |
}); | |
const EVENT_LOOP_TIME = 1000; | |
const connectedUsers = {}; // Structure is { userId: socket } |
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
import { Meteor } from 'meteor/meteor'; | |
const publishHooks = {}; | |
const registerPublishHook = (publishNames, position, fn) => { | |
if (!(publishNames instanceof Array)) { | |
publishNames = [publishNames]; | |
} | |
publishNames.forEach((publishName) => { |
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
import { Meteor } from 'meteor/meteor'; | |
const methodHooks = {}; | |
const registerMethodHook = (methodNames, position, fn) => { | |
if (!(methodNames instanceof Array)) { | |
methodNames = [methodNames]; | |
} | |
for (let i = 0; i < methodNames.length; i++) { |
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
license: mit |
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
license: mit |
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
license: mit |
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
license: mit |
NewerOlder