{
"Print to console": {
"prefix": "log",
"description": "Log output to console",
"body": [
"console.log('$1');",
"$2"
]
},
This file contains hidden or 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
@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 |
This file contains hidden or 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
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(); | |
}); |
This file contains hidden or 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
var keys = []; | |
for(var k in r.app.models) keys.push(k); | |
console.log(keys); |
This file contains hidden or 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
for (var model in r.app.models) { | |
this[model] = r.app.models[model]; | |
} |
This file contains hidden or 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
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; |
This file contains hidden or 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
[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 |
This file contains hidden or 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
{ | |
"Print to console": { | |
"prefix": "log", | |
"description": "Log output to console", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
] | |
}, | |
"Create basic Promise": { |
This file contains hidden or 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
{ | |
"Print to console": { | |
"prefix": "log", | |
"description": "Log output to console", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
] | |
}, | |
"Create basic Promise": { |
Featuring
- AngularJS
- Loopback (express)
I've solved some big issues with getting Raygun to work for tracking the javascript in the mean stack. There were several issues with angular and loopback, and the documentation is pretty scarce. So here is my best attempt at outlining my solution. Keep in mind, this may not work if you download and run this, but its working in my web bot project, which uses the same tech.
OlderNewer