Skip to content

Instantly share code, notes, and snippets.

View bcanzanella's full-sized avatar
:octocat:

Brian Canzanella bcanzanella

:octocat:
View GitHub Profile
@bcanzanella
bcanzanella / tumblr_recentpostwidget_js.html
Created December 2, 2012 04:21 — forked from blindcyclistsunion/tumblr_recentpostwidget_js.html
Tumblr recent posts widget in javascript
<!-- need jquery for this, this line should really go in your theme html
just after the <head> marker, might work OK here if you aren't already using jquery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<!-- Mimic the style of the tumblr headers from your theme -->
<div class="heading">Recent Posts</div>
<!-- The javascript below will insert your recent posts lists in here -->
<div id="recentPosts"></div>
[assembly: OwinStartupAttribute(typeof(Foo.Startup))]
namespace Foo
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
// add filter for your dlls
@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>
@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 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 14, 2016 15:19
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@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
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 / 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 / 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