vim persistent undo https://jovicailic.org/2017/04/vim-persistent-undo/
polu kalo pluggin gia undo einai to undotree mbbill/undotree
# Configuration for tig: https://jonas.github.io/tig/ | |
# Usage: Either copy paste parts of this into your ~/.tigrc, or download the whole file. | |
# Find more useful bindings at: https://github.com/jonas/tig/wiki/Bindings | |
# | |
# You might also want to read the tig manual: | |
# http://jonas.nitro.dk/tig/manual.html | |
# | |
# Note that there's also a system-wide tigrc sitting at: /usr/local/etc/tigrc | |
# |
vim persistent undo https://jovicailic.org/2017/04/vim-persistent-undo/
polu kalo pluggin gia undo einai to undotree mbbill/undotree
/** | |
* Simple JS equivalent of the Python set() constructor (without the methods) | |
* @requires shim: Array.prototype.indexOf | |
* @param {array} arr The array to turn into a set | |
* @example | |
* var mySet = set(['red', 'yellow', 'black', 'yellow']); | |
* mySet.length; // 3 | |
* JSON.stringify(mySet); // ["red","yellow","black"] | |
* @see For a fuller version, see {@link https://npmjs.org/package/set} | |
*/ |
#!/usr/bin/env python | |
""" | |
git fuzzy-checkout | |
Same as `git checkout branch`, but with fuzzy matching if checkout fails. | |
Turns `git checkout barnch` into `git checkout branch`, | |
assuming `branch` is a branch. | |
""" | |
import difflib |
#!/usr/bin/env bash | |
# This should fix broken fonts in chrome for mac. | |
# (from here: http://surgeworks.com/blog/general/how-to-fix-chrome-for-mac-broken-fonts) | |
atsutil databases -removeUser | |
atsutil server -shutdown | |
atsutil server -ping |
#!/usr/bin/env bash | |
open -a "Google Chrome" $@ |
# Ό,τι είναι μετά από δίεση είναι σχόλια, τα υπόλοιπα κώδικας. | |
# Το αρχείο τρέχει έτσι όπως είναι, το δοκίμασα. | |
# Ένα απλό while loop: | |
i="0" | |
while [ $i -lt 4 ] | |
do | |
echo $i | |
i=$[$i + 1] | |
done |
# Γλώσσα: Python που είναι εύκολη και δυνατή ;) | |
# από εδώ την κατεβάζεις: http://www.python.org/ftp/python/3.2.2/python-3.2.2.msi | |
# Τρόπος χρήσης (από γραμμή εντολών): | |
# python search_for_word.py filename word | |
# Όποια γραμμή ξεκινάει με δίεση είναι σχόλια, δεν κάνει τίποτα. | |
# αυτό το βάζουμε πάντα |