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
Show hidden characters
{ | |
// Your GitHub API token | |
// see: https://github.com/condemil/Gist#generating-access-token | |
"token": "ad65843cbe09daba734067fd58c1550e8fdb21a0", | |
// Show GitHub organizations | |
// Example: "company1", "company2" | |
"include_orgs": ["ModusCreateOrg"], | |
// Show GitHub users |
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
// Compile Our Sass | |
gulp.task('sass', function() { | |
gulp.src(paths.scss) | |
.pipe(sass()) | |
.pipe(rename('xxx.css')) | |
.pipe(gulp.dest(paths.css)) | |
.pipe(livereload(server)); | |
}); | |
// Watch Files For Changes |
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
{ | |
"user": { | |
"debug": false, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"jshint": { |
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
PING google.com (74.125.228.38): 56 data bytes | |
64 bytes from 74.125.228.38: icmp_seq=0 ttl=48 time=595.889 ms | |
64 bytes from 74.125.228.38: icmp_seq=1 ttl=48 time=488.799 ms | |
64 bytes from 74.125.228.38: icmp_seq=2 ttl=48 time=441.894 ms | |
64 bytes from 74.125.228.38: icmp_seq=3 ttl=48 time=501.045 ms | |
64 bytes from 74.125.228.38: icmp_seq=4 ttl=48 time=283.008 ms | |
64 bytes from 74.125.228.38: icmp_seq=5 ttl=48 time=88.218 ms | |
64 bytes from 74.125.228.38: icmp_seq=6 ttl=48 time=77.998 ms | |
64 bytes from 74.125.228.38: icmp_seq=7 ttl=48 time=221.209 ms | |
64 bytes from 74.125.228.38: icmp_seq=8 ttl=48 time=289.813 ms |
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
// just return the request, to test. | |
function onRequest(request, response, modules){ | |
// fetch all of our kickstart-tpls | |
modules.collectionAccess.collection('kickstarts-tpl').find({}, function(err, kickstartTemplates) { | |
// we need to convert the string to an ObjectId representation??? I've tried it without | |
// this and it still returns nothing. | |
var kickstartTemplateId = modules.collectionAccess.objectID(kickstartTemplates[0]._id); | |
modules.logger.info('kickstart_tpl_id: ' + kickstartTemplateId); |
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
// doesn't bootstrap. no response from $kinvey.init() | |
<script> | |
var KINVEY_DEBUG = true; | |
var jelly = angular.module('jelly', ['kinvey']); | |
var $injector = angular.injector(['ng', 'kinvey']); | |
$injector.invoke(function($kinvey) { | |
$kinvey.init({ | |
appKey : 'xxx', | |
appSecret : 'xxx' | |
}).then(function(response) { |
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
myApp.controller('MyWidgetControl', function($scope, $controller) { | |
$controller('AbstractWidgetControl', {$scope: $scope}); | |
//"Public" functions | |
$scope.myFunction = function() { | |
//... | |
}; | |
//Private functions | |
function myPrivateFn() { |
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
// TODO: ADD ERROR CONDITIONS | |
function onRequest(request, response, modules) { | |
// setup modules | |
var logger = modules.logger; | |
var db = modules.collectionAccess; | |
// set up the start/end date for the kickstart | |
var startDate = Date.parse(request.body.startDate); | |
var endDate = Date.parse(request.body.endDate); |
OlderNewer