Skip to content

Instantly share code, notes, and snippets.

@dcbartlett
dcbartlett / pseudo.html
Created March 21, 2016 18:37 — forked from gsans/pseudo.html
Todo List pseudo-html
<root>
<add-todo>
<input><button>Add todo</button></input>
</add-todo>
<todo-list><ul>
<todo id="0" completed="false"><li>buy milk</li></todo>
</ul></todo-list>
<filters>
Show: <filter-link><a>All</a><filter-link> ... </filters>
</root>
var nlp = require('./nlp');
var tokens = nlp.tokenize("Eligibility: Open to the general public, must have a library card to checkout library materials");
console.log(tokens.tag());
//Outputs "Open" as "NNP"
var tokens = nlp.tokenize("Eligibility: open to the general public, must have a library card to checkout library materials");
console.log(tokens.tag());
@dcbartlett
dcbartlett / app.js
Last active August 29, 2015 14:05
Ionic (angular) - Damnit Why not worky?
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'Captix' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'Captix.controllers' is found in controllers.js
angular.module('captix', ['ionic', 'captix.controllers', 'captix.services'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
// Model
module.exports = {
connection: '',
tableName: 'events',
attributes: {
start_time: {
type: 'datetime',
required: true,
before: function() {
return this.end_time;
start_time: {
type: 'string',
required: true,
before: this.end_time,
columnName: 'status'
},
end_time: {
type: 'string',
required: true,
after: this.start_time,
@dcbartlett
dcbartlett / onboarding
Created August 14, 2014 20:31
Onboarding
### OnBoarding
- Software needed.
- Explanation of parts of software.
- Explanation of Coding standards within organization.
- Git class if needed.
var fs = require('fs-extra');
var wrench = require('wrench');
var exec = require('child_process').exec;
var path = require('path');
var sailsBin = path.resolve('./bin/sails.js');
/**
* Uses the Sails binary to create a namespaced test app
* If no appName is given use 'testApp'
*