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
[Flags] | |
public enum CharType | |
{ | |
Number = 0x0, | |
Upper = 0x1, | |
Lower = 0x2 | |
} | |
public CharGenerator(CharType charType) | |
{ |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
print '' | |
cao_gBps = 21.0 # GB por hora | |
# * 1024 => MB por hora | |
# * 8 => Mb por hora | |
# / 60 => Mb por minuto |
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
private DateTime[] StartTime; | |
private void ContaTempo(int i) | |
{ | |
if (StartTime[i] == DateTime.MinValue) | |
{ | |
StartTime[i] = DateTime.Now; | |
} | |
else |
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
img:hover { | |
-webkit-filter: grayscale(0%); | |
-webkit-transition: .5s ease-in-out; | |
-moz-filter: grayscale(0%); | |
-moz-transition: .5s ease-in-out; | |
-o-filter: grayscale(0%); | |
-o-transition: .5s ease-in-out; | |
} | |
img { |
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
# caminhar até o diretório para que a cópia não saia com o caminho completo | |
# (a cópia tera o caminho a partir do diretório atual do terminal) | |
cd /a/b/c/dir | |
# Copia os arquivos que foram modificados nos últimos X (30) dias | |
# (e seu caminho, a partir do diretorio atual do terminal) | |
find . -mtime -30 -exec cp --parents \{\} /x/y/z/novo-dir/ \; | |
# Verificar arquivos diferentes em uma árvore de diretórios | |
diff --brief -Nr dir1/ dir2/ |
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 sleep(delay) { | |
var start = new Date().getTime(); | |
while (new Date().getTime() < start + delay); | |
} |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Aug 8 21:21:59 2017 | |
@author: yitzhak | |
""" | |
# pip install --upgrade watson-developer-cloud |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
$(document).ajaxSuccess(function (event, jqXHR, ajaxSettings) { | |
function extrairUrlRedirecionamento(jqXHR) { | |
try { | |
var dados = $.parseJSON(jqXHR.responseText); | |
if (dados == null) { | |
return null; | |
} | |
if (dados.RedirecionarPara == null) { |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Nov 16 09:20:32 2017 | |
@author: yitzhak.andrade | |
""" | |
class Decorator: | |
def verificacao(parametro): |
OlderNewer