Skip to content

Instantly share code, notes, and snippets.

View johnnysparks's full-sized avatar

Johnny Sparks johnnysparks

View GitHub Profile
@johnnysparks
johnnysparks / lint.json
Last active April 17, 2019 18:26
NoReturnVoidRule
{
"key.elements" : [
{
"key.kind" : "source.lang.swift.structure.elem.condition_expr",
"key.length" : 13,
"key.offset" : 102
}
],
"key.kind" : "source.lang.swift.stmt.guard",
"key.length" : 83,
@johnnysparks
johnnysparks / globals.js
Created October 3, 2014 07:17
globals.js
function HeartButton(){
this.user = whi.currentUser();
this.entry = false;
}
HeartButton.prototype.renderIn = function($dom){
var $img = $dom.find('img');
this.entry = new whi.Entry();
this.entry.id = $img.data('entry');
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
@johnnysparks
johnnysparks / twitter_list_many.json
Created February 26, 2014 19:25
Twitter resource list json structure
[
{
"code": "fr",
"status": "production",
"name": "French"
},
{
"code": "en",
"status": "production",
"name": "English"
@johnnysparks
johnnysparks / twitter_retweet.json
Created February 26, 2014 19:24
Twitter Create Resource
{
"created_at": "Wed Feb 26 19:22:38 +0000 2014",
"id": 438756007276466200,
"id_str": "438756007276466176",
"text": "RT @lukeoneil47: Each California county's most distinctive soon-to-be-endangered crop @MotherJones http://t.co/UjYOcJgoDK",
"source": "<a href="https://apigee.com/console/twitter" rel="nofollow">Apigee's API Console</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
@johnnysparks
johnnysparks / twitter_search_res.json
Created February 26, 2014 19:17
Twitter Search Result Structure
{
"statuses": [
{
"metadata": {
"result_type": "recent",
"iso_language_code": "en"
},
"created_at": "Wed Feb 26 19:12:29 +0000 2014",
"id": 438753453880250400,
"id_str": "438753453880250368",
@johnnysparks
johnnysparks / twitter_media.json
Created February 26, 2014 18:18
Twitter Media Data Structure
{
"media": [
{
"id": 438737600342290400,
"id_str": "438737600342290432",
"indices": [
99,
121
],
"media_url": "http: //pbs.twimg.com/media/Bha1heICcAAKEIY.jpg",
Pod::Spec.new do |s|
s.name = 'TestFlightSDK'
s.version = '1.1b3'
s.license = 'Commercial'
s.summary = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
s.homepage = 'http://www.testflightapp.com'
s.author = { 'TestFlight' => 'support@testflightapp.com' }
s.source = { :http => 'https://d3fqheiq7nlyrx.cloudfront.net/sdk-downloads/TestFlightSDK1.1beta3.zip' }
s.description = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
s.platform = :ios
@johnnysparks
johnnysparks / radio_button_styled.css
Created May 1, 2013 21:43
Styles for the custom radio button form.
#styled input {
display: none;
}
#styled label {
display: inline-block;
}
#styled label p{
text-align: center;
}
#styled input + label > img{
@johnnysparks
johnnysparks / radio_button_form.html
Created May 1, 2013 21:34
Markup for custom radio buttons.
<form id="styled">
<input type="radio" name="emotion" id="happy" />
<label for="happy">
<img alt="happy" src="http://i.imgur.com/zm8fp.png" />
<p>happy</p>
</label>
<input type="radio" name="emotion" id="sad" />
<label for="sad">
<img alt="sad" src="http://i.imgur.com/sKhy9.png" />
<p>sad</p>