Skip to content

Instantly share code, notes, and snippets.

@codediodeio
codediodeio / database.rules.json
Last active January 28, 2024 19:07
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@iscarlets
iscarlets / modello-base-wd.md
Last active June 30, 2018 09:41
Un modello di proposta di lavoro per il Web Desing

Disclaimer Un po' di parti di questo modello sono spudoratamente copiate, riprese, adattate e tradotte dal Contract killer di Stuff & Nonsense che potete vedere qui: https://gist.github.com/malarkey/4031110.

Potevo, visto che è open source.

La prima pagina della proposta di lavoro mette insieme tutte le informazioni essenziali:

- che lavoro è;
- chi lo fa;
- chi lo commissiona;
@stevecalamia
stevecalamia / Background Color Changer
Last active April 21, 2018 01:48
A quick tutorial on how to create the changing background inspired by this site: http://www.noisli.com/
A quick tutorial on how to create the changing background inspired by this site: http://www.noisli.com/
@mhulse
mhulse / Setting up Google Cloud Storage with CORS for Web Fonts.md
Last active August 5, 2023 19:17
Setting up CORS on Google Cloud Storage: An unofficial quick start guide to serving web fonts from Google's cloud. (I'm sure a lot of this info could be improved... Please leave comments if you have tips/improvements.)

Login:

Google Cloud Storage

You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)

When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.

Once verified, you'll have to agree to the terms of service; do that, and click continue.

@thomseddon
thomseddon / gist:3511330
Last active March 8, 2023 03:39
AngularJS byte format filter
app.filter('bytes', function() {
return function(bytes, precision) {
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-';
if (typeof precision === 'undefined') precision = 1;
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'],
number = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number];
}
});
@mattbaker
mattbaker / README
Created December 22, 2011 06:02
SVG to PNG render with Node and D3.js
This example expects to have d3.min.js and d3.layout.min.js in the same directory as pie.js and pie_serv.js.
Run with node pie_serv.js