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

Package name: xxx (temporary name)

Update

xxx update: Updates the dependencies in the code. You can pass a list of patterns. For example:

  • xxx update deps.ts Updates a file
  • xxx update deps/*.ts Updates all files matching this pattern
  • xxx update deps.ts deps/*.ts Updates all files matching several patterns

JSR feedback

I've been testing jsr with some packages. The experience was good in general but I would like to drop here my impressions, I hope you find them useful.

FastCheck

I used to avoid unnecessary typing in my TS code but seems that the new TypeScript checking for JSR (called FastCheck) is much more strict than the Deno default configuration (which was also quite strict). This made me think about one of the main flaws of Deno (in my opinion): The segmentation of the developer experience.

I had the same feeling before when Deno Deploy was released. Everybody assumed that you could deploy your Deno code until we realized that Deno Deploy is not the same as Deno CLI and doesn't support the same features. This difference between both runtimes has a reason (and it's understandable), but it breaks the expectation and introduces friction in the Deno ecosystem UX.

@oscarotero
oscarotero / module.js
Created May 22, 2016 11:25
Boilerplate to create amd/cmjs/root js modules
(function (root, factory) {
if(typeof define === "function" && define.amd) {
// Now we're wrapping the factory and assigning the return
// value to the root (window) and returning it as well to
// the AMD loader.
define(["postal"], function(postal){
return (root.myModule = factory(postal));
});
} else if(typeof module === "object" && module.exports) {
// I've not encountered a need for this yet, since I haven't

6 persoas

Coordinadora (1 persoa)

  • 16h/semana

documentación/catalogación (3 persoas):

  • coordinadora
  • Persoa 1: 4h/semana
  • Persoa 2: 4h/semana
/**
* iPhone X notch: Remove the white bars in Safari
* It's needed to include the "viewport-fit=cover" directive in the html. For example:
* <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
*
* More info: http://stephenradford.me/removing-the-white-bars-in-safari-on-iphone-x/
*/
.wrapper {
background-color: red;
padding: env(safe-area-inset-top)

Proposal for a PSR for message translator

The main aim of this proposal is to provide a common interface for the interoperability of message translations across different packages

What is the scope?

  • Provide a way to consume message translations in different languages.
  • Allow handling plurals
  • Allow using translations from different contexts and domains
@oscarotero
oscarotero / Utils.md
Last active November 5, 2019 15:50
Links utiles
<!DOCTYPE html>
<html>
<head>
<title>Drag test</title>
<style>
#zone {
position: relative;
background: yellow;
height: 800px;
}
@oscarotero
oscarotero / states.md
Last active January 9, 2019 10:10
States

List of states to take into consideration

Network

  • Online
    • Loading content
    • Content loaded (default)
    • Flaky network
    • Content failing to load
  • Offline