- Buster
- Stryker
- Ford
- Diesel
- Felix
- Xavier
- Tim
- Thom
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
| // codetest.js | |
| // Given initial state of a minesweeper board | |
| var COLS = 8; | |
| var ROWS = 8; | |
| var DIFFICULTY = 0.2; | |
| var mines = []; | |
| for (var i = 0 ; i < COLS ; ++i){ | |
| mines[i] = []; |
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
| .slider { | |
| /* set initial width */ | |
| width: 520px; | |
| /* hide the content that overflows (to allow second box to show through) */ | |
| overflow: hidden; | |
| display: inline-block; | |
| /* skew container so that it has angled edge, and set up transition */ | |
| transform: skewX(-20deg); |
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
| #!/usr/local/bin/php | |
| <?php | |
| error_reporting(-1); | |
| define('CFRUNTIME_NAME', 'aws-sdk-php'); | |
| define('CFRUNTIME_VERSION', 'Panther'); | |
| define('CFRUNTIME_BUILD', '20120926163000'); | |
| define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . str_replace(' ', '_', php_uname('s')) . '/' . str_replace(' ', '_', php_uname('r')) . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback()); |
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
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |
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
| <script> | |
| var docwritebuffer = ""; | |
| document.wrong = document.write; | |
| document.write = function(html){ | |
| docwritebuffer = html; | |
| } | |
| </script> | |
| <script type="text/javascript" src="http://myforum.disqus.com/popular_threads_widget.js?num_items=5"></script> | |
| <script> | |
| document.write = document.wrong; |
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 sys, time, subprocess, socket, telnetlib | |
| from datetime import datetime | |
| from collections import defaultdict | |
| from boto.ec2.cloudwatch import CloudWatchConnection | |
| MAPPINGS = { | |
| # Memcached name: (AWS Name, AWS Metric Type, Calculation Method) | |
| 'uptime': ('Uptime', 'Count', 'gauge'), |
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
| {% if article._published|date('n') >= 10 %} | |
| {% set quarter = article._published|date('Y')~'Q4' %} | |
| {% elseif article._published|date('n') >= 7 %} | |
| {% set quarter = article._published|date('Y')~'Q3' %} | |
| {% elseif article._published|date('n') >= 4 %} | |
| {% set quarter = article._published|date('Y')~'Q2' %} | |
| {% elseif article._published|date('n') >=1 %} | |
| {% set quarter = article._published|date('Y')~'Q1' %} | |
| {% endif %} |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Getting Started Form</title> | |
| <script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
| <!-- jQuery is used only for this example; it isn't required to use Stripe --> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| // this identifies your website in the createToken call below |
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
| /*jslint browser: true*/ | |
| /*global require*/ | |
| require.config({ | |
| shim: { | |
| 'underscore': { | |
| exports: '_' | |
| }, | |
| 'backbone': { | |
| // Depends on underscore/lodash and jQuery |