Skip to content

Instantly share code, notes, and snippets.

Avatar

Johnny Sparks johnnysparks

View GitHub Profile
@johnnysparks
johnnysparks / lint.json
Last active Apr 17, 2019
NoReturnVoidRule
View lint.json
{
"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,
View 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');
View trr-objc.cfg
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
@johnnysparks
johnnysparks / twitter_list_many.json
Created Feb 26, 2014
Twitter resource list json structure
View twitter_list_many.json
[
{
"code": "fr",
"status": "production",
"name": "French"
},
{
"code": "en",
"status": "production",
"name": "English"
View twitter_retweet.json
{
"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 Feb 26, 2014
Twitter Search Result Structure
View twitter_search_res.json
{
"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 Feb 26, 2014
Twitter Media Data Structure
View twitter_media.json
{
"media": [
{
"id": 438737600342290400,
"id_str": "438737600342290432",
"indices": [
99,
121
],
"media_url": "http: //pbs.twimg.com/media/Bha1heICcAAKEIY.jpg",
View TestFlight.podspec
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
Styles for the custom radio button form.
View radio_button_styled.css
#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
Markup for custom radio buttons.
View radio_button_form.html
<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>