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 | |
<?php | |
ini_set( 'display_errors', 1); | |
error_reporting( E_ALL ); | |
//header( 'Content-Type: text/plain'); | |
function my_test() { |
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
<!-- | |
Copyright (c) 2012 Terrence Ryan | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to the following | |
conditions: |
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
<script> | |
/*! | |
* Javascript-iframe (Drupal) SOPA-blackout solution. | |
* | |
* authors: Jacob Singh, Zachstronaut, Nick Freear, 2012-01-17. | |
* help: http://jacobsingh.name/content/adding-sopa-blackout-drupal-gardens | |
* via: http://drupal.org/planet | |
*/ | |
(function blackout(){ | |
var a = new Date, |
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
coffee-script 24019 [u'coffeescript', u'javascript', u'language', u'compiler'] | |
socket.io 19498 [u'websocket', u'socket', u'realtime', u'cross-browser', u'apps', u'ajax', u'socket.io', u'api', u'easy', u'real-time', u'comet'] | |
should 17605 [u'test', u'bdd', u'assert', u'framework'] | |
expresso 16266 [u'tdd'] | |
jade 15322 [u'engine', u'jade', u'template'] | |
stylus 14328 [u'stylesheets', u'style', u'language', u'jade', u'parser', u'css'] | |
mkdirp 13690 [u'directory', u'mkdir', u'like'] | |
mime 13145 [u'util', u'mime', u'mapping', u'library'] | |
underscore 11906 [u'helper', u'programming', u'functional', u'server', u'util', u'client', u'browser'] | |
nodeunit 11571 [u'node.js', u'testing', u'unit', u'easy'] |
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 | |
/** | |
* @file drupal_uid_header.module | |
* @author António P. P. Almeida <[email protected]> | |
* @date Tue Dec 27 2011 | |
* | |
* @brief Sets an HTTP header with the UID (Drupal 6). | |
* | |
*/ |
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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
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
/** | |
* Outbound link tracking | |
* | |
* This code largely based on examples from | |
* [Google Analytics Help](http://www.google.com/support/googleanalytics/bin/answer.py?answer=55527). | |
*/ | |
jQuery(function($){ | |
$('a:not([href*="' + document.domain + '"])').click(function(event){ | |
// Just in case, be safe and don't do anything | |
if (typeof _gat == 'undefined') { |
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
#!/usr/bin/env bash | |
# Use this one-liner to produce a JSON literal from the Git log: | |
git log \ | |
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
$@ | \ | |
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
perl -pe 's/},]/}]/' |
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
application: your-app-name | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
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> | |
<script type="text/javascript"> | |
/* | |
This code is a IE8 (and below), polyfill for HTML5 Range object's startContainer, | |
startOffset, endContainer and endOffset properties. | |
*/ | |
(function () { | |
function findTextNode(node, text) { |