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
#Persistent | |
#SingleInstance,Force | |
#NoTrayIcon | |
DEBUG_ENABLED := false | |
TRACKER_SUPPORT := false | |
WINDOW_ADD_TORRENT := "Add New Torrent ahk_class #32770" | |
WINDOW_TORRENT_PROPERTIES := "Torrent Properties ahk_class #32770" |
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
echo %path% | tr ';' '\n' | sort |
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
# The 1º uniq is to reduce the data to the grep, because data_souce is at item's level | |
# The 2º uniq is because somehow I get duplicates | |
# Added the Album Artist to sort | |
beet ls -f "$data_source | $albumartist - $album ($year)" | uniq | grep Discogs | sort | uniq |
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 pyorient | |
import yaml | |
import os, sys, codecs | |
def cp65001(name): | |
if name.lower()=='cp65001': | |
return codecs.lookup('utf-8') | |
codecs.register(cp65001) | |
os.environ["PYTHONIOENCODING"] = "cp65001" |
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
def coalesce(*args): | |
"""Returns the first not None item. Similar to ?? in C#. | |
It's different from a or b, where false values are invalid. | |
:param args: list of items for checking | |
:return the first not None item, or None | |
""" | |
return next((arg for arg in args if arg is not None)) |
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
<?php | |
function nota_final($notas, $dificuldade) | |
{ | |
sort($notas); | |
array_pop($notas); | |
array_shift($notas); | |
return array_sum($notas) * $dificuldade; | |
} |
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
git config --global --unset http.proxy |
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
.bs-callout { | |
padding: 20px; | |
margin: 20px 0; | |
border: 1px solid #eee; | |
border-left-width: 5px; | |
border-radius: 3px; | |
h4 { | |
margin-top: 0; | |
margin-bottom: 5px; |
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
% Antes do document | |
\usepackage{array} | |
% Colunas para left, right e middle | |
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} | |
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} | |
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} | |
\begin{tabular}{ |p{.25\textwidth}||L{.25\textwidth}||M{.25\textwidth}||R{.25\textwidth}|} | |
\hline |
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
-- | |
-- Estrutura da tabela `pais` | |
-- | |
CREATE TABLE IF NOT EXISTS `pais` ( | |
`paisId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, | |
`paisNome` varchar(50) NOT NULL, | |
`paisName` varchar(50) NOT NULL, | |
PRIMARY KEY (`paisId`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ; |
OlderNewer