Skip to content

Instantly share code, notes, and snippets.

View Camilotk's full-sized avatar

Camilo Cunha de Azevedo Camilotk

View GitHub Profile
// not iterable
{
const myItem = {
a: 1,
b: 2
}
// const r = [...myItem] // TypeError: myItem is not iterable
}
// now object is iterable
@takanuva
takanuva / agt.h
Last active July 25, 2022 19:57
Simple generic print() and scan() macros
/*******************************************************************************
* Copyright 2022 Paulo Torrens *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to *
* deal in the Software without restriction, including without limitation the *
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or *
* sell copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
@viglioni
viglioni / introducao-ao-lisp.clj
Last active December 13, 2021 02:46
Código escrito durante o live coding "Introdução ao LISP"
;;
;; Link para o live coding: https://www.youtube.com/watch?v=IIp9YaXRHVY
;;
;;
;; Exemplo de map
;;
(map
(fn [x] (str "Hello " x))
@yogthos
yogthos / clojure-beginner.md
Last active July 15, 2024 20:45
Clojure beginner resources

Introductory resources

[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)

Comandos de Terminal

Comando Alias/Abrv. O que faz? Exemplo
echo Imprime a string no output echo Hello World
mkdir make directory Cria um novo diretório mkdir nome_pasta
ln link Cria link ln ./arquivo /usr/caminho
chown change owner Muda o dono e grupo do arquivo chown x+a ./arquivo
chmod change mode Muda o modo de leitura do arquivo chomod 777 ./arquivo
touch Muda as inform. de leitura ou cria arquivo vazio touch index.php
@netsensei
netsensei / dell-xps-9380.md
Last active June 19, 2024 13:49
Installing Fedora 30/31 on Dell XPS 13 9380

Installing Fedora 30/31 on a Dell XPS 13 9380 series in dual boot mode

This guide describes how to install Fedora 30/31 next to Windows 10 on a Dell XPS 13 9380 series in dual boot.

  • Keep the stock Windows 10 installation that came with the laptop.
  • Install Fedora 30 alongside Windows on the hard disk.
  • Install GRUB as the bootloader allowing you to choose which OS to boot from.

Authored: September 2019

@diego3g
diego3g / settings.json
Last active July 26, 2024 12:28
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 15,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],
@maiquealmeida
maiquealmeida / Extensões
Last active April 11, 2024 18:59
Arquivo de configuração do VSCode para a GoStack 2019
- Dracula Oficial
- VSicons
- Color Highlight
- EditorConfig for VSCode
- ESLint
- Prettier - Code formatter
- Rocketseat Snippets