Skip to content

Instantly share code, notes, and snippets.

View tomekwojcik's full-sized avatar
🤷‍♂️
¯\_(ツ)_/¯

Tomek Wójcik tomekwojcik

🤷‍♂️
¯\_(ツ)_/¯
View GitHub Profile
elo = case input
when /zorb/ then "shoop de doop"
when /blomp/ then "imma chagin mah lazah"
else "FIAL"
end
---
elo = ''
if re.match(r'/zorb/', input):
elo = "shoop de doop"
elif re.match(r'/blomp/', input):

Jak słuchać Spotify w Polsce?

  1. Potrzebujesz kogoś, kto mieszka w jednym z krajów w których jest dostęp do Spotify (UK, Hiszpania i parę innych)
  2. Jak już masz założone konto (byle jakie - nie musi być premium, może być któreś z Free), możesz słuchać przez 2 tygodnie więcej info
  3. Ominięto jedą rzecz: wystarczy, że ktoś co 2 tygodnie zaloguje się za Ciebie w tym samym kraju w którym założono Twoje konto (albo lepiej: wystarczy co 2 tygodnie użyć jakiegoś proxy i samemu to robić ;-))

Konto premium i dostęp z PL.

Mówisz, że nie musi być premium? Poproszę rodziców, żeby mi założyli konto free i zobaczę. A w razie czegoś to po prostu zrobię upgrade do premium (mam taką możliwość), bo mi się podoba ficzer słuchania muzyki z dysku kompa a nie po Sieci. Thx za info :).

@tomekwojcik
tomekwojcik / whathecommit.sh
Created March 24, 2011 11:39
whatthecommit.sh
msg="`curl http://whatthecommit.com/index.txt 2>/dev/null`"; echo "$msg"; echo "via http://whatthecommit.com/`echo $msg | md5`"
@tomekwojcik
tomekwojcik / whatthecommit.vim
Created March 24, 2011 11:47
A VIM "plugin" that'll automagically download a random whatthecommit message and insert it into the buffer.
command! Commit :r!msg="`curl http://whatthecommit.com/index.txt 2>/dev/null`"; echo "$msg"; echo "via http://whatthecommit.com/`echo $msg | md5`"
@tomekwojcik
tomekwojcik / CoffeScript "end"
Created April 14, 2011 12:36
Not so cool at all.
CoffeeScript:
end = ->
test = (x) ->
console.log(x)
end()
test2 = (x, y) ->
x + y
end()
@tomekwojcik
tomekwojcik / run.py
Created May 3, 2011 07:55
Just a testy test.
from flasksterous.app import create_app
import config
app = create_app(config)
app.run()
@tomekwojcik
tomekwojcik / cdlib.rb
Created July 17, 2011 16:38
My first Ruby "app".
# -*- coding: utf-8 -*-
VERSION = "1.0"
DEFAULT_LIBRARY = "library.cdlib"
class Library
attr_reader :entry_fields
attr_accessor :path
def initialize(path=DEFAULT_LIBRARY)
@tomekwojcik
tomekwojcik / gist:1180217
Created August 30, 2011 04:57
Dirty fix for Flask's bug with static files.
# default is the blueprint object
@default.route('/files/<path:path>')
def files(path):
return default.send_static_file(path)
@tomekwojcik
tomekwojcik / makepwd.py
Created December 21, 2011 21:12
Tweet-sized password "generator" in Python.
import random; ''.join([ chr(i).lower() for i in random.sample(range(48, 57) + range(65, 90), 8) ])
@tomekwojcik
tomekwojcik / proptest.py
Created May 10, 2012 17:33
Python @Property vs direct access
# -*- coding: utf-8 -*-
from timeit import timeit
setup = """\
class Test(object):
def __init__(self, something):
self._something = something
@property
def something(self):