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
helloworld | |
dsffd | |
sdsds |
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 express = require('express'), | |
reqpromise = require('request-promise'); | |
function register(req, res, next) { | |
var user = {}; | |
user.username = req.body.username; | |
user.password = req.body.password; | |
user.firstName = req.body.firstName; | |
user.lastName = req.body.lastName; | |
user.email = req.body.username; |
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
def defineRoute(routeBuilder) { | |
routeBuilder.categories { | |
schema { | |
properties { | |
name { | |
type string, | |
description "a name" | |
} | |
links { | |
brand "brands" |
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 heapdump = require('heapdump'); | |
var memwatch = require('memwatch'); | |
var fs = require('fs'); | |
var os = require("os"); | |
var hostname = os.hostname(); | |
var rest = require('restler'); | |
var timeoutVal = process.env.DUMP_TIMEOUT_VAL; |
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
//keys are generated from the collection names. | |
var orderedAlarmsChangeConsumer = queue({exchange, "name":"ordered.alarms", exclusive:false}).consume( | |
'canAlarms.insert': function(data) { | |
if(data.canAlarms[0].archiveRequested){ | |
return createAndSendCanAlarms(data) | |
}, | |
'canAlarms.delete': function ... , | |
'canAlarams.update': function ... , |
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 | |
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
open /Applications/Xcode.app |