Skip to content

Instantly share code, notes, and snippets.

View abitgone's full-sized avatar

Anthony Williams abitgone

View GitHub Profile
@mikedidthis
mikedidthis / no-frills-social-sharing-urls.md
Last active May 3, 2024 19:39
No Frills Social Sharing URLs

###No Frills Social Sharing URLs

Not a huge fan of share buttons in general, but people seem to like them. Below is a list of social networks and their respective, good ol' fashion, URLs for sharing content.

[TITLE] indicates where to add your own title, url, description etc. Do not include the square brackets.

Feel free to add / update them, either in the comments or a fork.

Facebook

Lesson's learnt building the Guardian

Below is a collection of my favourite responses I gathered from Guardian engineers when asked the question: What have you learnt starting from scratch and building a mobile-first next generation web platform for the Guardian?

Daithi O Crualaoich

  • Work with great people.
  • Deploy like crazy. This means the team has to control the infrastructure as well as code.
  • Design is not a service. Designers have to sit in the team.
  • Infrastructure is intrinsically unreliable. Discard and replace is the robust strategy.
  • Use your CDN for HTML too.
  • Don't always do as you are told.
anonymous
anonymous / birthdays.php
Created January 22, 2013 17:38
Updated version of get upcoming birthdays, within an interval, such as month or week (default), based on gist by @rythie. Two types of queries (pick which you want), one uses separate meta data for DOB (day and month used), the other uses the DOB as a timestamp. Optional parameter for order.
<?php
/**
* get_birthdays
* @desc Get upcoming birthdays, within a month or week (default)
* @see http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html
* @global object $wpdb
* @param string|int $type
* @param string $orderby (asc or desc)
* @return array
*/
@jimmynotjim
jimmynotjim / more-mute-regex.md
Created July 19, 2012 14:37 — forked from imathis/tweetbot-mute-regex.md
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

##Simply annoying Tweets

Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD

([a-z])/1{4}

Tweet w/ just a single hashtag: #omgthissucks

^ *#[^ ]+$
@roryf
roryf / .gitignore
Created July 5, 2012 14:08
.gitignore for working with Visual Studio
build/
release/
package/
*.suo
*.user
bin
!/bin
obj
_ReSharper*
*.csproj.user
text-placement-type: simple;
text-placements: "S,N,E,W";
text-dx: 5;
text-dy: 5;
text-allow-overlap: false;
@hiddenmemory
hiddenmemory / CoreData.m
Created February 2, 2012 16:50
SELECT name FROM SomeObject WHERE type = 'static' GROUP BY name [iOS5 Core Data ARC Remix]
- (NSArray*)listOfNames {
NSFetchRequest *request = [[NSFetchRequest alloc] init];
[request setEntity:[NSEntityDescription entityForName:@"SomeObject" inManagedObjectContext:self.managedObjectContext]];
[request setResultType:NSDictionaryResultType];
[request setPropertiesToFetch:[NSArray arrayWithObject:@"name"]];
[request setPropertiesToGroupBy:[NSArray arrayWithObject:@"name"]];
[request setPredicate:[NSPredicate predicateWithFormat:@"type = %@", @"static"]];