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 && \
var confirmationQueue = new Firebase("https://static-showdown.firebaseio.com/email_confirmations");
imaginaryRouter.route("/confirm_email/:code", function(params) {
confirmationQueue.child(params.code).remove();
});
@collin
collin / gist:7439949
Created November 12, 2013 22:27
heroku logs
heroku logs --tail --app divshot-dio
2013-11-12T20:28:14.803888+00:00 app[web.2]: ":2000},"_paused":false,"_peername":{"address":"10.42.122.176","family":"IPv4","port":36430},"_httpMessage":"[Circular]"},"connection":"[Circular]","__wrapped":true,"_emittedHeader":true,"statusCode":404},"pipesCount":1,"flowing":true,"ended":false,"endEmitted":false,"reading":true,"calledRead":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":true,"objectMode":false,"defaultEncoding":"utf8","ranOut":true,"awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"domain":{"domain":null,"_events":{},"_maxListeners":10,"members":[]},"_events":{"end":[null,null]},"_maxListeners":10,"path":".","fd":null,"flags":"r","mode":438,"autoClose":true,"destroyed":true,"closed":true},"domain":"[Circular]","domainThrown":false},"msg":"Got exception to trace:","time":"2013-11-12T20:28:14.800Z","v":0}
2013-11-12T20:28:14.805428+00:00 app[web.2]: EISDIR, read
2013-11-12T20:28:15.947380+00:0
@collin
collin / divshot.io-wercker-build.yml
Last active December 28, 2015 04:08
All this assumes the wercker scripts execute in a directory that contains a divshot.json file and the static files for your app. Would be necessary to copy the token from ~/.divshot/config/user.json
box: wercker/nodejs
# Build definition
build:
# The steps that will be executed on build
steps:
# A step that executes `npm install` command
- npm-install
# A step that executes `npm test` command
- npm-test