$ gist 100434 intelligent-backlink
Checks out the gist 100434 in the folder intelligent-backlink
If someone has forked your repo you can add them as remote when you're inside the gist dir like this:
$ gist 103116 pelle
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) |
<?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 |
/*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); |
<?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 |
// 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())); |
(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) { |
; $Id$ | |
name = Loype | |
description = Runningstuff | |
core = 6.x |
<?php | |
// Add the css file as you would have added a normal | |
// css file in template.php, but pass the path | |
// through cssdry_stylesheet(). | |
if (module_exists('cssdry')) { | |
drupal_add_css(cssdry_stylesheet(drupal_get_path('theme', 'a_theme') .'/css/style.css'), 'theme'); | |
} |