Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$('span').click(function(){
<?xml version="1.0"?>
<methodCall>
<methodName>llRemoteData</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>Channel</name>
<value><string>[channel uuid here]</string></value>
response = server.call('llRemoteData', 'Channel' => '[channel uuid here]', 'IntValue' => 1001, 'StringValue' => 'message to pass')
@slant
slant / gist:299650
Created February 9, 2010 20:54 — forked from retr0h/gist:98308
CONTENT_TYPES = {:html => 'text/html', :css => 'text/css', :js => 'application/javascript'}
before do
request_uri = case request.env['REQUEST_URI']
when /\.css$/ : :css
when /\.js$/ : :js
else :html
end
content_type CONTENT_TYPES[request_uri], :charset => 'utf-8'
end
iPhone SDK Development
iPad Programming
The RSpec Book
Metaprogramming Ruby
Agile Web Development with Rails
Beginning Mac Programming
Pragmatic Version Control
<img style="display: none;" src="http://two.domain.com/setcookie.php?stuff=yoink!" alt="" />
<?php setcookie("cookie_name", $_GET['stuff'], time()+60*60*24*30, "/", ".domain.com");>
def social(connections)
links = []
networks = {
:twitter => { :url => "http://twitter.com/[USERNAME]", :prefix => "@" },
:linkedin => { :url => "http://www.linkedin.com/in/[USERNAME]" },
:facebook => { :url => "http://www.facebook.com/[USERNAME]" }
}
networks.each do |network, meta|
if connections.keys.include? network
this_network = []
social({ :twitter => [ 'slant','cylenceweb' ], :facebook => 'rcross', :linkedin => 'ryanlcross' })
<span class="network">twitter</span>:
<a href="http://twitter.com/slant">@slant</a>,
<a href="http://twitter.com/cylenceweb">@cylenceweb</a> |
<span class="network">linkedin</span>:
<a href="http://www.linkedin.com/in/ryanlcross">ryanlcross</a> |
<span class="network">facebook</span>:
<a href="http://www.facebook.com/rcross">rcross</a>