Skip to content

Instantly share code, notes, and snippets.

View sillygwailo's full-sized avatar
💭
Looking for collaborators.

Richard Eriksson sillygwailo

💭
Looking for collaborators.
View GitHub Profile
@sillygwailo
sillygwailo / goodreads-bookmarklet.js
Last active January 22, 2022 18:31 — forked from lightningdb/goodreads-bookmarklet.js
Add to Goodreads from Amazon.com book page bookmarklet
javascript: var asin_elements, asin;
asin_elements = document.getElementsByName('ASIN');
if (asin_elements.length == 0) {
asin_elements = document.getElementsByName('ASIN.0');
};
if (asin_elements.length == 0) {
alert('Sorry, this doesn\'t appear to be an Amazon book page.');
} else {
asin = asin_elements[0].value;
if (asin.match(/\D/) === null) {
<?php
/**
* @file
* Contains \Drupal\configform_example\Form\ConfigFormExampleConfigForm.
*/
namespace Drupal\configform_example\Form;
use Drupal\Core\Form\ConfigFormBase;

Custom Twitter Stylesheet

Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:

  • Hides promoted tweets and trends
  • Hides the useless “Expand” link that appears under every tweet
  • Tones down the blue conversation line to a barely-visible gray
  • Hides all numbers

You can add this CSS in Safari with this extension. The URL to target is twitter.com/*.

#!/usr/bin/python
import Image
import base64, zlib
# Jay Parlar convinced me to turn this data structure
# from a dictionary into an object.
class PackedImage(object):
def __init__(self, mode, size, data):
self.mode = mode
#!/usr/bin/python
import Image
import base64, zlib
# Jay Parlar convinced me to turn this data structure
# from a dictionary into an object.
class PackedImage(object):
def __init__(self, mode, size, data):
self.mode = mode
@sillygwailo
sillygwailo / gist:3172414
Created July 24, 2012 20:24 — forked from devstator82/gist:3158327
On the business of e-mail clients / Sparrow

On the business of e-mail clients

I have been following the whole debate around this e-mail client (Sparrow) getting bought by Google. E-mail clients and the e-mail business are something close to my heart as I have once spent considerable amount of time on my own e-mail client.

People seem to be pretty upset about this acquisition because one of their favourite apps apparantly won't be updated anymore in the future, which is understandable. But let's look at this discussion from the other side: e-mail clients as a business.

Now I don't know the facts, nor do I know the good people at Sparrow. But I do know this space very well and know the facts about the space. My own Inbox2 desktop (for Windows) had about 500.000 downloads and is still being downloaded today (I stopped working on that about 2 years ago). I am assuming Sparrow did much better then this but still the essentials would remain the same.

The facts based on my own experience

; from the auto-generated make from drupal.org
projects[diff] = 2.0
projects[freelinking] = 1.10
projects[token] = 1.13
projects[talk] = 1.6
projects[pathauto] = 1.3
projects[wikitools] = 1.2
projects[flexifilter] = 1.2
projects[admin_menu] = 1.5
projects[extlink] = 1.11