Skip to content

Instantly share code, notes, and snippets.

View technosophos's full-sized avatar

Matt Butcher technosophos

View GitHub Profile
@briantully
briantully / common.inc
Created November 11, 2010 16:48
proposed patch to common.inc for timetamp to css/js
Index: common.inc
===================================================================
--- common.inc (revision 12104)
+++ common.inc (working copy)
@@ -1855,6 +1855,7 @@
// flush, forcing browsers to load a new copy of the files, as the
// URL changed.
$query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
+ $timestamp = variable_get('css_js_timestamp', '0');
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@cyrilmottier
cyrilmottier / LicensesActivity.java
Created November 21, 2012 11:10
"Open source licenses" screen
package com.cyrilmottier.android.citybikes;
import android.os.Bundle;
import com.cyrilmottier.android.avelov.R;
import com.cyrilmottier.android.citybikes.app.BaseActivity;
public class LicensesActivity extends BaseActivity {
private WebView mWebView;
@bangpound
bangpound / gist:6117282
Created July 30, 2013 21:43
Render Drupal fields inside the rendered markup of other Drupal fields.
<?php
/**
* Implement hook_file_view_alter().
*
* @param type $build
* @param type $entity_type
*/
function MODULE_file_view_alter(&$build, $entity_type) {
$qp = QueryPath::withHTML($build['field_caption']['0']['#markup']);
@Pallinder
Pallinder / .bash_profile
Created September 3, 2013 17:29
Getting golang + mac os x + gdb to play nicely
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb'