Skip to content

Instantly share code, notes, and snippets.

View cayblood's full-sized avatar

Carl Youngblood cayblood

View GitHub Profile
@cayblood
cayblood / designer.html
Created August 29, 2014 21:11
designer
<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-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
// Karma configuration
// Generated on Wed Nov 12 2014 16:58:10 GMT-0700 (MST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: 'app',
[21:44:55] Using gulpfile ~/src/github.com/TheWorldTable/beehive/gulpfile.js
[21:44:55] Starting 'test'...
INFO [karma]: Karma v0.12.25 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 30.0.1599 (Linux)]: Connected on socket NlEDV22fMX1liH7FRCIJ with id 60108893
Chrome 30.0.1599 (Linux): Executed 0 of 3 SUCCESS (0 secs / 0 secs)
Chrome 30.0.1599 (Linux) <twt-user-badge> name should include the user's name FAILED
TypeError: Object #<HTMLUnknownElement> has no method 'async'
at Object.ComponentWrapper.flush (/home/ubuntu/src/github.com/TheWorldTable/beehive/app/test/support/polymer_setup.js:10:13)
at Object.<anonymous> (/home/ubuntu/src/github.com/TheWorldTable/beehive/app/test/integration/twt-user-badge-spec.js:20:15)
@cayblood
cayblood / build_commands.sh
Created November 15, 2014 01:38
how to update chrome for drone.io
export CHROME_BIN=/usr/bin/chromium-browser
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update -y
sudo apt-get install --only-upgrade chromium-browser -y
sudo start xvfb
npm -d install
node_modules/.bin/bower install
node_modules/.bin/gulp
Verifying that +carlyoungblood is my openname (Bitcoin username). https://onename.io/carlyoungblood
@cayblood
cayblood / keybase.md
Last active August 29, 2015 14:19
keybase.md

Keybase proof

I hereby claim:

  • I am cayblood on github.
  • I am carl_youngblood (https://keybase.io/carl_youngblood) on keybase.
  • I have a public key whose fingerprint is 048A 028F 9778 4D5E 5060 6D67 3F5E 2CD8 C084 BD6B

To claim this, I am signing this object:

@cayblood
cayblood / keybase.md
Created April 15, 2015 03:35
keybase.md

Keybase proof

I hereby claim:

  • I am cayblood on github.
  • I am cayblood (https://keybase.io/cayblood) on keybase.
  • I have a public key whose fingerprint is 048A 028F 9778 4D5E 5060 6D67 3F5E 2CD8 C084 BD6B

To claim this, I am signing this object:

alert(window.twtPluginOptions);
SICP Exercise 1.2
> (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)))
-37/150
SICP Exercise 1.3
(define (square a) (* a a))
(define (sum-of-squares a b) (+ (square a) (square b)))
(define (sum-of-largest-two-squares a b c)
(cond ((and (< a b) (< a c)) (sum-of-squares b c))
((and (< b a) (< b c)) (sum-of-squares a c))
(else (sum-of-squares a b))))