This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
// Acesse o menu na aba da sua Planilha de Jornada de Horas | |
// Ferramentas > Editor de Script | |
// Cole e salve este script, o Google provavelmente pedirá permissão de execução do script | |
// Acesse as configurações do Toggl no endereço https://toggl.com/app/profile | |
// Copie a sua apiToken | |
// Substitua aqui as variáveis necessárias | |
var apiToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
// Para obter os id`s de workspace e clientes, acesse a página reports, selecione o workspace e cliente e aplice o filtro |
# convert iso-8859-1 to unicode to utf-8, where `v` is the string in `iso-8859-1` format
v.decode("iso-8859-1").encode("utf-8")
And as a note, this is also some basic rule:
If you have no way of finding out the correct encoding of the file, then try the following encodings, in this order:
utf-8
iso-8859-1 (also known as latin-1)
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
var stringify = function(obj, prop) { | |
var placeholder = '____PLACEHOLDER____'; | |
var fns = []; | |
var json = JSON.stringify(obj, function(key, value) { | |
if (typeof value === 'function') { | |
fns.push(value); | |
return placeholder; | |
} | |
return value; | |
}, 2); |