Skip to content

Instantly share code, notes, and snippets.

View sirrobert's full-sized avatar

Sir Robert Burbridge sirrobert

  • North Carolina, USA
View GitHub Profile
@sirrobert
sirrobert / designer.html
Created December 16, 2014 07:04
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@sirrobert
sirrobert / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@sirrobert
sirrobert / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
@sirrobert
sirrobert / designer.html
Created November 14, 2014 21:03
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
/**
* "Google Now" Card
*/
body {
background: #e1e1e1;
min-height: 100%;
margin: auto;
}
ul.gNow {
width: 450px;
@sirrobert
sirrobert / demo.p6
Created December 12, 2012 16:33
Parsing a file with newlines
my $str = "
TITLE: My Title
This is an example of some paragraph text. One of the
key characteristics is that it can span multiple lines.
This is another paragraph.
";
@sirrobert
sirrobert / break-debug.p6
Created October 9, 2012 21:04
A script that breaks the p6 debugger.
use v6;
my $fake_OUT = class {method print(*@args) {}};
my $real_OUT = $*OUT;
sub quiet () { $*OUT = $fake_OUT }
sub speak () { $*OUT = $real_OUT }
say 'a';
quiet;
@sirrobert
sirrobert / Loader.pm
Created September 17, 2012 16:06
Config::INI::parse_file can't be found after a 'require'.
# Just a placeholder so we can require a file. You can put "class Loader;" in here if you want... it still breaks.
@sirrobert
sirrobert / dynamic-role.p6
Created September 4, 2012 20:32
dynamic roles for grammars
use v6;
grammar G {
proto token TOP { * };
token TOP:sym<a> { 'a' };
};
class GA {
method TOP { say "TOP"; };
method TOP:sym<a> ($/) { say 'a' };
@sirrobert
sirrobert / demo.data
Created August 24, 2012 14:58
Interesting 'eval' inconsistency
{
a => {a => 1}
b => {b => 2},
}