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 django.db import models | |
class Mail(models.Model): | |
subject = models.CharField(max_length=255) | |
message = models.TextField() | |
sender = models.EmailField() | |
created = models.DateTimeField(auto_now_add=True) |
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 <Foundation/Foundation.h> | |
@class SPSprite; | |
@class SPMovieClip; | |
@interface RCAnimatedSprite : SPSprite <SPAnimatable> { | |
NSMutableDictionary *mAnimations; | |
SPMovieClip *mCurrentMovieClip; | |
NSString *mCurrentAnimation; | |
SPJuggler *mJuggler; |
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 | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
function imagecache_preset_actions($preset, $reset = FALSE) { | |
$actions_cache = array(); | |
$result = db_query('SELECT * FROM {imagecache_action} where presetid = '.$preset['presetid'].' order by weight' ); | |
foreach ($result as $row ) { |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function post() { | |
FB.getLoginStatus(function(response) { | |
FB.ui({ | |
method: 'feed', | |
name: 'Enter name here', // configurable | |
caption: 'Caption here', // configurable | |
description: 'Description', // configurable |
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 TestRegisterForm extends PHPUnit_Extensions_Selenium2TestCase { | |
public function setUp() { | |
$this->setHost('localhost'); | |
$this->setPort(4444); | |
$this->setBrowser('firefox'); | |
$this->setBrowserUrl('http://localhost/'); | |
} |
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
#!/bin/sh | |
#================================================================================ | |
# virtualhost.sh | |
# | |
# A fancy little script to setup a new virtualhost in Mac OS X. | |
# | |
# If you want to delete a virtualhost that you've created, you need to: | |
# | |
# sudo ./virtualhost.sh --delete <site> | |
# |
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
application = | |
{ | |
content = | |
{ | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["-2x"] = 1.5, |
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
function getPointOnDisk(radius) { | |
var a = Math.random(), | |
b = Math.random(); | |
if (b < a) { | |
c = b; | |
b = a; | |
a = c; | |
} | |
OlderNewer