Skip to content

Instantly share code, notes, and snippets.

Silouane Gerin sgerin

Block or report user

Report or block sgerin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View designer.html
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@sgerin
sgerin / gist:6265532
Created Aug 19, 2013
Get OS X icons. Thanks to Brett Terpstra.
View gist:6265532
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
def find_icon(terms):
@sgerin
sgerin / ios_icons
Created Aug 19, 2013
Get iOS icons. Thanks to Brett Terpstra.
View ios_icons
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# You may find odd result: try searching for both device categories.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
@sgerin
sgerin / Post to WordPress
Created Jul 25, 2013
Post to WordPress from Python.
View Post to WordPress
import datetime
import xmlrpclib
import keychain
import clipboard
wp_url = "http://www.yoursite.com/xmlrpc.php"
wp_username = 'username'
wp_password = keychain.get_password('wordpress', wp_username)
wp_blogid = ""
View Password Setter.py
import keychain
import console
console.clear()
service = raw_input("Input service name: ")
username = raw_input("Input username: ")
password = raw_input("Input password: ")
keychain.set_password(service, username, password)
View Markdown Link.py
View Markdown Image Link.py
You can’t perform that action at this time.