Skip to content

Instantly share code, notes, and snippets.

@tpryan
tpryan / gist:1358362
Created November 11, 2011 16:02
OldSemanticContent
</div>
</div>
</div>
<div id=“footer”>
</div>
</body>
@tpryan
tpryan / gist:1358370
Created November 11, 2011 16:04
New Semantics Content
</div>
</article>
</div>
<footer>
</footer>
</body>
#! /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 / 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;
@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 / 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 / css.css
Created April 4, 2012 16:11
Page Slide Without a Framework
body{
position: relative;
-webkit-transition: left .2s ease;
}
@tpryan
tpryan / css.css
Created April 12, 2012 21:55
CSS Regions Example
#content {
-webkit-flow: 'foo';
-webkit-flow-into: foo;
}
.region {
background-color: white;
-webkit-box-sizing: border-box;
content: -webkit-from-flow('foo');
-webkit-flow-from: foo;
@tpryan
tpryan / build1.xml
Created May 23, 2012 16:09
Ant notification with Say
<target name="notifyWebDev" description="Plays an audio file">
<echo message="Playing Audio Alert"/>
<exec executable='say' failonerror='true'>
<arg value='Development website is ready'/>
</exec>
</target>
@tpryan
tpryan / main.js
Created July 11, 2012 00:27
Sample of Menu removing for Brackets.
define(function (require, exports, module) {
'use strict';
var CommandManager = brackets.getModule("command/CommandManager"),
Menus = brackets.getModule("command/Menus");
// Function to run when the menu item is clicked
function handleHelloWorld() {
menu.removeMenuItem(MY_COMMAND_ID);