Skip to content

Instantly share code, notes, and snippets.

@collin
collin / sharetools.md
Last active September 2, 2016 20:28
<share-tools>
<share-tools
  share-title="Share This!"
  share-url="//example.org/share-me"
  data-track-category="Super Cool Category"
  data-track-action="Share" [0]
>
  <h1>Special Custom Share Message</h1> [1]
  <share-via-facebook icon label></share-via-facebook>
  <share-via-twitter icon label twitter-handle="theonion"></share-via-twitter>
@collin
collin / body.md
Last active September 2, 2016 20:14
Framework Agnostic Components

Yeah, that would be nice

We have some framework agnostic components. They work very well.

<a>, <p>, <script>, <input>, <svg>, even the dreaded <table>.

Imagine a nightmare scenario where <table> was implemented:

/
///
////
////////////
//// /// //
//// /// /////
/// /// //// //
/// // /// //
//// /// ///
//// //// /// .--------------------------.
constructor (props) {
var wrappedProps = {};
Object.keys(props).forEach((key) => {
wrappedProps[key] = Object.create(props[key]);
wrappedProps[key].update = (object) => {
Object.assign(props[key], object)
this.setState({ wrappedProps });
};
});
super(props);

Duke Nukem 3D

  • Image/Embed must an image name or a yotube URL, nothing else (please move photo credits to separate line)

VH1 Storytellers premieres

  • can only be part of one vertical, (no commas): vertical:tv,music
from bluebu/rails-alpine
RUN mkdir /webapp
RUN apk --update add --virtual build_deps \
build-base ruby-dev libc-dev linux-headers \
openssl-dev postgresql-dev libxml2-dev libxslt-dev
RUN gem update --system
RUN gem install bundler
WORKDIR /webapp
COPY ./Gemfile* /webapp/
RUN cd /webapp && bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config && \
function Thing () {
this.method = this.method.bind(this);
$(element).on('event', this.method);
}
Thing.prototype.method = function () {
}
@collin
collin / improv-notes.md
Created September 23, 2015 02:35
improv notes

Starter warm-ups and exercises:

Clapping exercise:

Circle up. Go in a circle. One person starts by turning to the next person and those two clap in unison. Then the second person turns to the next person and they clap in unison. This goes on, stop after one or two times around.

Now pass the clap without any set order.

Finally break the circle and pass the clap while milling around the space.

MATCH (user)-[:has_access_to]->()-[:contains..*]->(target), (root_node)-[:rel_a]-()-[:rel_b]-(target)