Skip to content

Instantly share code, notes, and snippets.

Avatar
💜
Helping make cities a better place to live at @cabify

Carlos Castillo carloscasalar

💜
Helping make cities a better place to live at @cabify
View GitHub Profile
@carloscasalar
carloscasalar / dbx_sample.go
Last active Jun 19, 2021
Golang dbx sample code
View dbx_sample.go
package main
// Playground https://play.golang.org/p/0dmqcE813l
import (
"database/sql"
"fmt"
"log"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
@carloscasalar
carloscasalar / github-emoji-codes.md
Last active Feb 3, 2021 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View github-emoji-codes.md

A small set of emojis with examples

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
@carloscasalar
carloscasalar / tipsElixir.md
Last active Feb 1, 2020
Elixir tips and links
View tipsElixir.md
@carloscasalar
carloscasalar / tipsGitlabCI.md
Created Jan 22, 2020
Gitlab CI / CD links and tips
View tipsGitlabCI.md

Gitlab CI / CD tips

  • Make a task be automatically retried => add retry: 2
  • Allow a task to fail => add allow_failure: true
  • Make a task manually actionable => add when: manual
@carloscasalar
carloscasalar / background.js
Created Mar 14, 2019 — forked from muralikg/background.js
puppeteer screen capture demo. Currently records 10 second video. Change the timeout in background.js with your own logic to stop the recording when necessary. Try with `node export.js`
View background.js
/* global chrome, MediaRecorder, FileReader */
chrome.runtime.onConnect.addListener(port => {
let recorder = null
port.onMessage.addListener(msg => {
console.log(msg);
switch (msg.type) {
case 'REC_STOP':
console.log('Stopping recording')
if (!port.recorderPlaying || !recorder) {
@carloscasalar
carloscasalar / tipsMySqlMariaDb.md
Created Jan 28, 2019
MySql / MariaDB links and tips
View tipsMySqlMariaDb.md