- É difícil definir o que é assíncrono.
- O termo assíncrono é sobre o que não é, isto é, não ser síncrono.
- Isso é devido a etimologia da palavra. A letra a refere-se a negação ou privação.
- O termo síncrono refere-se a processos que acontecem um após o outro.
- Por que não querer que algo seja síncrono? É para obter concorrência e paralelismo.
- Os termos concorrência e paralelismo referem-se a coisas que acontecem ao mesmo tempo.
This is my prefered way to create GIF animations for demos and whatnot.
- QuickTime » File » New Screen Recording
- Select area to record » Start recording your thing
- File » Export » Select max resolution available » Save
- Photoshop » Import » Video Frames to Layers (no need to follow step
2
if not on retina screen)
#Hangout sobre Docker
Dia: 02/12/2015
Horario: 20:00
*Lembrando que é horario de Brasilia.
###Link do Hangout
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 | |
return [ | |
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015) | |
'AC' => [ | |
1200013 => 'Acrelândia', | |
1200054 => 'Assis Brasil', | |
1200104 => 'Brasiléia', | |
1200138 => 'Bujari', | |
1200179 => 'Capixaba', |
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
/* | |
* Does not need to be wrapped in a class, I often have this in my model, | |
* but abstract when used more than once. | |
* @soruce: http://chrishayes.ca/blog/code/laravel-4-generating-unique-slugs-elegantly | |
*/ | |
class UniqueSlug { | |
public static function generateUniqueSlug($value) { | |
$slug = Str::slug($value); | |
$slugs = static::whereRaw("slug REGEXP '^{$slug}(-[0-9]*)?$'"); |
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
Requisitos | |
- Conhecimentos avançados em PHP e Orientação a Objetos | |
- Conhecimentos avançados em algum framework como Zend Framework 2, Silex ou Symfony | |
- Conhecimentos intermediários em Doctrine 2 (entidades, relacionamentos, dql) | |
- Conhecimentos avançados em testes unitários | |
- Interesse e facilidade em aprender novas tecnologias, linguagens de programação e ambientes de desenvolvimento | |
- Conhecimentos intermediários em banco de dados como MySQL e PostgreSQL | |
- Conhecimentos intermediários em Git | |
- Conhecimento básico de segurança e criptografia de dados: | |
- SSL; |
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 urllib.request | |
import json | |
resp = urllib.request.urlopen('http://worldcup.sfg.io/matches').read() | |
for jogo in json.loads(resp.decode('utf-8')): | |
if jogo['status'] == 'completed': | |
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x', jogo['away_team']['country'], jogo['away_team']['goals']) |
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 requests | |
jogos = requests.get('http://worldcup.sfg.io/matches').json() | |
for jogo in jogos: | |
if jogo['status'] in ('completed', 'in progress'): | |
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x', | |
jogo['away_team']['country'], jogo['away_team']['goals']) |
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
NewerOlder