Skip to content

Instantly share code, notes, and snippets.


Joan León nucliweb

View GitHub Profile
View fcbarcelona.css
@charset "UTF-8"; /*! normalize.css v3.0.2 | MIT License | */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
body {
margin: 0
View download-images.js
function getImages(uri) {
var request = require('request');
var url = require('url');
var cheerio = require('cheerio');
path = require('path')
var fs = require('fs');
request(uri, function (error, response, body) {
if (!error && response.statusCode == 200) {
$ = cheerio.load(body)
View index.html
<canvas id="canvas"></canvas>
<canvas id="postprocessing"></canvas>
<script id="shader-fs" type="x-shader/x-fragment">
precision highp float;
uniform sampler2D uImage;
uniform vec2 uResolution;
uniform float uTime;
varying vec2 vTexCoord;
void main() {
View .hiper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View custom-metrics.js
const po = new PerformanceObserver(() => {});
po.observe({type: 'largest-contentful-paint', buffered: true});
const lastEntry = po.takeRecords().slice(-1)[0];
return lastEntry.renderTime || lastEntry.loadTime;
const po = new PerformanceObserver(() => {});
po.observe({type: 'layout-shift', buffered: true});
return po.takeRecords().reduce((val, entry) => val + entry.value, 0);
View FontUsageAnalyzer.js
// Fork of
// By Paul Calvano
// Font Usage Analyzer
// Parses CSS, Resource Timing and DOM to associate WebFont URLs with FontStacks.
// Allows for highlighting of font stacks correlating to WebFont URLs to examine where they are used on the page
// @author Paul Calvano
// @license MIT
// @copyright 2017 Akamai Technologies, Inc.
nucliweb /
Created Apr 3, 2020 — forked from whitingx/
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
nucliweb /
Last active Sep 21, 2019
Twitter accounts you should follow if you like Image & Video Optimization
nucliweb /
Created Aug 29, 2019
disable the shadow added when capturing an entire window

Disable the shadow

You can disable the shadow added when capturing an entire window by executing the following command from the Terminal:

defaults write disable-shadow -bool TRUE; killall SystemUIServer

Enable the shadow

You can’t perform that action at this time.