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
@@ -820,72 +905,19 @@ | |
*/ | |
public function rearrangeSteps($moves) { | |
- $db = GuideDB::db(); | |
- $guideid = $this->guideid; | |
- $langid = $this->langid; | |
- | |
- // Get the stepids that correspond with the orderbys, so that we can use | |
- // something unique to reference steps by. | |
- $q_stepids = <<<EOT |
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 | |
/** | |
* Compares all running instances to all reserved instances and reports | |
* utilization. Useful for making sure you're not wasting money. :P | |
* | |
* Requires EC2_CERT and EC2_PRIVATE_KEY environment variables to be set. | |
* | |
* @author Dave | |
* @date 2010-10-05 | |
*/ |
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
{ | |
"themes": [ | |
{ | |
"themeid": 3, | |
"start": 1298620800, | |
"end": 1299225600, | |
"title": "Cupcakes", | |
"total": 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
PhotoChallenge[4953:607] { | |
"ad_text" = "Sponsored by ProCamera"; | |
"ad_type" = 1; | |
"img_url" = "http://s3.amazonaws.com/adrollo-custom-images/2bf0880758a7f8f1ef7675ec371c9ad2.jpg"; | |
"img_url_480x75" = ""; | |
"img_url_640x100" = "http://s3.amazonaws.com/adrollo-custom-images/6114ea24512c8a654ba48a076be20902.jpg"; | |
"launch_type" = 2; | |
"link_type" = 1; | |
"metrics_url" = "xxx"; | |
"metrics_url2" = ""; |
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 | |
require 'lib.php'; | |
$_REQUEST['zip'] = $_REQUEST['Digits']; | |
$info = get_info(); | |
extract($info); | |
$city = preg_replace("/, .*$/", "", $city); |
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 | |
function get_user($userid) { | |
global $db, $m, $photo_urlbase; | |
$key = "photochallenge_user_{$userid}"; | |
if (!($user = $m->get($key))) { | |
$query = <<<EOT | |
SELECT `userid`, `name`, `avatar`, `location`, `facebook`, `twitter`, `flickr`, `pro` | |
FROM `users` |
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 | |
$cookie = "<insert cookies>"; | |
$token = null; | |
do { | |
$users = get_users(); | |
foreach ($users as $user) | |
unfollow($user); | |
} while (count($users)); |
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
var tumblrAutoPager = { | |
url: "http://proto.jp/", | |
ver: "0.1.7", | |
rF: true, | |
gP: {}, | |
pp: null, | |
ppId: "", | |
LN: location.hostname, | |
init: function () { | |
if ($("autopagerize_icon") || navigator.userAgent.indexOf('iPhone') != -1) return; |
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 | |
$api = new DoodleAPI(); | |
$api->createPoll(array( | |
'title' => 'Test Poll', | |
'description' => 'Test Description', | |
'fromName' => 'David Patierno', | |
'fromEmail' => '[email protected]', | |
'dates' => array( |
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><?=Page::getTitle()?></title> | |
<meta charset="utf-8"> | |
<link href="/style.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<? include $template; ?> |
OlderNewer