Skip to content

Instantly share code, notes, and snippets.

View yshean's full-sized avatar

Yong Shean yshean

  • Comerge Solutions
  • Kuala Lumpur, Malaysia
  • X @shin_chong
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class Destination {
const Destination(this.index, this.title, this.icon, this.color);
final int index;
final String title;
final IconData icon;
final MaterialColor color;
}
@lopspower
lopspower / README.md
Last active May 28, 2024 13:18
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

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.

Download This sample on Google Play Store

@JBed
JBed / f_whitening.py
Last active April 9, 2020 16:08
1/f whitening for large natural images
#PCA whitening involves finding the inverse square root of the covariance matrix
#of a set of observations, which is prohibitively expensive when dealing
#with natural images
#starting with a path to a single image (img_path)
import numpy as np
from PIL import Image
from sklearn import preprocessing