Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs'),
Readable = require('stream').Readable,
http = require('http'),
port = 4000,
count = 0,
server;
server = http.createServer(function(req, res) {
var stream = new Readable;
mongoimport --db mean-dev --collection users --file {filename} --jsonArray
mongoimport --db mean-dev --collection topics --file {filename} --jsonArray
mongoimport --db mean-dev --collection topics --file {filename} --jsonArray
[
{
"__t": "Event",
"title": "ICT Unconference",
"content": "Dolor blanditiis qui exercitationem esse suscipit labore reprehenderit! Quam dolor odit recusandae mollitia quia. Facilis illo provident quod accusantium molestiae. Lorem unde natus doloremque officiis ad dolores reprehenderit temporibus dolorum voluptatibus! Suscipit soluta voluptate ratione!",
"startTime" : "2014-04-02",
"url": "http://www.google.com"
},
{
"__t": "Event",
'use strict';
angular.module('myApp')
.factory('Geolocation', ['$q', '$rootScope', function Geolocation ($q, $rootScope) {
return {
getPosition: function () {
var deferred = $q.defer();
if (navigator.geolocation) {
$rootScope.$apply(function () {
# ~/.tmuxinator/balanced-comp.yml
name: balanced-comp
root: ~/code/balanced-comp
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
function ErrorReporter(a) {
function b(a) {
try {
a.stack || (a.stack = new Error("make stack").stack, a.stack && (a.stack = a.stack.toString()))
} catch (b) {
}
return "string" != typeof a && (a = JSON.stringify(a)), a
}
function c(b) {
var c = new XMLHttpRequest;
Looking for hungry to learn developers: Pay range in the double digits, depending on drive, NOT experience!
We're looking for someone who is hungry to learn new techs as well as teach us new techs. We don't want you to be bored and stuck in a rut doing menial updates and worthless SEO all day. We want you to want to learn new frameworks and technologies and share your knowledge as well.
Never used Cake? Have a piece and while your at it write a new Model/View/Controller. It's as easy as π.
Want to sit in your own office with a 30 inch Mac Pro or 3? Surrounded by all the most trendy Apple gear? Write some IOS apps for us to sell while you're at it. We'll teach you!
Are you a trendsetter and have been using Laravel since before it was voted the most popular PHP framework of 2013 followed by Phalcon and Symfony2? Come and teach me I want to learn it too!
# Importer::BridgeRow
#
# Associates a row with a transaction
# Determine new or existing employee, pass off to new/existing instance
# Sets messages and state on transaction after processing
require 'importer/transaction_factory'
module Importer
class BridgeRow