Skip to content

Instantly share code, notes, and snippets.

View snowiewdev's full-sized avatar
🐈

Snowie Wong snowiewdev

🐈
View GitHub Profile
@snowiewdev
snowiewdev / README.md
Created March 11, 2022 17:07 — forked from lopspower/README.md
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

@snowiewdev
snowiewdev / flutter_setup.md
Created November 17, 2021 04:57 — forked from bradtraversy/flutter_setup.md
Flutter dev setup & notes
@snowiewdev
snowiewdev / intrinsic-ratios.html
Created September 14, 2021 03:04 — forked from alexcarpenter/intrinsic-ratios.html
Intrinsic Ratios with CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Intrinsic Ratios</title>
<style>
body {
max-width: 800px;
@snowiewdev
snowiewdev / answer1.js
Last active March 11, 2022 17:08
Oursky Developer Pre-test
function isSubset(arr1, arr2) {
// convert arr1 as obj with keys to allow direct lookup for values, avoid loop in another loop
let obj = {};
arr1.forEach((el, index) => {
obj[el] = index;
})
// loop through arr2 and direct lookup in obj, see if all arr2 elements are present in arr1
let result = arr2.every((el)=>{
return obj[el] !== undefined;