This file contains hidden or 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<title>Das style-Element</title> | |
<style type="text/css"> | |
p { position: absolute; top: 0; left:0; padding:0px; margin: 0px; color:red; font-family:Helvetica,sans-serif; } | |
body { margin: 0px; padding: 0px;} | |
</style> | |
</head> | |
<body> |
This file contains hidden or 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
// ========================================================================== | |
// Project: ImageSearch.AwesomeSplitView | |
// Copyright: ©2010 My Company, Inc. | |
// ========================================================================== | |
/*globals ImageSearch */ | |
/** @class | |
(Document Your View Here) |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Vapor.js UTF-8 Art!</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Johannes Fahrenkrug"> | |
<!-- Date: 2010-09-26 --> |
This file contains hidden or 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
<!doctype html> | |
<html><head> | |
<title>Woof! The ASCII Dog</title> | |
<meta charset="utf-8"> | |
</head><body style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> | |
<div style="width:400;height:400;font-family:monospace;font-size:xx-small;letter-spacing:-2px;background:#FFF;line-height:0px" id="r"><span style="color:rgb(142,162,171);background:rgb(142,162,171);">ਜ</span><span style="color:rgb(142,162,171);background:rgb(142,162,171);">ਜ</span><span style="color:rgb(142,162,171);background:rgb(142,162,171);">ਜ</span><span style="color:rgb(145,165,174);background:rgb(145,165,174);">ਜ</span><span style="color:rgb(145,165,174);background:rgb(145,165,174);">ਜ</span><span style="color:rgb(149,169,176);background:rgb(149,169,176);">ਜ</span><span style="color:rgb(136,153,160);background:rgb(136,153,160);">ਜ</span><span style="color:rgb(148,165,172);background:rgb(148,165,172);">ਜ</span><span style="color:rgb(146,163,170);background:rgb(146,163,170);">ਜ</span><span style="color:rgb(149,166, |
This file contains hidden or 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
javascript:var el = $$('p:nth-child(10)')[0]; var txt = el.innerHTML.replace('scenarios, environments, and conditions', 'scenarios, environments, and <a href="http://www.gourmethausstaudt.com/">bars in Redwood City</a>'); el.update(txt); |
This file contains hidden or 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
-(void)drawInContext:(CGContextRef)myContext { | |
CGContextSaveGState(myContext);// 6 | |
CGFloat potentialFlip = 1.0; | |
CGFloat shadowBlur = 4; | |
CGFloat shadowOffset = 4; | |
CGFloat shadowOffsetNeg = shadowOffset * -1.0; | |
CGFloat x = self.bounds.origin.x + shadowOffset; | |
CGFloat y = self.bounds.origin.y + shadowOffset; | |
CGFloat wd = self.bounds.size.width - (shadowOffset * 2); |
This file contains hidden or 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
# in 2010 by Johannes Fahrenkrug, http://springenwerk.com | |
# See you at WWDC! | |
require 'rubygems' | |
require 'open-uri' | |
class WWDC2010 | |
def self.announced? | |
title = open('http://developer.apple.com/wwdc') do |f| | |
f.detect { |line| line =~ /<title>/ } |
This file contains hidden or 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
- (void)scaleImage:(float)aScaleFactor | |
{ | |
//see: http://maettig.com/code/css/css-transform.html | |
var styleObject = [imageView imageLayer]._DOMContentsElement.style; | |
if (CPBrowserIsEngine(CPWebKitBrowserEngine) && (typeof styleObject.WebkitTransform != "undefined")) | |
{ | |
styleObject.WebkitTransform = "scale(" + aScaleFactor + ")"; | |
[[imageView imageLayer] setNeedsDisplay]; | |
} |
This file contains hidden or 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
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/oigdrgh286E&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oigdrgh286E&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object> |
This file contains hidden or 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 <Foundation/CPObject.j> | |
@import <MapKit/MKMapView.j> | |
@import <MapKit/MKMarker.j> | |
@import <MapKit/MKLocation.j> | |
@implementation AppController : CPObject | |
{ | |
CPWindow theWindow; //this "outlet" is connected automatically by the Cib |