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
var exec = require('child_process').exec; | |
var child = exec("echo 'teste'", | |
function (error, stdout, stderr) { | |
if(stdout!==''){ | |
console.log('---------stdout: ---------\n' + stdout); | |
} | |
if(stderr!==''){ | |
console.log('---------stderr: ---------\n' + stderr); |
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
# coding=utf-8 | |
""" | |
Convert a file from one encoder to another | |
usage: python file_encoder.py 'source encode', 'target encode', | |
'source file', 'target' | |
example: python file_encoder.py 'iso8859-1', 'utf-8', 'file.html', | |
'file-utf8.html' | |
""" | |
import sys |
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
case HTTPoison.post(url, body, headers) do | |
{:ok, %HTTPoison.Response{status_code: 200, body: body}} -> | |
body | |
{:ok, %HTTPoison.Response{status_code: 404}} -> | |
"Not found :(" | |
{:error, %HTTPoison.Error{reason: reason}} -> | |
reason | |
end |
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
headers = [ | |
{"Content-Type", "application/x-www-form-urlencoded"}, | |
{"Accept", "text/html"} | |
] | |
encoded_text = URI.encode_www_form(text) | |
body = "text=#{encoded_text}" | |
case HTTPoison.post(url, body, headers) do | |
{:ok, %HTTPoison.Response{status_code: 200, body: body}} -> |
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
defmodule Fibonacci do | |
def calc(0), do: 1 | |
def calc(1), do: 1 | |
def calc(n) when n > 0, do: calc(n-2) + calc(n-1) | |
end |
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
let rec to_binary(value: UInt32)= | |
if value < 2u then | |
value.ToString() | |
else | |
let divisor = value/2u | |
let remainder = (value % 2u).ToString() | |
to_binary(divisor) + remainder |
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
create table #test_data(col1 varchar(100), col2 varchar(100)) | |
declare @i int = 0 | |
while (@i < 1000000) | |
begin | |
insert into #test_data(col1, col2) | |
values ('col1_' + right('00000000' + cast(@i as varchar(9)), 9), CONVERT(varchar(255), NEWID())) | |
set @i = @i + 1 | |
end |
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
{"lastUpload":"2021-07-10T03:58:02.482Z","extensionVersion":"v3.4.3"} |
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
choco install -y irfanview 7zip.install checksum firacode slack paint.net inkscape gimp irfanview-shellextension irfanviewplugins spotify nuget.commandline soapui pencil krita windirstat ngrok | |
choco install -y archive archiver grepwin procexp winmerge vim bat powertoys evernote nodejs.install audacity zoom-client powershell-core sql-server-management-studio zoomit visualstudio2019community | |
choco install visualstudiocode-insiders --pre -y |
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
$wc = New-Object System.Net.WebClient | |
For ($i=1; $i -le 100; $i++) { | |
$url = "https://membros.myvtmi.im/qrcode/http/cerimonias.myvtmi.im/cerimonia-$i" | |
$wc.DownloadFile($url, "c:\tmp\cerimonia-$i.png") | |
} |
OlderNewer