Skip to content

Instantly share code, notes, and snippets.

View arrudacaio's full-sized avatar
🎯
Focusing

Caio Arruda arrudacaio

🎯
Focusing
View GitHub Profile
/* Qual a diferença entre 'var', 'let' e 'const'?
*
* Todas essas keywords servem para declarar variáveis, mas cada uma delas tem nuances diferentes.
* /
/* Cada bloco de código nesta página é independente e deve ser executado em um ambiente JS limpo,
* sem variáveis globais declaradas.
*
* Comentários de bloco separam diferentes blocos de código.
*/
@peas
peas / linkedin.js
Last active September 27, 2024 18:04
linkedin script da loiane pra aprovar amizades massivamente
x = document.getElementsByClassName('artdeco-button--secondary'); for (let i=0 ; i<50; i++) x[i].click();
// falta paginacao e aceitar >100 numa tacada :P
@lucis
lucis / ufcg-pro.md
Last active March 7, 2023 15:51
Funcionalidade da extensão UFCGPro

Extensão UFCGPro

Funcionalidades

  • Ao instalar a extensão, automaticamente todas as funcionalidades serão disponibilizadas no próximo acesso ao Controle Acadêmico através do endereço https://pre.ufcg.edu.br:8443/ControleAcademicoOnline/Controlador e, de acordo com a página que o usuário esteja acessando, a funcionalidade será renderizada juntamente com o resto do conteúdo do sistema, como se fosse parte da implementação original.

Algumas funcionalidades são comuns para alunos e professores, como:

Próximo item da agenda

@diego3g
diego3g / NODE.md
Last active November 15, 2024 15:01
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@gaearon
gaearon / modern_js.md
Last active October 25, 2024 06:12
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@elliette
elliette / ManyToManyRelationships.md
Last active October 31, 2023 16:03
Describing `belongsToMany` and `hasMany` methods in Sequelize

Defining Many-to-Many Associations in Sequelize

Reference: Sequelize docs on association

Let’s say we have two models: Films and Festivals

We know that a film can be shown at many film festivals and that, conversely, a festival can show many films. This is what is known as a many-to-many relationship.

Knowing this, we can set up our associations:

@mfd
mfd / GTWalsheimPro.css
Last active May 3, 2024 16:52
GT Walsheim Pro
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Regular"),local("GTWalsheimProRegular"),url(GTWalsheimProRegular.woff2) format("woff2"),url(GTWalsheimProRegular.woff) format("woff"),url(GTWalsheimProRegular.ttf) format("truetype");
font-weight: 400;
font-style: normal
}
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Bold"),local("GTWalsheimProBold"),url(GTWalsheimProBold.woff2) format("woff2"),url(GTWalsheimProBold.woff) format("woff"),url(GTWalsheimProBold.ttf) format("truetype");
@lastguest
lastguest / JSON_to_URLEncoded.js
Created July 10, 2014 17:47
Convert JavaScript object to x-www-form-urlencoded format
function JSON_to_URLEncoded(element,key,list){
var list = list || [];
if(typeof(element)=='object'){
for (var idx in element)
JSON_to_URLEncoded(element[idx],key?key+'['+idx+']':idx,list);
} else {
list.push(key+'='+encodeURIComponent(element));
}
return list.join('&');
}