Skip to content

Instantly share code, notes, and snippets.

View cprecioso's full-sized avatar

Carlos Precioso cprecioso

View GitHub Profile
@cprecioso
cprecioso / input.d.ts
Created July 30, 2019 13:16
rollup-plugin-dts bigint test case
export declare function foo(): bigint
@cprecioso
cprecioso / pnpn-debug.yml
Created September 5, 2016 09:06
pnpm error installing runas
---
0 debug pnpm:mkdirp: "/Users/carlos/.pnpm-store"
1 debug pnpm:install: "installing runas"
2 progress runas: "resolving"
3 debug pnpm:http: "https://registry.npmjs.org/runas"
4 progress runas:
- "resolved"
-
spec:
raw: "runas"
@cprecioso
cprecioso / keybase.md
Created June 1, 2016 21:50
Keybase Proof

Keybase proof

I hereby claim:

  • I am cprecioso on github.
  • I am cprecioso (https://keybase.io/cprecioso) on keybase.
  • I have a public key whose fingerprint is 91A3 CCFC DEEF 449E 9E63 7179 6198 B5E7 24F7 5A03

To claim this, I am signing this object:

@cprecioso
cprecioso / script.js
Created May 13, 2016 19:50
Analizar notas Intranet UPV
"use strict";
function redondear(n) {
var decimales = arguments.length <= 1 || arguments[1] === undefined ? 2 : arguments[1];
var potencia = Math.pow(10, decimales);
return Math.round(n * potencia) / potencia;
}
function acumuladas(datos, rasero) {
@cprecioso
cprecioso / index.js
Created April 22, 2016 12:52
Bug in rollup-plugin-babel
class Foo {}
export {Foo}
@cprecioso
cprecioso / README.md
Last active February 23, 2016 13:51
Youtube.com to yout.com

Bookmarklet to download video from Yout.com

To build:

  1. browserify index.js | uglifyjs --screw-ie8 -m -c -- - > index.min.js
  2. Update index.html with URL from RawGit
@cprecioso
cprecioso / autologin.js
Last active August 29, 2015 14:16
PoliREformaT
// ==UserScript==
// @name Auto login PoliformaT
// @namespace
// @version 0.1
// @description Auto redirects to login page in PoliformaT when logged out
// @author Carlos Precioso
// @match https://poliformat.upv.es/portal
// @grant none
// ==/UserScript==
@cprecioso
cprecioso / index.html
Created January 22, 2015 21:56
Calculador de notas mínimas / máximas
<!DOCTYPE html>
<html lang="es">
<head>
<title>Calculadora de notas</title>
<meta charset="utf-8" />
<script id="template" type="text/ractive">
<p>
{{#if friki}}
Redondear a {{ dec }} decimales<br />