- How many articles from followed pubs in last 24 hours?
- How many articles from followed writers in last 24 hours?
- How many articles from followed friends in last 24 hours?
via Coupler
Last 4 Staff Picks with Read Counts and Recommend Counts
function asciify($text) { | |
$entities = array(); | |
$ascii = array(); | |
// 32 through 127 correspond to ascii letters | |
for ($i = 32; $i < 127; $i++) { | |
$entities[] = "&#$i;"; | |
$ascii[] = chr($i); | |
} |
<?php | |
// Get everything everyone shared this year from our offshore data center | |
$all_links = Echelon::query('shared_links')->where('year = ?', 2011)->find_all(); | |
// Add a dash of secret sauce | |
$politically_correct_links = array_filter($all_links, 'secret_sauce'); | |
function secret_sauce($link) | |
{ |
# procps-net - set network related sysctls from /etc/sysctl.conf | |
# | |
# This task sets network related kernel sysctl variables from | |
# /etc/sysctl.conf and /etc/sysctl.d | |
description "set network related sysctls from /etc/sysctl.conf" | |
start on net-device-up | |
task |
// 1. Copy and paste this into a browser toolbar bookmark | |
// 2. Encounter a page that makes excessive use of the word "founder" | |
// 3. Clicky clicky | |
javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace('([fF])ounder','$1lounder'); | |
// Entirely ganked from http://stackoverflow.com/questions/1175775/find-all-instances-of-old-in-a-webpage-and-replace-each-with-new-using-a-ja with the exception of two crucial words. |
I hereby claim:
To claim this, I am signing this object: