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
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo | |
aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo | |
aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da |
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
browser.find_by_css_selector('h1').all() #returns a list | |
browser.find_by_css_selector('h1').first() | |
browser.find_by_css_selector('h1').last() | |
browser.find_by_css_selector('h1')[1] | |
### or | |
browser.find_by_css_selector('h1') #returns a list | |
browser.find_by_css_selector('h1').first | |
browser.find_by_css_selector('h1').last |
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 Test.Hspec | |
main :: IO() | |
main = do hspec specs | |
specs = describe "myabs" [ | |
it "foo" | |
(myabs 1 == 1) | |
] |
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
NUMBER_OF_CPU_CORES=2 | |
BASHRC=~/.profile | |
# Remove old Node.JS installation | |
rm ~/local/*/node* -rf | |
rm ~/.node_libraries -rf | |
sudo rm /usr/local/*/node* -rf | |
sudo rm /usr/*/node* -rf | |
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
.container { | |
line-height: 85px; /* container height */ | |
} | |
.element { | |
display:inline; | |
display:inline-table; | |
display:inline-block; | |
vertical-align:middle; | |
} |
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
.borda-arredondada { | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
behavior: url(/media/css/PIE.htc); | |
} |
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
// maneira numero 1 | |
11 + ""; | |
// maneira numero 2 | |
new Numero(11).toString(); | |
// maneira numero 3 | |
new String(11).toString(); |
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
startx -- `which Xvfb` :1 -screen 0 1024x768x24 2>&1 >/dev/null | |
DISPLAY=:1 mystests.py |
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 agora(): | |
... return datetime.now() | |
... | |
>>> from ludibrio import Stub | |
>>> with Stub() as datetime: | |
... from datetime import datetime | |
... datetime.now() >> 'foo' | |
... | |
>>> agora() | |
'foo' |
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 unicodedata import normalize | |
return normalize('NFKD', str.decode('utf-8')).encode('ASCII', 'ignore') |
OlderNewer