Skip to content

Instantly share code, notes, and snippets.

View ethnt's full-sized avatar
🐢

Ethan Turkeltaub ethnt

🐢
View GitHub Profile
<?xml version="1.0" ?>
<remote>
<site id="1">
<name>Example Site</name>
<url>http://example.com</url>
<ftp>
<host>example.com</host>
<username>someuser</username>
<password>password</password>
</ftp>
<?php
$xml = simplexml_load_file('registry.xml');
$sites = $xml->xpath('/remote/site');
foreach($sites as $site){
print($site->name);
}
?>
.child_block{
position: static;
}
.child_block #sub_block{
position: relative;
top: -100px;
}
@ethnt
ethnt / error1
Created December 30, 2009 00:18
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sqlite_adapter (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters.rb:123:in `load_adapter'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters.rb:101:in `adapter_class'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters.rb:13:in `new'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core.rb:175:in `setup'
from finito.rb:19
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sqlite_adapter (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters.rb:123:in `load_adapter'
<?php
/* Finito
* A social lifestreaming application.
* Revision 0.1.1
*
* system/includes/models.php
*/
# This file prepares all the database interaction for the views (/system/views/.).
<?php
$list = mysql_query('SELECT feedURI FROM networks');
for($i in $list){
echo $list[1];
}
<?php
/* Finito
* A social lifestreaming application.
* Revision 0.1.1
*
* system/includes/models.php
*/
# This file prepares all the database interaction for the views (/system/views/.).
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 01, 2010 at 02:43 PM
-- Server version: 5.1.37
-- PHP Version: 5.2.10-2ubuntu6.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
class Hello
def wave
puts "Hello *waves*"
end
end
go = new Hello.wave