Skip to content

Instantly share code, notes, and snippets.

View oscarotero's full-sized avatar
Beautiful, open and accessible web

Óscar Otero oscarotero

Beautiful, open and accessible web
View GitHub Profile
@jeff-hykin
jeff-hykin / gist:4ed8910ccf248233d54294ad894142b9
Last active August 16, 2023 13:52
Deno Dependencies Discussion on Dups, Dissapearance, and Dev Experience

I appreciate the discussion, and I'll be eagerly awaiting Ryan's talk. @kevinwhinnery I'm really glad my response wasn't taken too negatively. I want these conversations to be productive, and, when changes don't negatively impact the ecosystem I generally try to avoid complaining about them (like deno KV). And feel free to bluntly correct/argue/criticize any of my points.

without some kind of semver aware central package manager, I don’t know how you solve duplicate and disappearing dependencies

Oh, that seems like the easy part for me, which does make wish I had the opportunity to present/discuss them before the team did all this work on a centralized package manager. I would like to start off with a bit more feedback before I get to that.

1st reaction; PM's don't--can't--help Disappearing deps

I like the deno team, and I would trust my best friend with my life. But if my best friend told me "Trust me bro, Github servers might go down, but MY server is reliable I've got this fancy SLA that says so.

@eusonlito
eusonlito / loader.js
Last active August 28, 2018 09:28
Service Worker loader and installer
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js').catch(function(e) {
console.error('Error during service worker registration:', e);
});
});
}
@oscarotero
oscarotero / index.html
Created August 4, 2018 18:28
Local storage notes
<!DOCTYPE html>
<html manifest="offline.manifest">
<head>
<meta charset="UTF-8">
<title>Notes - Save notes in your browser</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<meta name="author" content="Oscar Otero - http://oscarotero.com">
@eusonlito
eusonlito / basecamp-classic-files.php
Last active May 7, 2019 04:53 — forked from stelabouras/downloadFromBasecamp.php
Download all your file from Basecamp Classic
<?php
define('BASE', './basecamp'); // Folder to store files (must be writable)
define('BASECAMP_URL', '[YOUR BASECAMP URL HERE]'); // e.g. https://stelabouras.basecamphq.com/ (Don't forget the trailing slash!)
define('BASECAMP_KEY', '[YOUR API KEY HERE]'); // e.g. one huge string (found in 'My info' in the Authentication tokens section)
define('COOKIE', tempnam(sys_get_temp_dir(), uniqid()));
function curl($url, $prefix = true)
{
$url = ($prefix ? BASECAMP_URL : '').$url;
@eusonlito
eusonlito / local-backup.sh
Last active June 26, 2023 04:25
Easy backup script into a local computer
#!/bin/bash
# -------------------------------------
# Script to do incremental rsync backups
# into a local computer
#
# This script is freely distributed under the GPL
# -------------------------------------
@oscarotero
oscarotero / Utils.md
Last active November 5, 2019 15:50
Links utiles
@oscarotero
oscarotero / Instruccións.md
Last active July 20, 2016 18:18
Intruccións para instalar un servidor

Instalación dun servidor

1. Preparación básica

# Actualización de paquetes
apt-get update
apt-get upgrade

# Instalación doutros paquetes
@kosamari
kosamari / _ServiceWorker_for_github_pages.md
Last active April 1, 2024 05:44
ServiceWorker for github pages.

ServiceWorker for github pages

This is a ServiceWorker template to turn small github pages into offline ready app.

Why ?

Whenever I make small tools & toys, I create github repo and make a demo page using github pages (like this one).
Often these "apps" are just an index.html file with all the nessesary CSS and JavaScript in it (or maybe 2-3 html/css/js files). I wanted to cache these files so that I can access my tools offline as well.

Notes

Make sure your github pages have HTTPS enforced, you can check Settings > GitHub Pages > Enforce HTTPS of your repository.

@oscarotero
oscarotero / oom.html
Last active August 9, 2016 08:30
Selo para as webs.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--
███████
██████▌
▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄ ██████
▄███████████▄ ▄███████████▄ ▐█████▄███████▄▄███████▌ █████▌
▄██████▀ ▀████████████▀ ▀████████████▀▀███████▀▀███████ █████