Skip to content

Instantly share code, notes, and snippets.

View dmackerman's full-sized avatar

Dave Ackerman dmackerman

  • Kentik Technologies - @kentik
  • Tempe, AZ
View GitHub Profile
{
// 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
// 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
{
"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": {
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
<table border="0" cellpadding="0" cellspacing="0" style="margin:20px;">
<tr>
<td width="600">
<img src="http://dl.dropbox.com/u/68704/Screenshots/erzu.png" width="600" alt="">
</td>
</tr>
<tr>
<td width="600">
<h2 style="font-family: 'Helvetica Neue'; color: #E97A35; font-size: 18px;margin-top:30px;">5 New Rules of Product Development (Links to Preso and Modev Video)</h2>
<html>
<body style="background: #eee;">
<table width="688" border="0" cellpadding="0" cellspacing="0" style="margin:20px 20px 0 20px;background:#fff;">
<tr>
<td colspan="2" style="width:700px;">
<a target="_blank" href="http://moduscreate.com/wp-content/uploads/2014/03/modus-infographic.png"><img src="http://dl.dropbox.com/u/68704/Screenshots/0gh-.png" width="700" alt=""></a>
</td>
</tr>
</table>
// 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);
// 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) {
myApp.controller('MyWidgetControl', function($scope, $controller) {
$controller('AbstractWidgetControl', {$scope: $scope});
//"Public" functions
$scope.myFunction = function() {
//...
};
//Private functions
function myPrivateFn() {
// 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);