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
function findShortestWordAmongMixedElements(listOfWords) { | |
var data = listOfWords; | |
var result; | |
var not_a_string = data.length; | |
if (data.length == 0) { | |
return ''; | |
} | |
for(i=0;i<data.length;i++) { |
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
>>> class Doggo: | |
... def __init__(self): | |
... self.good_doggo = True | |
... | |
>>> Shibe = Doggo() | |
>>> if Shibe.good_doggo: | |
... print("Shibe is a good doggo") | |
... | |
Shibe is a good doggo |
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
# ./autogen.sh | |
configure.ac:72: warning: macro `AM_PROG_AR' not found in library | |
libtoolize: putting auxiliary files in `.'. | |
libtoolize: copying file `./ltmain.sh' | |
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. | |
libtoolize: copying file `m4/libtool.m4' | |
libtoolize: copying file `m4/ltoptions.m4' | |
libtoolize: copying file `m4/ltsugar.m4' | |
libtoolize: copying file `m4/ltversion.m4' | |
libtoolize: copying file `m4/lt~obsolete.m4' |
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
image: perl:5.10 | |
variables: | |
POSTGRES_INCLUDE: "/usr/include/postgresql" | |
POSTGRES_LIB: "/usr/lib/postgresql/9.4/lib" | |
APACHE_SRC: "/usr/src/apache_1.3.42/src" | |
DO_HTTPD: "0" | |
perl_lint_cgi: | |
script: |
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
FISL cancelado: | |
``` | |
Mensagem à comunidade brasileira integrante do Projeto Software Livre Brasil | |
Caras e Caros apaixonadas e apaixonados, evangelistas, desenvolvedoras e desenvolvedores, difusores, entusiastas e usuários do Software Livre no Brasil: | |
Vocês foram os únicos responsáveis por dezessete edições do Fórum Internacional Software Livre. Vocês foram não apenas a razão de ser destas edições de quase duas décadas, mas também as pessoas que sustentaram cada uma delas, com suas milhares de inscrições e muitas centenas de patrocínios estimulados por seus movimentos e relações. Vocês foram as pessoas que deram a cada uma de suas edições, vida, alma, energia e razão para acontecer. | |
Em síntese, esse Movimento é de cada um de vocês, tem o crédito, a assinatura e a cara de cada um de vocês, com presença ano após ano, ou intercalados, ou episódicos, não importa. Mais que isso, ele é, e continuará sendo, o que cada um de nós estiver disposto a fazer com que ele seja. | |
Muitos acham que este Fórum Internacional |
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
# http://www.cleancss.com/python-beautify/ | |
data = { | |
'message': 'like', | |
'count': 2, | |
'list': [{ | |
'wind': { | |
'deg': 80, | |
'speed': 3.6 | |
}, |
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 | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |
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
dados = {'litros': 1, 'pessoas': 0, 'agua_por_pessoa': 0} | |
dias = 1 | |
while dados['litros'] > 0: | |
for k, v in dados.items(): | |
dados[k] = int(input("Quantidade %s:" % k)) | |
litros_por_dia = dados['agua_por_pessoa'] * dados['pessoas'] | |
if litros_por_dia > dados['litros']: | |
break |
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
[LOGS] | |
path = /var/www | |
read only = false | |
list = false | |
hosts allow = 10.0.0.1 | |
transfer logging = no | |
log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes. |
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 time import sleep | |
while True: | |
print(9) | |
sleep(1) |