msysgit - ferramental de git para o windows, o qual inclui um terminal POSIX (mais na linha dos sistemas UNIX/Linux) que o MSDOS nativo do Windows
Materiais de apoio sobre sistema de controle de versão
https://speakerdeck.com/addyosmani/automating-front-end-workflow | |
--- | |
https://github.com/pablodenadai/GameOn/blob/master/client/app/index.html | |
https://github.com/pablodenadai/GameOn/blob/master/client/package.json | |
https://github.com/pablodenadai/GameOn/blob/master/client/bower.json |
msysgit - ferramental de git para o windows, o qual inclui um terminal POSIX (mais na linha dos sistemas UNIX/Linux) que o MSDOS nativo do Windows
Materiais de apoio sobre sistema de controle de versão
{ | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme", | |
"default_encoding": "UTF-8", | |
"draw_indent_guides": true, | |
"draw_white_space": "all", | |
"findreplace_small": true, | |
"font_face": "Monaco", | |
"font_options": | |
[ | |
"no_round" |
ajustes para cobrir toda a app
html:
<div id="loading" class="displayLoading">
<div class="displaySpinner"></div>
public static function dateDiff( date1:Date, date2:Date ) : String { | |
// calculando a diferença em milisegundos das datas | |
var sec:Number = date2.getTime() - date1.getTime(); | |
// verificando se a segunda data é inferior que a primeira | |
if( sec < 0 ) { | |
Alert.show( "The second date ocurred earlier than the first one!" ); | |
return null; | |
} |
''' | |
Curiosidades do Python e estruturas de loop | |
uma delas temos a funcao range a qual nos possibilita criar um array | |
facilmente... | |
ex.: | |
arr = range(10) |
import math | |
def aumentoPercentual(valorInicial, valorPercentual): | |
resultado = math.ceil( valorInicial * valorPercentual ) | |
return valorInicial + resultado | |
def reducaoPercentual(valorInicial, valorPercentual): | |
resultado = math.ceil( valorInicial * valorPercentual ) | |
return valorInicial - resultado |
def fatorial(n, limite=1): | |
if n == 0 or n == 1: | |
return 1 #por definição 0! ou 1! = 1 | |
if limite < 1 or limite >= n: | |
return -1 #representando valor incorreto | |
else : | |
fatArr = range(limite,n+1) | |
resultado = 1 | |
for i in fatArr: | |
resultado = resultado * i |
''' | |
Really elementary | |
A box contains some buttons. | |
1/4 of them are black, | |
1/8 of them are red, | |
and the rest are white. | |
There are 636 more white buttons than red buttons. | |
How many buttons are there altogether? |
def binaryStringCalc(strValue): | |
result = 0 | |
for v in strValue.split(' + '): | |
result += int(v,2) | |
return str(bin(result)).split('0b')[1] | |
print binaryStringCalc('110000001 + 100111001 + 100101000 + 10000011 + 111010001') |