Skip to content

Instantly share code, notes, and snippets.

View iagocavalcante's full-sized avatar
🖥️
Happy coding again!

Iago Angelim Costa Cavalcante iagocavalcante

🖥️
Happy coding again!
View GitHub Profile
@ChristianAlexander
ChristianAlexander / detect.livemd
Last active November 2, 2024 02:23
Face Detection in Elixir

Face Detection in Elixir

Mix.install(
  [
    {:evision, "~> 0.1"},
    {:kino, "~> 0.7"}
  ],
@rponte
rponte / using-uuid-as-pk.md
Last active October 30, 2024 19:58
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

const matrizInimigoGrande = [
[0,0],
[400,0],
[800,0],
[1200,0],
[1600,0],
[0,400],
[400,400],
[800,400],
[1200, 400],
@madrussa
madrussa / example-model.js
Last active January 27, 2021 07:44
Adonis v4 Multi Tenancy Example
'use strict'
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
const Model = use('Model')
class ExampleModel extends Model {
/**
* Add traits
*/
static boot () {
@vinicius73
vinicius73 / main.js
Created February 19, 2019 19:31
Vuex Route Guard DEMO
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import plugins from './plugins';
plugins({
router, store, Vue,
});
@carestad
carestad / vuejs.amsterdam.2019.slides.md
Last active March 3, 2022 19:07
Collection of slides from #vuejsamsterdam 2019

Day 1

Time Speaker(s) Title
08:45 Evan You State of the Vuenion (Founder of Vue.js)
09:00 Sarah Drasner
Guillaume Chau
Advanced Animations with Vue.JS (Vue.js Core Team)
SSR revolution with Vue 2.6
09:35 Tim Benniks Vue.js for L'oreal, a case study (Director of Frontend @Valtech Paris)
10:45 Jen Looper NativeScript-Vue + ML = The Great MiniBar Challenge: MixoLogy (Developer Advocate at Progress)
11:15 Filip Rakowski Modern Web Apps Performance Tricks with PWA and Vue.js (Founder Vue Storefront)
11:50 Sara Vieira [GraphQL + Apollo + Vue.js =
@omarciovsena
omarciovsena / restore-mongodb.sh
Created February 13, 2019 10:59
restore-mongodb
# exec: ./restore-mongodb.sh /path
mongorestore --db DATABASE_LOCAL --verbose $1
@omarciovsena
omarciovsena / backup-mongodb.sh
Created February 13, 2019 10:57
backup-mongodb
mongodump -h SERVER:PORT -d DATABASE -u USER -p PASSWORD -o $PWD"/bkp-$(date +'%Y-%m-%d-%H-%M-%S')"
@VitorLuizC
VitorLuizC / Icon.vue
Created January 23, 2019 14:10
Code-splitting (dynamic import) an image on Vue.
<template>
<img :src="image" :alt="icon" :title="'Ícone ' + icon" />
</template>
<script>
export default {
data () {
return {
image: ''
};