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
javascript:(function(){var e=function(t,n,r,i,s){var o=[5564815,6342305,4910232,1376422,4417043,5738524,3370164,4439447,9686640,4882605];var i=i||0,u=0,n=n||[],r=r||0,s=s||0;var a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var f=0;f<t.length;f++){var l=function(e,t){return a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var p=c%(50*1);if(n[p]){var d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==166){var v='';for(var f=0;f<n.le |
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/bash | |
CURRENT=`git branch | grep "*" | sed "s/* //"` | |
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v $CURRENT`; do | |
git branch --track ${branch#remotes/origin/} $branch | |
done |
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
window.WebFontConfig = | |
google: | |
families: ['Droid+Serif:400,700,400italic:latin'] | |
wf = document.createElement('script') | |
wf.src = """#{if document.location.protocol == 'https' then 'https' else 'http'} | |
://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js""" | |
wf.type = "text/javascript" | |
wf.async = "true" | |
s = document.getElementsByTagName("script")[0] |
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
00 16 * * * find ~/Dropbox/Public -mindepth 1 -ctime +14 -delete |
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
{exp:linssen_saef_field name="my_relationship_field"} | |
<p><label for="{id}">{label}</label><br /> | |
<select name="{id}" id="{id}"> | |
{options}<option value="{value}">{name}</option>{/options} | |
</select> | |
</p> | |
{/exp:linssen_saef_field} |
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
git archive HEAD | gzip > $PWD\.tar\.gz |
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 | |
/** | |
* Erskine Design ImageResizer (PHP5 only) | |
* REQUIRES ExpressionEngine 2+ | |
* | |
* @package ED_ImageResizer | |
* @version 1.0.4 | |
* @author Glen Swinfield (Erskine Design) | |
* @copyright Copyright (c) 2009 Erskine Design |
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
{% extends "admin/change_form.html" %} | |
{% load i18n admin_static admin_modify %} | |
{% load url from future %} | |
{% load admin_urls %} | |
{% block extrahead %} | |
{{ block.super }} | |
{% if not is_popup %} | |
<link href="{{ STATIC_URL }}admin/chosen/chosen.css" type="text/css" media="screen" rel="stylesheet"> |
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 $chosens = {}; | |
/** | |
* Hijacking the pop up script and overwriting it | |
*/ | |
function showAddAnotherPopup(triggeringLink) { | |
var name = triggeringLink.id.replace(/^add_/, ''); | |
name = id_to_windowname(name); | |
href = triggeringLink.href | |
if (href.indexOf('?') == -1) { |
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
/** | |
* We need form rows overflow to be visible so we can see | |
* the chosen options | |
*/ | |
div.form-row { | |
overflow:visible; | |
} | |
div.form-row:after { | |
content:" "; | |
display:block; |