Skip to content

Instantly share code, notes, and snippets.

Allan Nava Allan-Nava

Block or report user

Report or block Allan-Nava

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Allan-Nava /
Created May 24, 2019 — forked from lopspower/
Hexadecimal color code for transparency

Hexadecimal color code for transparency


How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

View main.dart
// Allan Nava snippet code
import 'dart:math' as math;
void main() {
var value = toBits(3039003383);
static double toBits(int bits) {
Allan-Nava /
Created Mar 27, 2018 — forked from joyrexus/
Vanilla JS equivalents of jQuery methods

Sans jQuery


// jQuery
$(document).ready(function() {
  // code
You can’t perform that action at this time.