Skip to content

Instantly share code, notes, and snippets.

View bevacqua's full-sized avatar

Nicolás Bevacqua bevacqua

View GitHub Profile
data:text/html,<img src='https://pbs.twimg.com/media/BgbgCfLIAAA4Qkj.jpg:large' style='display:block;margin:auto;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)'/>
@bevacqua
bevacqua / feeds.opml
Last active May 30, 2022 09:29
The RSS feeds I follow
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.1">
<!--Generated by NewsBlur - www.newsblur.com-->
<head>
<title>NewsBlur Feeds</title>
<dateCreated>2013-07-12 03:43:24.605173</dateCreated>
<dateModified>2013-07-12 03:43:24.605173</dateModified>
</head>
<body>
<outline text="Tech News" title="Tech News">
@bevacqua
bevacqua / NonBlockingRenderLoop.js
Last active July 22, 2021 17:24
Defer secondary portions of the DOM using `requestAnimationFrame`
import { Component, PropTypes } from 'react'
import { noop } from 'lodash'
import raf from 'raf'
const cache = new Map()
export function createNonBlockingRenderLoop({ key, concurrencyLevel = 1 }) {
if (cache.has(key)) {
return cache.get(key)
}
function flow (generator) {
var iterator = generator(next);
next();
function next (err, result) {
if (err) iterator.throw(err);
var item = iterator.next(result);
if (item.done) return;
if (typeof item.value === 'function') item.value(next);
}
}
@bevacqua
bevacqua / books.md
Last active October 13, 2018 16:52
Books I plan on buying this week

Web Performance

  • High Performance Web Sites: Essential Knowledge for Front-End Engineers
  • High Performance JavaScript (Build Faster Web Application Interfaces)
  • Even Faster Web Sites: Performance Best Practices for Web Developers
  • Designing for Performance: Weighing Aesthetics and Speed

Web Design

  • Adaptive Web Design: Crafting Rich Experiences with Progressive Enhancement (2nd Edition) (Voices That Matter)
@bevacqua
bevacqua / gulp-npm-publish.js
Created January 18, 2014 16:22
Publish packages to `npm` using Gulp.
var spawn = require('child_process').spawn;
gulp.task('npm', function (done) {
spawn('npm', ['publish'], { stdio: 'inherit' }).on('close', done);
});
g.php:
<html>
<head>
<script type="text/javascript">
function getCookie(name) {
var matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;

Keybase proof

I hereby claim:

  • I am bevacqua on github.
  • I am bevacqua (https://keybase.io/bevacqua) on keybase.
  • I have a public key ASAeOmVhOg-d7haH54CP58ZKefDpmz8H3h3JMZMd4h2Lswo

To claim this, I am signing this object: