Skip to content

Instantly share code, notes, and snippets.

Avatar

Łukasz Wieczorek wieczorek1990

View GitHub Profile
@nikhilkumarsingh
nikhilkumarsingh / paint.py
Created Nov 3, 2017
A simple paint application using tkinter in Python 3
View paint.py
from tkinter import *
from tkinter.colorchooser import askcolor
class Paint(object):
DEFAULT_PEN_SIZE = 5.0
DEFAULT_COLOR = 'black'
def __init__(self):
@azam
azam / svg2ico.sh
Last active Sep 18, 2021
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
View svg2ico.sh
convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico
@mgreensmith
mgreensmith / Slack_solarized_themes
Last active Aug 3, 2021
Solarized themes for Slack
View Slack_solarized_themes
Solarized
#FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F
Solarized Dark
#073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F
@Timmmm
Timmmm / lastfm_to_gmusic.py
Last active Jun 1, 2018
Convert Last.fm loved tracks to your Google Play Store Music Play All Access Subscription Service by Google™. It creates a new playlist rather than adding the tracks to your library willy-nilly. See code for more details.
View lastfm_to_gmusic.py
#!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, tdhutt@gmail.com, based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th of September 2013.
#
@acook
acook / keypress.rb
Created Dec 2, 2012
Read keypresses from user in terminal, including arrow keys using pure Ruby. This has since been folded into a much more robust gem called Remedy. https://rubygems.org/gems/remedy & https://github.com/acook/remedy
View keypress.rb
require 'io/console'
# Reads keypresses from the user including 2 and 3 escape character sequences.
def read_char
STDIN.echo = false
STDIN.raw!
input = STDIN.getc.chr
if input == "\e" then
input << STDIN.read_nonblock(3) rescue nil
@kogakure
kogakure / .gitignore
Created Jul 17, 2009
Git: .gitignore file for LaTeX projects
View .gitignore
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl