Skip to content

Instantly share code, notes, and snippets.

View ulisesantana's full-sized avatar
😍
In love with TypeScript

Ulises Santana ulisesantana

😍
In love with TypeScript
View GitHub Profile
@RubenZagon
RubenZagon / create-source-video-obsidian.md
Created December 27, 2022 16:47
Template para Obsidian con el que agilizar el crear una nueva '💧 Fuente' de un 📺 Vídeo de YouTube del que ir extrayendo notas. ⚠️ Cosas a tener en cuenta: - Es necesario crear una API_KEY del servicio de Google "YouTube Data API v3" ⚠️

<%* videoUrl = await tp.system.prompt("URL del vídeo de YouTube");
async function getVideoData() {

const videoId = videoUrl.substring(32);
const apiKey = 'YOUR_API_KEY';  

const url = `https://www.googleapis.com/youtube/v3/videos?part=snippet&id=${videoId}&key=${apiKey}`;  

try {

@mcollina
mcollina / principles.md
Last active May 18, 2023 18:27
Matteo's Technical principles

Matteo Technical Principles

1. Conway’s Law is paramount.

Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.

In order to design a piece of software we need to “design” the team that is going to produce it.

2. Developer Experience is key to productivity

@jsmithdev
jsmithdev / WebComponent.js
Last active June 9, 2022 04:49
Web Component boilerplate for a native web-component (v1 spec)
/*
* Use tag to import via es6 module (html import deprecated in v1 spec :/ )
* <script type="module" src="../components/web-component/web-component.js"></script>
*/
'use strict()'
const template = document.createElement('template')
template.innerHTML = /*html*/`
<style>
.card {
@dideler
dideler / bot.rb
Last active May 17, 2024 15:33
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@ulisesantana
ulisesantana / docker-msyql.sh
Last active July 2, 2020 09:30
Create a MySQL docker instance for develop
#!/bin/bash
export MYSQL_ROOT_PASSWORD=root MYSQL_ROOT_HOST=%
sudo mkdir -p /data/mysql
sudo chmod -R 775 /data
docker run --name=mysql -d \
-e MYSQL_ROOT_PASSWORD \
@carlosble
carlosble / jsdaycan2017_js_engancha_resumen.md
Last active April 7, 2020 22:08
Por que JavaScript engancha, #JSDayCAN2017
  • Historia:

    • Eich escribió el primer prototipo de JS en 10 dias en Mayo de 1995
    • Creado en poco tiempo, sin restricciones, como en Java las Checked Exceptions o en C# los metodos finales.
    • JavaScript Jabber Podcast con Brendan Eich: https://devchat.tv/js-jabber/124-jsj-the-origin-of-javascript-with-brendan-eich
    • Aprender JavaScript me obligó a estudiar. Kudos a Pasku por la cantidad de recursos que me pasó.
    • Scheme: Higher-order functions o functors, lexical scoping
    • Lo mejor es su flexibilidad, es multiparadigma
  • Douglas Crockford Lectures on JavasScript:

@ankurk91
ankurk91 / bash_profile.md
Last active October 22, 2023 12:16
:octocat: Git branch name in Linux/Mac Bash Terminal

Mac OS : Show your git branch name on your bash terminal

⚠️ Does not work in zsh terminal

Add these lines in your ~/.bash_profile file

# Show current git branch name
parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
@arindam89
arindam89 / .bashrc
Created June 5, 2012 06:43
.bashrc example
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't overwrite GNU Midnight Commander's setting of 'ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->