Skip to content

Instantly share code, notes, and snippets.

View bevacqua's full-sized avatar

Nicolás Bevacqua bevacqua

View GitHub Profile

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:

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;
@bevacqua
bevacqua / argentinean-pizza-recipe.md
Last active March 2, 2017 18:36
A rushedly-but-lovingly-put recipe of how we make pizza at home

Argentinian pizza at home

This is how we make Argentinian pizza at home! it’s not the pizzeria recipe (called “pizza al molde”), but it’s better than what you’ll find in most restaurants, and the true “pizza al molde” isn’t for everyone either. I think this one is better for the average outlander.

  • yields roughly 4-7 pizzas depending on the size of your pizza pans

Closest photos I could find on the internet:

@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)
}
blockquote.twitter-tweet {
overflow: hidden;
color: #1c2022;
background-color: #fff;
border: 1px solid #e1e8ed;
border-radius: 4px;
width: 500px;
max-width: 100%;
min-width: 220px;
padding: 1.25rem 1.25rem 0.725rem 1.25rem;
@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)
'use strict';
var fs = require('fs');
var gm = require('gm');
var but = require('but');
var path = require('path');
var contra = require('contra');
var Imagemin = require('imagemin');
var pngquant = require('imagemin-pngquant');
var mozjpeg = require('imagemin-mozjpeg');
@bevacqua
bevacqua / wiring.js
Created July 3, 2015 13:33
The wiring module in ponyfoo/ponyfoo when autogenerated by `taunus -o`
'use strict';
var templates = {
'account/bio': require('../views/shared/account/bio.js'),
'account/login': require('../views/shared/account/login.js'),
'articles/archives': require('../views/shared/articles/archives.js'),
'articles/article': require('../views/shared/articles/article.js'),
'articles/articles': require('../views/shared/articles/articles.js'),
'articles/comment-thread': require('../views/shared/articles/comment-thread.js'),
'articles/comment': require('../views/shared/articles/comment.js'),
@bevacqua
bevacqua / vodafone-fix.js
Last active August 29, 2015 14:21
Bookmarlet to fix "Insufficient Funds" interstitial
javascript:void(s=document.createElement('style'),document.body.appendChild(s),s.innerHTML='body{background-color:#d1ecf4;color:#555;font-family:"Comic Sans MS",Georgia,Helvetica}strong{font-size:50px;display:inline-block;text-align:center;-webkit-animation:tt-bounce-in .6s;-moz-animation:tt-bounce-in .6s;-o-animation:tt-bounce-in .6s;-ms-animation:tt-bounce-in .6s;animation:tt-bounce-in .6s;color:#e92c6c}@media only screen and (min-width:500px){strong{font-size:80px}}@media only screen and (min-width:900px){strong{font-size:150px}}@-moz-keyframes tt-bounce-in{0%{-webkit-transform:translateY(-2000px);-moz-transform:translateY(-2000px);-o-transform:translateY(-2000px);-ms-transform:translateY(-2000px);transform:translateY(-2000px);opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0)}60%{-webkit-transform:translateY(30px);-moz-transform:translateY(30px);-o-transform:translateY(30px);-ms-transform:translateY(30px);transform:translateY(30px);opacity:1;-ms-filter:none;f
<table>
<thead>
<tr>
<th>PID</th>
<th>Level</th>
<th>Message</th>
<th>When</th>
</tr>
</thead>