Skip to content

Instantly share code, notes, and snippets.

View nobodyiscertain's full-sized avatar
😬
This is how I smile

Jamie Wagner nobodyiscertain

😬
This is how I smile
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nobodyiscertain on github.
  • I am nobodyiscertain (https://keybase.io/nobodyiscertain) on keybase.
  • I have a public key whose fingerprint is 3690 474B 7899 051D 2AA1 9938 1892 42C5 3D1B 1A69

To claim this, I am signing this object:

@nobodyiscertain
nobodyiscertain / gist:4a04e97917c91ddc2fca
Created November 11, 2014 04:40
CATransaction Completion Block
def logo_view_was_tapped
CATransaction.begin
timing = CAMediaTimingFunction.send('functionWithControlPoints::::', 0.28, -0.3, 0.12, 1.0)
rotateAnimation = CABasicAnimation.animationWithKeyPath("transform.rotation")
rotateAnimation.toValue = Math::PI / 180 * 720
rotateAnimation.duration = 2.0
rotateAnimation.timingFunction = timing
CATransaction.setCompletionBlock lambda {
@nobodyiscertain
nobodyiscertain / property.yaml
Created August 22, 2014 19:10
Statamic Content Type Example
title: Property
fields:
slug:
hide: true
title:
required: true
type: text
property-details:
type: section
@nobodyiscertain
nobodyiscertain / about.liquid
Created August 22, 2014 16:47
LocomotiveCMS Template Example
---
title: About Heather
listed: true
published: true
position: 2
---
{% extends parent %}
{% block main %}
@nobodyiscertain
nobodyiscertain / example.conf
Last active August 29, 2015 14:05
nginx Config for Statamic 1.8.2
server {
server_name example.com;
root /var/www/example.com/public;
index index.php;
access_log /var/www/example.com/logs/access.log;
error_log /var/www/example.com/logs/error.log;
add_header "X-Built-With" "Statamic";
@nobodyiscertain
nobodyiscertain / properties.yml
Last active August 29, 2015 14:05
LocomotiveCMS Content Type Example
# Public name of this content type
name: Properties
# TODO: explain
slug: properties
# Explanation for the backoffice
description: A property to list
# Default field (e.g title)
@nobodyiscertain
nobodyiscertain / fix_fieldtype_file.patch
Created August 13, 2014 04:38
Fix for Fieldtype_File for Statamic 1.8.2
From 4e2941f885f07e282b07df0725294e4de6ede311 Mon Sep 17 00:00:00 2001
From: James Wagner <james@thisbythem.com>
Date: Tue, 12 Aug 2014 21:37:04 -0700
Subject: [PATCH] Patch for Fieldtype_File
---
_app/core/bundles/file/ft.file.php | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/_app/core/bundles/file/ft.file.php b/_app/core/bundles/file/ft.file.php
@nobodyiscertain
nobodyiscertain / app.rb
Last active December 19, 2015 07:49
An example of how to consume the JSON data from your Sinatra Twitter app. This is dependent upon jQuery. *Untested*
get '/tweets.json' do
if request.referrer == "http://example.com/blog/"
jsonp @@twitter_client.home_timeline.map(&:attrs).first(5)
else
status 401
end
end