Skip to content

Instantly share code, notes, and snippets.

View ColeTownsend's full-sized avatar

Cole Townsend ColeTownsend

View GitHub Profile
@ColeTownsend
ColeTownsend / react.log
Created October 20, 2015 02:20
React Error Log
[Error] Warning: Quiz(...): No `render` method found on the returned component instance: you may have forgotten to define `render`, returned null/false from a stateless component, or tried to render an element whose type is a function that isn't a React component.
warning
mountComponent
ReactCompositeComponent_mountComponent
mountComponent
mountChildren
_createContentMarkup
mountComponent
mountComponent
mountComponent
import Foundation
let newSnow = 15
let currentWeatherType = "snow"
let temp = 32
enum NewSnowAmounts: Int {
case None, Little, Alot
}
@ColeTownsend
ColeTownsend / dribbble-card.jsx
Last active November 4, 2015 18:53
Latest Dribbble Shot (React)
var UserShot = React.createClass({
getInitialState: function() {
return {
username:'',
shots_url: ''
};
},
componentDidMount: function() {
@ColeTownsend
ColeTownsend / dabblet.css
Created January 4, 2013 18:50 — forked from anonymous/dabblet.css
Vertical Slider
/**
* Vertical Slider
*/
body {
background: #bababa;
min-width: 100%;
min-height: 100%;
}
.slider {
<a href="https://twitter.com/share" class="twitter-share-button tweet" data-text="Formic Co - We're making forms dead simple" data-via="FormicCo" data-hashtags="DeadSimpleForms">
<span class="count">0</span>
<span class="message">Tweet</span>
</a>
@ColeTownsend
ColeTownsend / index.html
Created March 24, 2013 04:27
A CodePen by Cole Townsend.
<div class="container">
<a href="https://twitter.com/share" class="twitter-share-button tweet" data-text="{PostTitle} - {PostSummary}" data-via="{Text:Twitter Username}" data-hashtags="#{BlogName}">
<span class="count">0</span>
<span class="message">Tweet</span>
</a>
</div>
$(function() {
var url = '/rss';
var $list = $('#recent-posts');
$.ajax({
url: url,
type: 'GET',
dataType: 'xml',
success: function(data) {
var $items = $(data).find('item');
$items.each( function() {
/*
This widget shows Recent Posts on your Tumblr blog.
Its dependency is jQuery.
Usage:
1) Add html:
<div id="recent-posts"></div>
2) Add code into the <head>:
@ColeTownsend
ColeTownsend / Dot-Copy.markdown
Created October 7, 2013 01:11
A Pen by Cole Townsend.

alfred
fontprep
mongodb atext
framer-studio
paparazzi atom
gitx
screenhero goofy