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
"use strict"; | |
/** @module createInstanceWithFieldsAndConnection */ | |
var capitalizeFirstLetter = require("../utils/capitalizeFirstLetter"); | |
var models = require("../wrapper").getSingleton(); | |
var async = require("async"); | |
/** | |
* Isomorphic action for persisting an object or series of objects of model {{name}}, only accepting explicit fields, and |
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
"use strict"; | |
/** @module CreateUser */ | |
var models = require("../wrapper").getSingleton(); | |
var async = require("async"); | |
var password = require("password-hash-and-salt"); | |
/** | |
* Create a user with a variable number of fields and a salted/hashed password, all users should |
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
"use strict"; | |
var expect = require("expect.js"); | |
var async = require("async"); | |
var superagent = require("superagent"); | |
var api = require("../lib/api"); | |
var serverFactory = require("./helpers/server").init; | |
var Orm = require("@bjones6/hs-models"); | |
var databaseSettings = { // this is running unexposed on localhost don't get excited |
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
angular.module('handstack').service("InterpreterService", function(){ | |
this.getContactsFromRawCSV = function(file, callback){ | |
/** | |
* Take CSV in a format similar to: | |
* | |
* ' | |
* firstName,lastName,phone,email | |
* ben,jones,1234,b@b.com | |
* jessica,lee,2345,j@j.com | |
* ' |
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
package main | |
import ( | |
"sync/atomic" | |
"time" | |
"fmt" | |
) | |
var ( | |
counter int32 = 0 |
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
package twelvefactor_ping | |
import ( | |
"github.com/b3ntly/twelvefactor_ping/ping" | |
"net/http" | |
"os" | |
"log" | |
"fmt" | |
) |
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
package profile_extractor | |
import "time" | |
type Profile struct { | |
Name string | |
ProfileURL string | |
CurrentJobTitle string | |
CurrentCompany string | |
CurrentLocation string |
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
--- | |
statuscodes: | |
- code: '404' | |
message: No Sandwich Found | |
creator: rnelson0 | |
- code: '410' | |
message: Sandwich Gone | |
creator: Breynolds | |
- code: '403' | |
message: Sandwich Locked |
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
--- | |
'200': | |
message: foo | |
creator: bar |
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
package main | |
import ( | |
"fmt" | |
"context" | |
"github.com/PuerkitoBio/goquery" | |
"github.com/chromedp/cdproto/dom" | |
"github.com/chromedp/chromedp" | |
) |
OlderNewer