This file contains 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
<?php | |
class Foo | |
{ | |
public static $my_static = 'foo'; | |
} | |
print Foo::$my_static . "\n"; |
This file contains 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
<?php | |
class thing | |
{ | |
function bar() | |
{ | |
return array(1, 2, 3); | |
} | |
} |
This file contains 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
// From: http://core.trac.wordpress.org/browser/trunk/wp-content/themes/twentyten/loop.php#L69 | |
<div class="entry-content"> | |
<?php if ( post_password_required() ) : ?> | |
<?php the_content(); ?> | |
<?php else : ?> | |
<?php | |
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); | |
if ( $images ) : | |
$total_images = count( $images ); |
This file contains 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
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
# Instructions: | |
# Go to TextMate > Preferences... | |
# Click Advanced | |
# Select Folder References | |
# Replace the following: | |
# File Pattern |
This file contains 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 datetime | |
now = datetime.datetime.now() | |
then = datetime.datetime(month=11, year=2009, day=9) | |
print now - then | |
# 808 days, 19:06:17.113214 |
This file contains 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
Hi Friend, | |
Have a good day ! | |
This is seamless and welded stainless steel pipes at here ! | |
Mainly supply 300 serial austenite pipes. | |
Process method: annealing, pickling |
This file contains 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>Next first Tuesday of the month</title> | |
</head> | |
<body> | |
<div id="nextMeetupTime"></div> | |
<script> |
This file contains 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
// !!! BINARY PROPERTY LIST WARNING !!! | |
// | |
// The pretty-printed property list below has been created | |
// from a binary version on disk and should not be saved as | |
// the ASCII format is a subset of the binary representation! | |
// |
This file contains 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
[...]⚡ brew install freetype | |
Warning: You have not agreed to the Xcode license. | |
Builds will fail! Agree to the license by opening Xcode.app or running: | |
xcodebuild -license |
This file contains 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
iPad | |
iPad 2 | |
iPad (3rd generation) | |
iPad (4th generation) | |
iPad mini | |
iPad mini with Retina Display (which is now called iPad mini 2) | |
iPad Air | |
iPad Air 2 | |
iPad mini 3 |
OlderNewer