This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system "django-admin.py startproject mysite" | |
settings = ( | |
"DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
) | |
MANAGERS = ADMINS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system "django-admin.py startproject mysite" | |
settings = ( | |
"DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
) | |
MANAGERS = ADMINS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system "django-admin.py startproject mysite" | |
settings = ( | |
"DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
) | |
MANAGERS = ADMINS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system "gem sources -a http://gems.github.com" | |
required_gems = %w{ pauldix-feedzirra prawn } | |
required_gems.each { |required_gem| system "sudo gem install #{required_gem} --no-ri --no-rdoc" } | |
require 'rubygems' | |
require 'feedzirra' | |
require 'prawn' | |
require 'net/ftp' | |
ftp_address = 'snuggietonight.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'find' | |
puts "What directory do you want to search? " | |
directory = gets.chomp | |
puts | |
outfile = File.open("out.txt", "w") | |
Find.find(directory) do |filename| | |
filename.each do |f| | |
next unless f.to_s.length > 30 | |
outfile.write(f+"\n") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib,md5,webbrowser,time | |
from xml.dom.minidom import parseString | |
apikey="a351dd860ca2e0799016ff059efad2a8" | |
secret="b3ddcf104303a0ffe62879e98e6bb44a" | |
FacebookSecureURL = "https://api.facebook.com/restserver.php" | |
def getsinglevalue(node,tag): | |
n1=node.getElementsByTagName(tag) | |
if len(n1)>0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background-color: #fff; color: #333; } | |
body, p, ol, ul, td { | |
font-family: verdana, arial, helvetica, sans-serif; | |
font-size: 13px; | |
line-height: 18px; | |
} | |
pre { | |
background-color: #eee; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
$(document).ready(function() { | |
$("#sister_site_links").hide(); | |
$(".sister_sites").click(function() { | |
$("#sister_site_links").slideToggle("slow"); | |
return false; | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='sister_sites'> | |
<p> | |
<a href=''>SISTER SITES</a> | |
</p> | |
</div> | |
<div id='sister_site_links'> | |
<a href='http://google.com'>Google</a> | |
<br /> | |
<a href='http://yahoo.com'>Yahoo</a> | |
<br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%title Pulldown test | |
%script{:src=>"http://code.jquery.com/jquery-latest.js"} | |
:javascript | |
$(document).ready(function(){ | |
$("select").change(function(){ | |
var str = ""; | |
$("select option:selected").each(function(){ |