Skip to content

Instantly share code, notes, and snippets.

View mcskrzypczak's full-sized avatar

Maciej Skrzypczak mcskrzypczak

View GitHub Profile
tell application "Finder"
tell the front Finder window
-- pobierz rozmiar aktywnego okna
set b to the bounds
-- poszerz okno do dużych rozmiarów
set the bounds to {item 1 of b, item 2 of b, 4000, item 4 of b}
-- przywróć pierwotny rozmiar okna
set the bounds to b
end tell
end tell
Tweetbot for Mac Super Secret Settings
You will need to use the Terminal app to change these settings:
# these all affect the text in a DM or new tweet - the default is yes for all of them
defaults write com.tapbots.TweetbotMac TextAutomaticQuoteSubstitution -bool NO
defaults write com.tapbots.TweetbotMac TextAutoCorrect -bool NO
defaults write com.tapbots.TweetbotMac TextContinuousSpellChecking -bool NO
defaults write com.tapbots.TweetbotMac TextAutomaticTextReplacement -bool NO
@mcskrzypczak
mcskrzypczak / Kontakty.py
Created February 10, 2014 15:39
Skrypt do tworzenia kopii zapasowej kontaktów na urządzeniach pod kontrolą iOS (wymagana instalacja aplikacji Pythonista)
import contacts
import webbrowser, urllib
DRAFTS_ACTION = "Kontakty"
VCARD = ""
people = contacts.get_all_people()
for person in people:
VCARD = VCARD + person.vcard
import clipboard
import Image
import console
im1 = clipboard.get_image(idx=0)
im2 = clipboard.get_image(idx=1)
background = Image.new('RGBA', (1300,1136), (255, 255, 255, 255))
def main():
@mcskrzypczak
mcskrzypczak / copy_name.applescript
Created May 14, 2013 10:40
The script for Alfred workflow
on run argv
-- translate the Alfred query to text
set sArgv to argv as text
-- prepare some items
set l_Files to {}
set sResult to ""
-- tab indicates multiple files
if sArgv contains tab then
set {TID, text item delimiters} to {text item delimiters, tab}
set l_Files to text items of sArgv
@mcskrzypczak
mcskrzypczak / dabblet.css
Created February 2, 2012 06:14 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@mcskrzypczak
mcskrzypczak / dabblet.css
Created February 2, 2012 06:14 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@mcskrzypczak
mcskrzypczak / dabblet.css
Created February 2, 2012 06:14 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@mcskrzypczak
mcskrzypczak / dabblet.css
Created February 2, 2012 06:14 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@mcskrzypczak
mcskrzypczak / dabblet.css
Created December 16, 2011 06:34
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, blue, yellow);
min-height:100%;