Skip to content

Instantly share code, notes, and snippets.

View jasonmelgoza's full-sized avatar
🏠
Working from home

Jason Melgoza jasonmelgoza

🏠
Working from home
View GitHub Profile
@jasonmelgoza
jasonmelgoza / new-base.html
Created August 24, 2009 18:28
new base html for capo with (super cool) grid support
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<title>Page Title</title>
</head>
<html>
<body>
<div class="row">
@jasonmelgoza
jasonmelgoza / gist:184084
Created September 9, 2009 21:11
flash player setup
<p><script type="text/javascript" src="http://www.npr.org/templates/javascript/swfobject.js"></script></p>
<div id="hubble">
<p><img src="http://media.npr.org/assets/news/2009/09/09/picshow_wide.jpg?s=3" alt="[Slideshow: Picture Show]" /></p>
<p><strong>This slideshow requires version 9 or higher of the Adobe Flash Player.</strong> <a href="http://www.adobe.com/products/flashplayer/" target="_blank">Get the latest Flash Player.</a></p>
<p>Description of slideshow goes here.</p>
</div>
<script type="text/javascript">
//Creating the textfield object and naming it "myTextField"
var myTextField:TextField = new TextField();
//Here we add the new textfield instance to the stage with addchild()
addChild(myTextField);
//Here we define some properties for our text field, starting with giving it some text to contain.
//A width, x and y coordinates.
myTextField.text = "some text here!";
myTextField.width = 250;
@jasonmelgoza
jasonmelgoza / gallery.as
Created January 4, 2010 18:40
Small Flash (AS3) Gallery driven with XML
body.search div#mi_content_container form#searchBar { display: none; }
body.search div#mi_content_container div#nav { clear: both; display: block; float: none; }
body.search div#mi_content_container div.result { border-bottom: 2px solid #FFFFFF; margin: 15px 0; padding-bottom: 10px; }
body.search div#mi_content_container div.result h2 { font-size: 16px; line-height: 18px; }
body.search div#mi_content_container { width: 960px; }
body.search div#mi_content { width: 960px; }
body.search div#wrap { float: left; width: 625px; }
body.search div#mi_sidebar { float: left; padding: 10px; width: 300px; }
body.search div.rectangleAd { background: none repeat scroll 0 0 #999999; height: 100px; margin: 0 0 15px; width: 300px; }
body.search div#mi_content_container div.result span.resultType { font-size: 12px; color: #555; }
Rails CMS alternatives
======================
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then.
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
# Header 1 #
## Header 2 ##
### Header 3 ### (Hashes on right are optional)
#### Header 4 ####
##### Header 5 #####
## Markdown plus h2 with a custom ID ## {#id-goes-here}
[Link back to H2](#id-goes-here)
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
-webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.03, rgb(255,255,255)),
color-stop(0.5, rgb(106,150,177)),
color-stop(0.77, rgb(76,103,133)),
color-stop(0.98, rgb(30,45,66))
)
-moz-linear-gradient(
#!/bin/sh
# Original script by Jason Tan: http://solutions.treypiepmeier.com/2009/03/03/virtual-hosts-on-osx-leopard/#comment-41787
DIR=/Users/$SUDO_USER/Sites/$1
if [[ ! -d $DIR && `id -u` -eq 0 ]]; then
echo ""
echo "Downloading site-template repository ..."
sudo -u $SUDO_USER git clone --quiet git://github.com/trey/site-template.git $DIR
cd $DIR
@jasonmelgoza
jasonmelgoza / style.css
Created April 15, 2010 00:07
test style
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
q:before,q:after{content:'';}