Skip to content

Instantly share code, notes, and snippets.

View gortok's full-sized avatar

George Stocker gortok

View GitHub Profile
'use strict';
describe('DashboardControllers', function(){
var $httpBackend, $scope, $state, ctrl, jewelbotServiceStub;
jewelbotServiceStub = {
GetAppId: function() {},
SetAppId : function() {},
IsPaired : function() {}
};
beforeEach(module('jewelApp'), function($provide){
$provide.value('JewelbotService', jewelbotServiceStub);
@gortok
gortok / project.json
Created January 19, 2017 17:13
.NET Core project.json
{
"dependencies": {
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.1",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
@gortok
gortok / error.debug.output
Created January 27, 2017 17:42
Error Output .NET Core 1.1.0 debug Visual Studio
The program '[6168] dotnet.exe' has exited with code -2147450751 (0x80008081).
The program '[6188] iisexpress.exe' has exited with code 0 (0x0).
@gortok
gortok / project.json
Created January 27, 2017 17:43
.NET Core 1.1.0 project.json
{
"dependencies": {
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.1",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
@gortok
gortok / report.wer
Created April 7, 2020 00:44
Babysmash Event Viewer WER file
Version=1
EventType=CLR20r3
EventTime=132306936210374710
ReportType=2
Consent=1
UploadTime=132306936212054996
ReportStatus=268435456
ReportIdentifier=4fe7a0bf-24c9-49bc-a068-c6c791d9d452
Wow64Host=34404
Wow64Guest=332
@gortok
gortok / pre-receive.py
Last active June 8, 2020 12:39
Python Pre Receive hook for checking commit messages
#!/bin/python
import sys
import re
import subprocess
#Format: "oldref newref branch"
line = sys.stdin.read()
(base, commit, ref) = line.strip().split()
new_branch_push = re.match(r'[^1-9]+', base)