Skip to content

Instantly share code, notes, and snippets.

View ZoolWay's full-sized avatar

Ricky Blankenaufulland ZoolWay

View GitHub Profile
@ZoolWay
ZoolWay / camelize.js
Last active May 17, 2016 09:15 — forked from vjt/camelize.js
String.camelize
// I thought I needed it, but I didn't need it anymore,
// but I already implemented it. So, here we go, if you
// ever would need a Javascript camelize implementation
// you can freely use this :-).
// - vjt@openssl.it Tue Feb 15 16:49:52 CET 2011
jQuery.extend (String.prototype, {
camelize: function () {
return s.replace(/(?:^|[-_])(\w)/g, function (stripped, letter) {
@ZoolWay
ZoolWay / camelize.ts
Created May 17, 2016 09:16
TypeScript variant of camelize.js
private static camelize(s: string): string {
return s.replace(/(?:^|[-_])(\w)/g, function (stripped, letter) {
return letter ? letter.toUpperCase () : '';
}).replace(/(^\w)/, function(letter) { return letter.toLowerCase()});
}
@ZoolWay
ZoolWay / AssemblyInfo.cs
Last active July 12, 2016 07:46
Very basic console-based Akka.NET cluster seed node and worker node
// ....
[assembly: log4net.Config.XmlConfigurator()]
@ZoolWay
ZoolWay / Console Output (from asp.net core worker node)
Last active July 13, 2016 12:06
An ASP.NET Core node which is not correctly leaving its Akka.NET Cluster
INFO 13:53:51 [ 1] vices.WebApi.Program - samcs.WebApi starting
DEBUG 13:53:51 [ 1] vices.WebApi.Startup - Configure services
DEBUG 13:53:52 [ 1] vices.WebApi.Startup - Providing ActorSystem
DEBUG 13:53:52 [ 1] vices.WebApi.Startup - Initializing actor system with config from 'C:\Users\blankenaufulland\Source\Repos\samnext\foundation\samcs\src\samcs.WebApi\akka.hocon'
INFO 13:53:52 [11] lassForStringSources - Starting remoting
INFO 13:53:52 [ 3] lassForStringSources - Remoting started; listening on addresses : [akka.tcp://samgroup@127.0.0.1:12300]
INFO 13:53:52 [ 8] lassForStringSources - Remoting now listens on addresses: [akka.tcp://samgroup@127.0.0.1:12300]
INFO 13:53:52 [ 3] lassForStringSources - Cluster Node [akka.tcp://samgroup@127.0.0.1:12300] - Starting up...
INFO 13:53:52 [11] lassForStringSources - Cluster Node [akka.tcp://samgroup@127.0.0.1:12300] - Started up successfully
DEBUG 13:53:52 [ 1] vices.WebApi.Startup - Configure
@ZoolWay
ZoolWay / app.html
Last active July 27, 2016 08:16 — forked from jdanyow/app.html
Aurelia TaskQueue for DOM rework
<template>
<h1>${message}</h1>
<ul>
<li class="entry" repeat.for="item of list">item: ${item}</li>
</ul>
<div>
<button click.trigger="addItem()">Add Bad</button>
<button click.trigger="addItemQueued()">Add Queued</button>
<button click.trigger="clearLength()">Clear Length</button>
<button click.trigger="clearSplice()">Clear Splice</button>
@ZoolWay
ZoolWay / app.html
Created July 27, 2016 08:59 — forked from Thanood/app.html
Aurelia Array observation
<template>
<h1>watch the data grow</h1>
${dataTitles}
<ul>
<li repeat.for="record of data">item ${record}</li>
</ul>
</template>
@ZoolWay
ZoolWay / bs3-login-form.html
Created August 2, 2016 09:28 — forked from bMinaise/bs3-login-form.html
Bootstrap 3 - Login Form ExampleFrom: http://bootsnipp.com
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
Verbose logs are written to C:\Users\username\.vscode\extensions\msjsdiag.debugger-for-chrome-0.5.1\vscode-chrome-debug.txt
OS: win32 ia32
Node: v5.10.0
vscode-chrome-debug-core: 0.1.18
debugger-for-chrome: 0.5.1
From client: initialize({"adapterID":"chrome","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":true}]}}
From client: launch({"name":"Launch chrome with debugging, serving localhost:9000","type":"chrome","request":"launch","url":"http://localhost:9000/","webRoot":"c:\\Users\\username\\Source\\Repos\\my-project/wwwroot","sourceMaps":true,"sourceMapPathOverrides":{"/src/*":"c:\\Users\\username\\Source\\Repos\\my-project/src/*"},"diagnosticLogging":true})
spawn('C:\Program Files (x86)\G
@ZoolWay
ZoolWay / elevated-prompt.reg
Last active September 2, 2018 20:56
Add "open elevated prompt" shift+right-click contextmenu of folders
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
@ZoolWay
ZoolWay / app-js.js
Last active August 25, 2016 14:13
Aurelia Template
export class App {
message = 'Aurelia Template';
}