Skip to content

Instantly share code, notes, and snippets.

View quibaritaenperdresatrompe's full-sized avatar

Valentin Barit quibaritaenperdresatrompe

View GitHub Profile
function saveDataURLAsImage(data, filename = 'untitled.jpeg') {
const link = document.createElement('a')
link.style.hidden = true
link.href = data
link.download = filename
document.body.appendChild(link)
link.click()
}
function saveVideoAsImage() {
specs/besoins :
- partager une carte de visite
- template (personnalisable) Ctrl Up
- point d'entrée vers les différents réseaux/resources web, vcard, etc.
- un lien simple et lisible par humain e.g. johndoe.ctrlup.io
- un QR code ?
- génération et publication automatique/industrielle
- source de données : Tatou
bonus :
#!/usr/bin/env bash
#
# One line prompt showing the following configurable information
# for git:
# time (virtual_env) username@hostname pwd git_char|git_branch git_dirty_status|→
#
# The → arrow shows the exit status of the last command:
# - bold green: 0 exit status
# - bold red: non-zero exit status
#