I hereby claim:
- I am karllindmark on github.
- I am karllindmark (https://keybase.io/karllindmark) on keybase.
- I have a public key ASCEeUKhxmHRuVkyAyC63f6vp8IEDkqhLmTlCHdfe4SR8go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Chrome :first-child selector bug</title> | |
<script type="text/javascript"> | |
var num = 0; | |
function addRow() { | |
var row = document.createElement('tr'); | |
var row2 = document.createElement('tr'); |
<?php | |
function parseQueryToArray($query) { | |
$twoWordChunks = array('GROUP', 'ORDER'); | |
$twoWordChunk = ''; | |
$joinChunks = array('LEFT', 'RIGHT', 'INNER', 'OUTER'); | |
$joinChunk = ''; | |
$out = array( | |
'SELECT' => null, |
/* I'm not sure if this actually works in GreaseMonkey*, but something similar to this would be nice. */ | |
var report = function(endDate) { | |
if (!endDate) { | |
console.error('No end date specified!'); | |
return; | |
} | |
var interval = setInterval(function() { | |
if ($('#ctl00_maincontentholder_dayLabel').innerText.indexOf(endDate) !== -1) { | |
console.log('Found', endDate, ', exiting...'); | |
clearInterval(interval); |
#!/usr/bin/env python2.7 | |
""" | |
This is a script to remove weird characters (currently only :) from | |
filenames found in the given path. | |
""" | |
import os | |
import subprocess | |
import sys |
:-) |
/* Derived from http://stackoverflow.com/a/27664023/1676363 */ | |
public class GridItemSpacingDecorator extends RecyclerView.ItemDecoration { | |
private final int columnCount; | |
private final int spaceInPixels; | |
public GridItemSpacingDecorator(int columnCount, int spaceInPixels) { | |
this.columnCount = columnCount; | |
this.spaceInPixels = spaceInPixels; | |
} | |