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
$(document).ready(function () { | |
"use strict"; | |
var items = Array( | |
'such currency', | |
'wow', | |
'amaze', | |
'much coin', | |
'awesome', | |
'so crypto', |
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
# ######################################################################### | |
# This bash script adds tab-completion feature to django-admin.py and | |
# manage.py. | |
# | |
# Testing it out without installing | |
# ================================= | |
# | |
# To test out the completion without "installing" this, just run this file | |
# directly, like so: | |
# |
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
def patch_21554(): | |
"""See https://code.djangoproject.com/ticket/21554 """ | |
try: | |
from collections import UserDict | |
except ImportError: | |
from UserDict import UserDict | |
class OneToOneDict(UserDict): | |
def __init__(self, *args, **kwargs): |
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
/* | |
* Cartrawler AJAX Booking Engine | |
* http://www.cartrawler.com | |
* | |
* Copyright (c) 2006-2013 Cartrawler.com | |
* Version: 56251 | |
* Date: 13-11-2013 - 12:54 | |
*/ | |
(function ($) { | |
namespace("CT.ABE.Utils.RentalCondition"); |
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
""" | |
Basic remote Python interpreter | |
=============================== | |
Connects to a remote host and presents the Python interpreter to it. | |
Example usage | |
------------- | |
On Machine A (the local host):: |
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
[buildout] | |
parts = | |
.... | |
complexity | |
[complexity] | |
recipe = zc.recipe.egg | |
eggs = radon[tool] | |
scripts = radon=complexity |
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
config.add_route('options', '/*path', request_method='OPTIONS', view='.utility_views.OptionsView') | |
config.add_route('trace', '/*path', request_method='TRACE', view='.utility_views.TraceView') |
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
import re | |
def strip_non_empty_lines(text): | |
return re.sub(r'^\s+(?=\S)', '', text) |
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
<input type="hidden" name="__start__" value="${field.name}:mapping"/> | |
<div id="${field.oid}"> | |
<p>Solve this problem:</p> | |
<p class="turing-challange">${challenge}</p> | |
<input type="hidden" | |
name="${field.oid}-challenge" | |
value="${challenge}"/> | |
<input type="text" | |
name="${field.oid}"/> | |
</div> |
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 | |
// TWEET NEST | |
// Load tweets (from JSON) | |
error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", true); // For easy debugging, this is not a production page | |
@set_time_limit(0); | |
require_once "mpreheader.php"; | |
$p = ""; | |
// The below is not important, so errors surpressed |