Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
@maddox
maddox / gist:414
Created July 21, 2008 22:55
Mustache'd
....................
....................
....................
....................
....................
....................
....................
.............:~I7777777777+. .,I7777777777I:.
.............778OOOOOOOOO88= ..IOOOOOOOOOOOO++
.............77OOOOOOOOOOOOO,, ~=8OOOOOOOOOOO8++
deployer@tappit:/home/dev/apps/newzcache$ nmap home.claudenix.com -p 1480
Starting Nmap 4.20 ( http://insecure.org ) at 2008-07-27 05:17 UTC
Warning: Hostname home.claudenix.com resolves to 8 IPs. Using 68.142.212.117.
Interesting ports on p10w1.geo.mud.yahoo.com (68.142.212.117):
PORT STATE SERVICE
1480/tcp filtered pacerforum
Nmap finished: 1 IP address (1 host up) scanned in 10.349 seconds
deployer@tappit:/home/dev/apps/newzcache$ nmap home.claudenix.com -p 80
/* ========================================================================
Flip
======================================================================== */
.dashcode-transition-flip-container {
-webkit-perspective: 800; /* subviews should have the same perspective during flip */
-webkit-animation-name: "dashcode-transition-flip-container";
}
/* This works great for ease-in-out but not for other timing. */
@-webkit-keyframes dashcode-transition-flip-container {
## php
function remove_item($item_id){
foreach ($this->items as $index => $item) {
if ($item->id == $item_id){
unset($this->items[$index]);
}
}
}
ar = [1, 4, 3, 10]
puts ar.inject(0) {|i, count| count += i }
=> 18
## php
function number_of_items(){
$count = 0;
foreach ($this->queries as $query) {
$count += sizeof($query->items);
}
return $count;
}
## php
function number_of_items(){
$count = 0;
foreach ($this->queries as $query) {
$count += sizeof($query->items);
}
return $count;
}
~/media/movies/downloading
~/media/movies/movies
~/media/tv/downloading
~/media/tv/tv
~/media/tv/full seasons
~/media/tv/full seasons/the office/season 2/1x02.avi
# index
@downloads = get_downloads
# PYROT AND NEWZBIN STUFF
def get_pyrot
@pyrot = Pyrot.new(:url => current_user.pyrot_url, :path => '/xmlrpc', :port => current_user.pyrot_port)
end
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"MyIdentifier";
TweetCell *cell = (TweetCell *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if (cell == nil) {
cell = [[[TweetCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
}
// SummizerAppDelegate *appDelegate = (SummizerAppDelegate *)[[UIApplication sharedApplication] delegate];