Skip to content

Instantly share code, notes, and snippets.

View mbaez's full-sized avatar

Maximiliano Báez González mbaez

  • @willdompy
  • Asunción, Paraguay
View GitHub Profile
@tyrasd
tyrasd / index.html
Last active June 18, 2022 13:35
minimal Overpass Leaflet example
<!DOCTYPE html>
<html>
<head>
<title>Example: Overpass-API with Leaflet.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<style>
body {
padding: 0;
@mbaez
mbaez / gmail-pop3-refresh.js
Last active March 7, 2021 18:05
This script, force one click, every 10 seconds in Gmail Refresh Pop Account button
/**
* This script, force one click, every 10 seconds in Gmail Refresh Pop Account button
* @author Maximiliano Báez
*/
var $popup = window.open("https://mail.google.com/mail/ca/u/0/?shva=1#settings/accounts",'_blank', 'toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10000, top=10000, width=10, height=10, visible=none');function refreshPop(){var $el = $popup.document.getElementsByClassName("rP sA"); if($el.length>0){$el = $el[0]; $el.click(); console.log($el)} setTimeout(refreshPop, 10000)};refreshPop();
@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });
<html>
<head>
<title>Checkbox</title>
<style>
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{