Skip to content

Instantly share code, notes, and snippets.

View strackoverflow's full-sized avatar

David Strack strackoverflow

View GitHub Profile
🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯
🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯
🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯
🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯🌯
⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️
⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️🍺⬛️⬛️⬛️⬛️🍺⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️🍺🍺⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️⬛️⬛️⬛️🍺🍺🍺🍺⬛️⬛️⬛️
⬛️⬛️🍺🍺🍺🍺🍺🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️
⬛️⬛️🍺🍺🍺🍺🍺🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️
⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️🍺🍺🍺🍺🍺⬛️⬛️⬛️⬛️⬛️🍺🍺⬛️⬛️⬛️⬛️
@strackoverflow
strackoverflow / cookie-helper.js
Created May 23, 2014 18:59
a little bit easier to work with cookies in client-side JS
@strackoverflow
strackoverflow / instagram-preview.php
Created August 22, 2011 15:53
Instagram Thumbnail
/* This is now available via the official instagram api. */
<?php
$url = $_GET['u'];
$r = file_get_contents($url);
$searchStr = 'meta property="og:image" content="';
$pos = strpos($r, $searchStr);
$s = substr($r, $pos + strlen($searchStr));
$img = substr($s, 0, strpos($s,'"'));
header('Location: '.$img);
exit;
@strackoverflow
strackoverflow / post-csv.php
Created August 22, 2011 15:52
Auto POST to CSV
<?php
function append($data, $i){
//determine whether this line should have a comma or a newline character
if ($i != count($data) - 1 ) {
$append = ',';
}
else {
$append = "\n";
}