Skip to content

Instantly share code, notes, and snippets.

View andypotts's full-sized avatar

Andy Potts andypotts

View GitHub Profile
@cole007
cole007 / greens-2017.md
Last active May 12, 2017 08:50
An open letter to the Green party regarding Somerton and Frome constituency

Dear Green Party executives, supporters and members,

I appreciate this is an extremely busy time to be in politics but I beg for a moment of your time as a frustrated member of the Green Party.

My whole adult life I have voted Liberal Democrats and fiercely challenged anyone who said that mine was a wasted vote. I was disheartened then in 2010 with their decision to go into alliance with the Conservative party, a party who's policies and values I fiercely oppose. I wrote to every Liberal Democrat MP saying I would never vote for them again and that my trust for them had been destroyed. In the run up to the 2015 General Election I joined the Green Party in my constituency of Somerton and Frome and was delighted that they were the third best represented at the ballot.

When Theresa May announced a snap election earlier this month I attended a meeting in Frome from disconcerted members of the constituency that were concerned about a divided left come June 8th and the potential impotence against a Tory incumben

@Restuta
Restuta / framework-sizes.md
Last active March 7, 2024 00:01
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@toddmotto
toddmotto / gist:5477991
Created April 28, 2013 18:56
Center Google Maps Marker positioning on window.resize
google.maps.event.addDomListener(window, 'resize', function() {
var center = map.getCenter()
google.maps.event.trigger(map, "resize")
map.setCenter(center)
})
@harthur
harthur / snippet.md
Created June 18, 2012 22:12
console.log() key binding for Sublime Text

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
 }
@twosixcode
twosixcode / gist:1988097
Created March 6, 2012 18:40
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }