This file contains 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
defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder |
This file contains 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
import xlrd | |
from openpyxl.workbook import Workbook | |
from openpyxl.reader.excel import load_workbook, InvalidFileException | |
def open_xls_as_xlsx(filename): | |
# first open using xlrd | |
book = xlrd.open_workbook(filename) | |
index = 0 | |
nrows, ncols = 0, 0 | |
while nrows * ncols == 0: |
This file contains 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 | |
rm -R /System/Library/Frameworks/Python.framework/Versions/3.3 | |
mv /Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions | |
chown -R root:wheel /System/Library/Frameworks/Python.framework/Versions/3.3 | |
rm /System/Library/Frameworks/Python.framework/Versions/Current | |
ln -s /System/Library/Frameworks/Python.framework/Versions/3.3 /System/Library/Frameworks/Python.framework/Versions/Current | |
rm /usr/bin/pydoc | |
rm /usr/bin/python |
This file contains 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
\begin{itemize}[itemsep=0mm,leftmargin=1cm,label=\checkmark] | |
\item | |
something | |
\end{itemize} |
This file contains 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
% This example requires PGF >= 1.09 and only works wit PDFTeX | |
% You have to compile document twice to get correct placement of nodes. | |
\documentclass{beamer} % | |
\usepackage{tikz} | |
\usepackage{verbatim} | |
\usetikzlibrary{arrows,shapes,backgrounds} | |
\begin{document} |
This file contains 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
from math import * | |
def f(variabile): | |
return variabile+1 | |