Skip to content

Instantly share code, notes, and snippets.

@tpryan
tpryan / css.css
Created April 4, 2012 16:11
Page Slide Without a Framework
body{
position: relative;
-webkit-transition: left .2s ease;
}
@tpryan
tpryan / errorwithoutvariables.css
Created March 20, 2012 15:21
CSS Variables Draft Comments
p { background-color: red; }
p { background-color: "Behold I am not a valid color at ALL!!!!" }
@tpryan
tpryan / ribbon.html
Last active April 11, 2024 00:21
Github Ribbon in CSS.
<!--
Copyright (c) 2012 Terrence Ryan
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:
@tpryan
tpryan / circles.css
Created January 23, 2012 17:32
Venn - HTML
#venn div{
height: 360px;
width: 360px;
border-radius:180px;
-khtml-border-radius:180px;
-moz-border-radius:180px;
-webkit-border-radius:180px;
border: 1px solid #000;
display: table;
float: left;
#! /bin/sh
project="[phonegap projectnumber]";
username="[phonegap username]";
password="[phonegap password]";
appPath="[path to www folder];
projectPath="[path where you want the apk file];
##commit changes
@tpryan
tpryan / gist:1358370
Created November 11, 2011 16:04
New Semantics Content
</div>
</article>
</div>
<footer>
</footer>
</body>
@tpryan
tpryan / gist:1358362
Created November 11, 2011 16:02
OldSemanticContent
</div>
</div>
</div>
<div id=“footer”>
</div>
</body>
@tpryan
tpryan / example.as
Created September 2, 2011 14:57
Haversine Formula in ActionScript
private const RADIUS_OF_EARTH_IN_MILES:int = 3963;
private const RADIUS_OF_EARTH_IN_FEET:int =20925525;
private const RADIUS_OF_EARTH_IN_KM:int =6378;
private const RADIUS_OF_EARTH_IN_M:int =6378000;
private function distanceBetweenCoordinates(lat1:Number,lon1:Number,
lat2:Number,lon2:Number,
units:String="miles"):Number{
var R:int = RADIUS_OF_EARTH_IN_MILES;
@tpryan
tpryan / example.as
Created September 2, 2011 14:56
Haversine Formula in ActionScript
private const RADIUS_OF_EARTH_IN_MILES:int = 3963;
private const RADIUS_OF_EARTH_IN_FEET:int =20925525;
private const RADIUS_OF_EARTH_IN_KM:int =6378;
private const RADIUS_OF_EARTH_IN_M:int =6378000;
private function distanceBetweenCoordinates(lat1:Number,lon1:Number,
lat2:Number,lon2:Number,
units:String="miles"):Number{
var R:int = RADIUS_OF_EARTH_IN_MILES;
@tpryan
tpryan / TimedClose.mxml
Created June 28, 2011 18:31
Mobile Application that closes itself 30 seconds after it loses focus.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
creationComplete="init(event)"
xmlns:s="library://ns.adobe.com/flex/spark" >
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
public var closeTimer:Timer;