This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MultilineLabel.swift | |
| // | |
| // Created by Marcin Krzyzanowski on 19/09/2019. | |
| // | |
| import UIKit | |
| public class MultilineLabel: UILabel { | |
| override public init(frame: CGRect) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set encoding=utf-8 nobomb | |
| filetype off | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " let Vundle manage Vundle | |
| Plugin 'VundleVim/Vundle.vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function precmd() { | |
| if command git rev-parse --git-dir > /dev/null 2>&1; then | |
| window_label=$(git rev-parse --show-toplevel) | |
| tab_label=$(echo $window_label | awk -F\/ '{print "[git] " $NF}') | |
| else | |
| window_label=${PWD/${HOME}/\~} | |
| tab_label=$window_label | |
| fi | |
| echo -ne "\e]2;${window_label}\a" | |
| echo -ne "\e]1;${tab_label: -24}\a" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://news.layervault.com/u/tree_flat.json | |
| https://news.layervault.com/u/tree.json | |
| https://news.layervault.com/new.json | |
| https://news.layervault.com/stories.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # git-standup: find out what you did yesterday (or last friday). | |
| # | |
| # Setup: | |
| # 1. Change AUTHOR if your git user doesn't match your unix account. | |
| # 2. Save somewhere on your path, make executable. | |
| # 3. git config --global alias.standup '!git-standup' | |
| # 4. Profit. | |
| # | |
| # Original idea via @paulgreg (https://twitter.com/paulgreg/status/248686055727972352) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ | |
| var enc=encodeURIComponent, | |
| w=window, | |
| frames=w.frames, | |
| d=document, | |
| tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0), | |
| pu=w.location.href, | |
| isGMail=w.location.host.match(/mail\.google\.com/), | |
| tt=pt=d.title, | |
| subjSpans=d.getElementsByClassName("hP"),i,url; |