Skip to content

Instantly share code, notes, and snippets.

View bryanwoods's full-sized avatar
💭
Replacing Security Deposits

Bryan Woods bryanwoods

💭
Replacing Security Deposits
View GitHub Profile
system "django-admin.py startproject mysite"
settings = (
"DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
system "django-admin.py startproject mysite"
settings = (
"DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
system "django-admin.py startproject mysite"
settings = (
"DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
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'
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
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:
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;
<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;
});
});
!!!
%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(){