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
SELECT | |
b.status, | |
count(b.id) | |
FROM | |
bets AS b | |
WHERE | |
708150929 IN (b.challenger_fbuser_id, opponent_fbuser_id) | |
GROUP by b.status |
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
[ | |
foo: 0 | |
bar: 1 | |
, | |
baz: 2 | |
] | |
[ | |
{ | |
foo: 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
# Code: | |
# | |
namespace = (target, name, block) -> | |
[target, name, block] = [(if typeof exports isnt 'undefined' then exports else window), arguments...] if arguments.length < 3 | |
top = target | |
target = target[item] or= {} for item in name.split '.' | |
block target, top | |
# Usage: | |
# |
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
<div id="browser-notification" class="modal hide fade"> | |
<div class="modal-header"> | |
<h3>Did you know? It's about time!</h3> | |
</div> | |
<div class="modal-body"> | |
<p><strong>Beatguide only uses awesome features - to display them properly you need to switch to another browser.</strong> Choose one of the following. All free, easy to install and amazing:</p> | |
<p class="browser clearfix"> | |
<a href="http://google.com/chrome"><img src="/assets/img/browser_chrome.png">Chrome</a> | |
<a href="http://www.mozilla.com/firefox"><img src="/assets/img/browser_firefox.png">Firefox</a> | |
<a href="http://www.apple.com/safari/download"><img src="/assets/img/browser_safari.png">Safari</a> |
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
/*! | |
ICanHaz.js version 0.9 -- by @HenrikJoreteg | |
More info at: http://icanhazjs.com | |
*/ | |
(function($) { | |
/* | |
mustache.js — Logic-less templates in JavaScript | |
See http://mustache.github.com/ for more info. | |
*/ |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>contentEditable</title> | |
<style type="text/css"> | |
div.wrapper | |
{ | |
width:300px; |
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> | |
<head> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXX-X']); | |
_gaq.push(['_trackPageview']); | |
_gaq.push(['_trackPageLoadTime']); | |
</script> | |
</head> |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PAGE A</title> | |
</head> | |
<body> | |
<h1>PAGE A</h1> | |
<a href="page-b.html">Go to page B</a> |
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 | |
require 'vendor/autoload.php'; | |
date_default_timezone_set('America/Chicago'); | |
// Using Moment -- https://github.com/fightbulc/moment.php | |
$m = new \Moment\Moment('now', 'CST'); | |
// Correct month 03 (March) | |
echo $m->format() . "\n"; | |
// Wrong month, says "April" | |
echo $m->format('l, dS F Y / H:i (e)') . "\n"; | |
// Using plain php date -- http://php.net/manual/en/function.date.php |