Skip to content

Instantly share code, notes, and snippets.

View hellsan631's full-sized avatar

Mathew Kleppin hellsan631

View GitHub Profile
@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
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();
});
var keys = [];
for(var k in r.app.models) keys.push(k);
console.log(keys);
for (var model in r.app.models) {
this[model] = r.app.models[model];
}
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;
[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
{
"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": {
@hellsan631
hellsan631 / 0 Raygun on the mean stack.md
Last active July 16, 2021 11:11
Raygun Angular.js and Express/Loopback integrations... done right, and documented!

Raygun Integration

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.