- Atom Editor
-
A hackable text editor for the 21st Century
- GitHub repo
-
- N1
-
The extensible, open-source mail client
- GitHub repo
-
- Atom Packages :: N1 Plugins
- > Extend your mail client in five minutes
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
/** | |
* @param {mongodb#Database} db | |
* @param {String} ns `${db}.${collection}` See http://npm.im/mongodb-ns | |
* @param {String} name - The index name to get progress on. | |
* | |
* @see https://docs.mongodb.com/v3.0/reference/method/db.currentOp/#active-indexing-operations | |
*/ | |
function getIndexBuildProgress(db, ns, name) { | |
/** | |
* TODO (imlucas) Update query to constrain on `name`. |
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
const CHANNELS = [ | |
{ | |
/** | |
* This is available from the mongodb.com download center. | |
*/ | |
id: 'stable', | |
name: 'MongoDB Compass', | |
version: '1.0.0', | |
productVersion: '1.0.0' // <- What's displayed to the user. | |
}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
window.tlsd = macgap.app.host(); // top level slack domain | |
var destination = 'https://'+tlsd+'/ssb'; | |
macgap.teams.updateTitleBarColor("#ffffff"); | |
</script> | |
<title>Slack</title> | |
<style> |
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 LessCache = require('less-cache'); | |
var dest = path.join(CONFIG.resources, 'app', 'less-compile-cache'); | |
var src = path.join(CONFIG.resources, 'app', 'index.less'); | |
var lessCache = new LessCache({ | |
cacheDir: dest, | |
resourcePath: path.join(CONFIG.resources, 'app'), | |
importPaths: [] | |
}); |
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 asar = require('asar'); | |
function createApplicationAsar(CONFIG, done) { | |
var opts = { | |
// ordering: path.resolve(__dirname, '..', | |
// 'resources', 'asar-ordering-hint.txt'), | |
unpack: '{' + [ | |
'*.node', | |
'**/vendor/**' | |
].join(',') + '}' | |
}; |
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 View = require('ampersand-view'); | |
var Base = require('../models/connection-collection'); | |
var debug = require('debug')('connect:multi-collection-example'); | |
var ConnectionCollection = Base.extend({ | |
initialize: function(models, options){ | |
options = options || {}; | |
Base.prototype.initialize.call(this, models, options); | |
}, | |
pipe: function(dest){ |
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
socket.io-stream:socket read: "f0491280-248d-4b6c-8da1-70939396ea7b" +9ms | |
mongodb-collection-sample has native $sample? +2ms false | |
mongodb-collection-sample:reservoir-sampler using query `{"_id":{"$oid":"560061ed4d9d6a0000e45474"}}` +1ms | |
/Users/lucas/scout-ci/scout-server/node_modules/mongodb/lib/utils.js:98 | |
process.nextTick(function() { throw err; }); | |
^ | |
MongoError: unknown operator: $oid | |
at Function.MongoError.create (/Users/lucas/scout-ci/scout-server/node_modules/mongodb-core/lib/error.js:31:11) | |
at /Users/lucas/scout-ci/scout-server/node_modules/mongodb-core/lib/topologies/server.js:754:66 |
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
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash; | |
source ~/.profile; | |
nvm use 0.12.7; | |
npm install -g node-gyp; |
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
// Using the node -> objective-c bridge | |
var $ = require('nodobjc'); | |
var pool = $.NSAutoreleasePool('alloc')('init'); | |
$.framework('Foundation'); | |
var host = $.NSHost('currentHost'); | |
var name = host('name'); | |
console.log('NSHost.currentHost.name: `%s`', name); | |
// -> NSHost.currentHost.name: `lucas-macbook-pro.local` |