Skip to content

Instantly share code, notes, and snippets.

View tristanpendergrass's full-sized avatar

Tristan tristanpendergrass

  • Dropbox
  • Seattle, WA
View GitHub Profile
{
"query": {
"term": {
"_accountUuid": "fe0ffc2c-589e-4b5c-8a72-917aae097f44"
},
"size": 1,
"sort": [
{
"@timestamp": "desc"
}]
{
"query":{
"bool":{
"must":[
{
"match":{
"_accountUuid":"fe0ffc2c-589e-4b5c-8a72-917aae097f44"
}
}]
{
"query":{
"bool":{
"must":[
{
"match":{
"_accountUuid":"fe0ffc2c-589e-4b5c-8a72-917aae097f44"
}
}]
// Karma configuration
// Generated on Fri Oct 10 2014 17:58:36 GMT-0400 (EDT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../..',
{
"list":[
{
"type":"Account",
"name":"TEstLog",
"uuid":"3dc105b6-6ae9-40c4-b54f-f97a37a7c5ca"
},
{
"type":"Account",
"name":"pochen",
~/dev/rest-api $ npm install
npm WARN package.json node-api@ No description
npm WARN package.json node-api@ No repository field.
npm WARN package.json node-api@ No README data
npm ERR! error rolling back Error: ENOTDIR, unlink '/Users/tristanpendergrass/dev/rest-api/node_modules/body-parser'
npm ERR! error rolling back body-parser@1.0.2 { [Error: ENOTDIR, unlink '/Users/tristanpendergrass/dev/rest-api/node_modules/body-parser']
npm ERR! error rolling back errno: 27,
npm ERR! error rolling back code: 'ENOTDIR',
npm ERR! error rolling back path: '/Users/tristanpendergrass/dev/rest-api/node_modules/body-parser' }
npm ERR! Error: ENOTDIR, unlink '/Users/tristanpendergrass/dev/rest-api/node_modules/body-parser'
{
"name": "node-api",
"main": "server.js",
"dependencies": {
"express": "~4.0.0",
"mongoose": "~3.6.13",
"body-parser": "~1.0.1"
}
}
angular.module('berlin')
.directive('jsonDl', function ($sce) {
return {
restrict: 'E',
template: '<a href="{{dataUrl}}">Download</a>',
controller: function (scope) {
scope.dataUrl = 'http://google.com';
}
}
});
'use strict';
(function () {
var app = angular.module('initializer', [
'ui.router',
'constant',
'ngCookies',
'authService',
'ngRoute'
function setTime (onChunk) {
if (typeof onChunk === 'undefined') return;
var time = moment($scope.sliderTimes[onChunk]);
$scope.instanceTime = time.format('MMMM Do YYYY, h:mm:ss a');
$scope.$apply();
};