I hereby claim:
- I am tebriel on github.
- I am cmoultrie (https://keybase.io/cmoultrie) on keybase.
- I have a public key whose fingerprint is 6753 5CAE A733 8F24 F8BF 2C31 9F00 71E8 0918 D64E
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# Find 5 friday (4) the 12th's | |
# python3 fridays_of.py 12 4 5 | |
import datetime | |
import sys | |
def make_get_specified_date(start, day_of_month, day_of_week): |
javascript:(function(){setDate = function(id, date) {$(id).val([date.getMonth()+1, date.getDate(), date.getFullYear()].join('/'))}; setDate('#txtFromDate_TextBox', new Date((new Date()).setDate((new Date()).getDate()-7))); setDate('#txtToDate_TextBox', new Date());$('#ctlStatementFilter_1').prop('checked', true);$('#btnDownload').click();})() |
I hereby claim:
To claim this, I am signing this object:
> myarr = Array(20) | |
[ , , , , , , , , , , , , , , , , , , , ] | |
> for (var i=0; i<20; i+=3) { | |
... myarr[i] = 'taco'; | |
... } | |
'taco' | |
> myarr | |
[ 'taco', | |
, | |
, |
Sticky gravity is explained in depth here: http://tetrisconcept.net/wiki/Line_clear#Sticky
The playfield is divided into connected segments using flood fill. Any blocks that are adjacent horizontally or vertically are marked as one segment, that is, they are treated as having "stuck" together. Each segment falls independently until it meets the floor or another block. Additional line clears may result.
Sample input and expected output are included in this Gist.
<html><head><title>Hello, world!</title></head><body>Tacotacotaco!</body></html> |
This function is pulled from the "Are you a workaholic?" Test/Calculator on cnn.com. This code is horrific. http://edition.cnn.com/interactive/2011/05/living/workaholic.test/
var insert = "INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES "; | |
var docs = "polymaps.org/docs/"; | |
var type='Method' | |
var sections = [] | |
$('a', $('ul', $('.sidebar'))).each(function(index, link) { | |
atag = $(link) | |
var path=docs+atag.attr('href') | |
var name=atag.text() | |
sections.push("('"+name+"', 'Section', '"+path+"')"); |
myFunc = -> | |
console.log "No one knows how to call me, this makes me sad" | |
@myFunc2 = -> | |
console.log "I'm on the window scope" | |
window.myFunc3 = -> | |
console.log "I'm on the window scope, as well." |