Skip to content

Instantly share code, notes, and snippets.

View hellsan631's full-sized avatar

Mathew Kleppin hellsan631

View GitHub Profile
{
"Print to console": {
"prefix": "log",
"description": "Log output to console",
"body": [
"console.log('$1');",
"$2"
]
},
"Create basic Promise": {
{
  "Print to console": {
		"prefix": "log",
		"description": "Log output to console",
		"body": [
			"console.log('$1');",
			"$2"
		]
	},
{
"Print to console": {
"prefix": "log",
"description": "Log output to console",
"body": [
"console.log('$1');",
"$2"
]
},
"Create basic Promise": {
[16:45:54] Starting 'ngdoc'...
[16:45:54] Server started http://localhost:9001
C:\Workspaces\magnises-storybook\node_modules\gulp-ngdocs\src\example.js:142
out.push(' ng-set-html="' + this.html[0].id + '"');
^
TypeError: Cannot read property 'id' of undefined
at exports.Example.toHtmlEmbed (C:\Workspaces\magnises-storybook\node_modules\gulp-ngdocs\src\example.js:142:43)
at exports.Example.toHtml (C:\Workspaces\magnises-storybook\node_modules\gul
var Gamers = require('Gamers');
var Games = require('Games');
var discord = require('discord.js');
var config = require('config');
var Promise = require('bluebird');
module.exports = Bot;
function Bot(app) {
var _this = this;
for (var model in r.app.models) {
this[model] = r.app.models[model];
}
var keys = [];
for(var k in r.app.models) keys.push(k);
console.log(keys);
Gamer.findOrCreate({username:'whiplash'})
.then(function(user){
return Gamelog.create({gamerId: user.id});
})
then.(function(gamelog){
return Game.findOrCreate({title: 'Star Citizen'})
.then(function(game){
gamelog.gameId = game.id;
gamelog.save();
});
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f