Skip to content

Instantly share code, notes, and snippets.

View rictic's full-sized avatar
🦊

Peter Burns rictic

🦊
View GitHub Profile
Prompt:
Please write me ten outbursts of mockery that the bandit Happs Bydon might use to demoralize his foes in battle. Happs is a servant of the Stag Lord, and is accompanied by three lackies, though he'll be saying this in the middle of the battle, when some of his lackeys may have fallen to the adventurer's weapons.
His foes, as he sees them, are a goofy female halfling with a lute quoting impromptu inspirational poetry, a tall and powerful human barbarian woman who wields a giant sized sword; a skilled and deadly male dwarven fighter; a nervous and unlucky male halfling witch and his unsettling rabbit familiar; and an adorable little male living plant druid.
Currently Happs has shown up to a trading post called Oleg's where for the past several months he has been coming to collect protection money (he calls this "taxes"). For the first time, he's finding that Oleg's has defenders, and they're worryingly strong, but he is full of bravado, at least in front of his lackeys.
Response:
{
function* shadowPiercingWalk(elem) {
yield elem;
for (const child of elem.children) {
yield* shadowPiercingWalk(child);
}
if (elem.shadowRoot) {
for (const child of elem.shadowRoot.children) {
yield* shadowPiercingWalk(child);
}
diff --git a/node_modules/plylog/index.js b/node_modules/plylog/index.js
index bbd9668..2c996c7 100644
--- a/node_modules/plylog/index.js
+++ b/node_modules/plylog/index.js
@@ -11,6 +11,11 @@
const winston = require('winston');
+let consoleTransport = new (winston.transports.Console)({
+ level: 'info',
rictic-macbookpro:build rictic$ git clone git@github.com:Polymer/vscode-plugin.git
Cloning into 'vscode-plugin'...
remote: Counting objects: 459, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 459 (delta 0), reused 0 (delta 0), pack-reused 455
Receiving objects: 100% (459/459), 87.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (237/237), done.
rictic-macbookpro:build rictic$ cd vscode-plugin/
rictic-macbookpro:vscode-plugin rictic$ npm install
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
$ nvm install v6.6
######################################################################## 100.0%
Checksums empty
Now using node v6.6.0 (npm v3.10.3)
rictic-macbookpro:open rictic$ cd paper-checkbox/
rictic-macbookpro:paper-checkbox rictic$ npm install -g web-component-tester
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
/Users/rictic/.nvm/versions/node/v6.6.0/bin/wct -> /Users/rictic/.nvm/versions/node/v6.6.0/lib/node_modules/web-component-tester/bin/wct
/Users/rictic/.nvm/versions/node/v6.6.0/bin/wct-st -> /Users/rictic/.nvm/versions/node/v6.6.0/lib/node_modules/web-component-tester/bin/wct-st
@rictic
rictic / keybase.md
Created February 8, 2017 22:14
Keybase proof for rictic

Keybase proof

I hereby claim:

  • I am rictic on github.
  • I am rictic (https://keybase.io/rictic) on keybase.
  • I have a public key ASBIGwG8Xk1HNlo5Bv4xBUALH7a4ZWtHIYvI8TnKD4bxGgo

To claim this, I am signing this object:

Note the paper-button example below was generated by hand and so doesn't include every inherited property and attribute up the tree of behaviors, it just has the base paper-button and Polymer.PaperButtonBehavior.

Once polymer analyze is generating this format of course it will pull in all inherited properties from all behaviors going all the way up.

import * as estree from 'estree';
let node: estree.Node;
if (node.type === 'Identifier') {
// The type of `node` inside this block is narrowed to estree.Identifier.
console.log(`Node is identifier with name: ${node.name}`);
} else if (node.type === 'CallEpression' /* Note the typo */) {
// This is impossible, so the line below is an error. node has been narrowed
// here to the type `never`.
@rictic
rictic / foo.html
Last active September 9, 2015 20:02 — forked from jrabbit/foo.html
<template is="dom-bind">
<iron-ajax url="/total" last-response="{{A}}response{{B}}" handle-as="json" auto></iron-ajax>
<paper-card heading="Grand Total" class="pink">
<div class="card-content">
<span>[[response.total]]</span> dead flies
</div>
<div class="card-actions">
<form is="ajax-form" action="/kill" method="POST" id="anon-form">
<paper-button id="submitButton2">I killed a fly (anonymously)</paper-button>
</form>
@rictic
rictic / index.html
Last active December 14, 2015 05:29
Simple page for messing about with <canvas>
<html>
<head>
<title>Drawfun</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
</head>