- Developer tools
- Mac Ports – http://www.macports.org/install.php
- If you are running Snow Leopard, install using this guide: http://guide.macports.org/#installing.macports.subversion until version 1.8 has been released.
- TextMate – http://macromates.com/
- Snow Leopard: If cmd+left & cmd+right doesn’t work (start and end of line) download “Snow Leopard Compatibility.zip” from http://ticket.macromates.com/show?ticket_id=0FDE7076
- Alternate GUI: http://jason-evers.com/projects/green-moleskine
- Neopro theme: http://github.com/hugowetterberg/Neopro.tmTheme
- Cyberduck – http://cyberduck.ch/
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
; $Id$ | |
name = Loype | |
description = Runningstuff | |
core = 6.x |
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
(function(){ | |
var tsplit = /[^\d]/, pad_time = function (time) { | |
if (time<10 && time.length<2) { | |
return '0' + time.toString(); | |
} | |
else { | |
return time; | |
} | |
}, | |
normalize_time = function (inp) { |
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 closure: initial_sw | |
google.maps.event.addListener(map, "click", function(event) { | |
if (!initial_sw) { | |
initial_sw = map.get_bounds().getSouthWest(); | |
} | |
var sw = map.get_bounds().getSouthWest(), | |
pos = new google.maps.LatLng( | |
event.latLng.lat() - (initial_sw.lat()-sw.lat()), | |
event.latLng.lng() - (initial_sw.lng()-sw.lng())); |
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
<?php | |
if (!empty($_FILES['file'])) { | |
$file = $_FILES['file']; | |
$result = $rest->post($oa->resourceUri("image"), array( | |
'title' => $formData['upload_title'], | |
'license' => array($formData['license'] => TRUE), | |
)); | |
try { | |
// Move the uploaded file so that we get a proper name |
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
/*global jQuery */ | |
(function () { | |
if (document.referrer) { | |
var reg = new RegExp("https?:\/\/([^/]+)"), | |
domain = reg.exec(window.location.href), | |
refdomain = reg.exec(document.referrer); | |
if (domain[1] === refdomain[1]) { | |
jQuery('.back-link').click(function(){ | |
if (!document.referrer.match(new RegExp("edit/?(\?.+)?$"))) { | |
window.history.go(-1); |
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
<?php | |
/** | |
* Parsing headers with code adapted from the user contributed notes at | |
* http://php.net/manual/en/function.http-parse-headers.php | |
* | |
* @author Hugo Wetterberg, Good Old | |
*/ | |
/* | |
// Sample usage |
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
sites/default/modules/rest_server: | |
ahead of origin/master by 14 commit(s) | |
sites/default/modules/services_oauth: | |
behind origin/master by 1 commit(s) | |
sites/default/modules/oauth_common: | |
ahead of origin/master by 3 commit(s) |
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
/** | |
* Access checking for comments | |
*/ | |
function _comment_resource_access($op='view', $args=array()) { | |
if (user_access('administer comments')) { | |
return TRUE; | |
} | |
if ($op=='create') { | |
$comment = (object)$args[0]; |