Finding your most popular Tweets

by @edent | # # # | 1 comment
The Twitter logo drawn in circles.

Twitter's search interface has all sorts of lovely and obscure options. My three favourites are "min_retweets:", "min_replies:", and "min_faves:" Using those filters, you can create a search for Tweets which meet a certain threshold. For example, here are my Tweets which have been liked more than 500 times: twitter.com/search?q=from:edent min_faves:500 Here are the ones which…

Continue reading →

Remove the first few lines from a string in PHP

by @edent | # # # | 1 comment
Binary code displayed on a screen.

Problem: I have a multiline string - not a file - and I want to remove the first few lines from it and keep the rest. I found this surprisingly unintuitive. So these are notes in case I want to do it again. Feel free to suggest a better way! Example Given this input: $str…

Continue reading →