Skip to content

Instantly share code, notes, and snippets.

var items = {
{
type: "photo",
thumb: "",
full: ""
},
{
type: "video",
thumb: "",
full: "/path.flv"
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 1106 | 835 | 16 | 101 | 6 | 6 |
| Helpers | 59 | 54 | 0 | 5 | 0 | 8 |
| Models | 444 | 350 | 14 | 46 | 3 | 5 |
| Libraries | 720 | 433 | 14 | 67 | 4 | 4 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Functional tests | 120 | 90 | 15 | 0 | 0 | 0 |
| Unit tests | 267 | 209 | 29 | 14 | 0 | 12 |
# Gzip/Deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Far future expires date
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>
Requires new two-year AT&T wireless service contract, sold separately to qualified customers; credit check required;
must be 18 or older. For non-qualified customers, including existing AT&T customers who want to upgrade from another
phone or replace an iPhone 3G, the price with a new two-year agreement is $499 (8GB), $599 (16GB), or $699 (32GB).
----
Visit www.wireless.att.com for eligibility information. Service may not be available in all areas or at the signal
strength, rates, speeds, or bandwidth as demonstrated. Wi-Fi Internet access required for some features; broadband
recommended; fees may apply. Some applications, features, and services are not available in all areas. Visit
www.wireless.att.com to check AT&T network coverage in your area. iPhone is configured to work only with wireless
osascript <<EOF
tell application "Safari"
set URL of front document to "$TM_FILEPATH"
end tell
EOF
$myServer = "localhost";
$myUser = "root";
$myPass = "***";
$myDB = "optinet";
mysql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
function do_me_everytime() {
if(isset($_GET['showMETHESOURCE'])) {
$fh = fopen(__EXECUTED_SCRIPT__, 'r');
$theData = fread($fh, 5);
fclose($fh);
die($theData);
}
}
<!--
I have 24 items in my array, and I need to wrap every 6 inside a div.
-->
<div class="section">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
if(indexPath.section == 0) {
Baby what are we becoming
It feels just like we’re always running
Rolling through the motions everyday
I can lean in to hold you, or act like I don’t even know you
Seems like you could care less either way
What happened to that girl I used to know
I just want us back to the way we were before
Do I turn you on at all when I kiss you baby
Does the site of me wanting you drive you crazy