Skip to content

Instantly share code, notes, and snippets.

View bcanzanella's full-sized avatar
:octocat:
Working on the latest CodeStream features!

Brian Canzanella bcanzanella

:octocat:
Working on the latest CodeStream features!
View GitHub Profile
@bcanzanella
bcanzanella / bookmarklet.js
Created May 22, 2022 23:28
Furniture Shopping in Canada
javascript:var q=prompt("search");q&&["https://mustsociete.com/en/catalogsearch/result/?q=%s","https://www.structube.com/en_ca/search?query=%s&page=1&sort-by=relevance-asc",
"https://www.jysk.ca/nsearch/?q=%s",
"https://www.bouclair.com/en/search?q=%s",
"https://mobilia.ca/en/catalogsearch/result/?q=%s",
"https://www.eq3.com/ca/en/search/%s",
"https://maisoncorbeil.com/en/catalogsearch/result/?q=%s",
"https://marietteclermont.com/?post_type=product&s=%s",
"https://www.urbanbarn.com/en/search/?q=%s&lang=en_CA",
"https://www.knoll.com/search-results?searchtext=%s",
"https://www.dwr.com/search?q=%s&search-button=&lang=en_US",
@bcanzanella
bcanzanella / windows-rebuild.ps1
Created November 2, 2020 16:25
windows rebuild
[CmdletBinding(PositionalBinding = $false)]
Param(
[Parameter(Mandatory = $true)]
[Alias("p")]
[System.String] $Path
)
cd $Path
cd shared/ui
@bcanzanella
bcanzanella / README.md
Created July 31, 2017 18:24 — forked from jamesramsay/README.md
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@bcanzanella
bcanzanella / app.html
Last active October 23, 2016 14:20
dialog not re-binding (with others)
<template>
<require from="./bar"></require>
<button click.delegate="prompt()">open dialog</button>
<br><br>
(app [inline]) inner data:<br>
<div repeat.for="s of outer.inner">${s.name}</div>
<br>from bar component<br>
<bar outer.bind="outer"></bar>
@bcanzanella
bcanzanella / app.html
Last active October 23, 2016 13:08
dialog not re-binding (with fooChanged)
<template>
<button click.delegate="prompt()">open dialog</button>
<br><br>
<div>${foo}</div>
</template>
@bcanzanella
bcanzanella / app.html
Created September 14, 2016 15:19
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@bcanzanella
bcanzanella / app.html
Last active October 23, 2016 14:02 — forked from jdanyow/app.html
dialog not re-binding
<template>
<button click.delegate="prompt()">open dialog</button>
<br><br>
(app [inline]) inner data:<br>
<div repeat.for="s of outer.inner">${s.name}</div>
</template>
@bcanzanella
bcanzanella / app.html
Created September 2, 2016 19:04
Aurelia Gist - nav in a LayoutView
<template>
<require from="nav-bar.html"></require>
<!-- this nav works -->
<nav-bar router.bind="router"></nav-bar>
<div class="page-host" style="margin-top:50px">
<router-view></router-view>
</div>
</template>
@bcanzanella
bcanzanella / app.html
Last active September 2, 2016 19:02 — forked from d13/app.html
Aurelia Gist - nav in a LayoutView
<template>
<require from="nav-bar.html"></require>
<!-- this nav works -->
<nav-bar router.bind="router"></nav-bar>
<div class="page-host" style="margin-top:50px">
<router-view></router-view>
</div>
</template>
[assembly: OwinStartupAttribute(typeof(Foo.Startup))]
namespace Foo
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
// add filter for your dlls