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
<html> | |
<head> | |
<style> | |
/*o.v. | |
big shout out to http://www.jakpsatweb.cz/css/css-vertical-center-solution.html */ | |
.container {display: table; height: 100%; position:absolute; overflow: hidden;width:100%;} | |
.helper {#position: absolute; #top: 50%;display: table-cell; vertical-align: middle;} | |
.content {#position: relative; #top: -50%;margin:0 auto;width:200px;border:1px solid orange;} |
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
from subprocess import call | |
import random | |
random.seed() | |
cyclesCount = 0 | |
cyclesToCreateNewInstance = 9999 | |
sentence = "All work and no play makes Jack a dull boy" | |
def createNewInstance(): | |
call(["gnome-terminal", "-x", "python", "dull-boy.py"]) |
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
/** | |
* Executar usando o PhantomJs. | |
*/ | |
var page = require('webpage').create(); | |
var url = 'http://www.gerardocumentos.com.br/?pg=gerador-de-cep'; | |
var fs = require('fs'); | |
var fileName = 'ceps.txt'; | |
var ceps = ""; | |
var qtd = 200; |
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
<center> | |
<h1>Caracteres UTF-8 Jogos</h1> | |
<h2>Xadrez</h2> | |
♔ | |
♕ | |
♖ | |
♗ | |
♘ | |
♙ |
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
#!/usr/bin/ruby | |
class Pessoa | |
def initialize(nome) | |
@nome = nome | |
end | |
# "getter" | |
def nome | |
@nome |
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
#!/usr/bin/ruby | |
# Exemplo tirado de http://www.tutorialspoint.com/ruby/ruby_multithreading.htm | |
def func1 | |
i=0 | |
while i<=2 | |
sleep(2) | |
puts "func1 at: #{Time.now}" | |
i=i+1 | |
end |
NewerOlder