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
(:: Configure script for the top-songs application ::) | |
(: forest :) | |
xquery version "1.0-ml"; | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
let $config := admin:get-configuration() | |
let $config := admin:forest-create( | |
$config, | |
"top-songs-01", | |
xdmp:host(), | |
()) |
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 | |
# Sensor updater | |
# v0.1 | |
echo "==> Updating sensor-tracking" | |
cd sensor-tracking | |
git pull origin | |
cd .. |
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
dscape at air in ~/Desktop/node/node on (no branch) | |
$ ./configure | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for gcc : ok | |
Checking for library dl : yes |
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 oauth = require('oauth') | |
, request = require('request') | |
; | |
module.exports = function(app, params, cb) { | |
if(!params.consumer_key) { throw new Error('Please provide a consumer key.'); } | |
if(!params.consumer_secret) { throw new Error('Please provide a consumer secret.'); } | |
if(!params.callback_url) { throw new Error('Please provide callback url.'); } | |
if(!cb) { throw new Error('Please provide a callback'); } |
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
new RegExp( | |
[ | |
'<', | |
'(/?)', // 2 - is closing | |
'([-:\\w]+)', // 3 - name | |
'((?:\\s+[-\\w]+(?:', '=', '(?:' + | |
'\\w+|' + | |
'"[^"]*"|' + | |
'\'[^\']*\'))?)*)', // 4 - attributes | |
'(/?)', // 5 - is self-closing |
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 url_parts = url.parse(req.url, true); | |
var query1 = url_parts.query; | |
// Build the post string from an object | |
var query=querystring.stringify(query1); | |
var post_options = { | |
host: 'steamcommunity.com', | |
port: '443', |
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
[api]: New apis / changes to apis | |
[test]: Update test/* files | |
[dist]: Changes to submodules, version bumps, updates to package.json | |
[minor]: Small changes | |
[doc]: Updates to documentation | |
[ux]: Updates to UX | |
[fix]: Bug fixes | |
[bin]: Update binary scripts associated with the project | |
[merge]: Resolved git merge from upstream or otherwise | |
[refactor]: Refactor of existing code with no external API changes |
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 f() { | |
throw new Error('def'); | |
} | |
process.on('uncaughtException', function(e) { | |
console.log('uncaught exception', e); | |
f(); | |
}); | |
f(); |