Skip to content

Instantly share code, notes, and snippets.

View williamsiuhang's full-sized avatar

William Siuhang williamsiuhang

View GitHub Profile
@williamsiuhang
williamsiuhang / settings.json
Created May 17, 2020 05:20
VS Code default dark + theme modification
{
"workbench.preferredDarkColorTheme": "Seti Monokai",
"workbench.preferredHighContrastColorTheme": "Seti Monokai",
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"[Default Dark+]": {
"editor.background": "#161616",
"editorIndentGuide.background": "#2c2c2c",
"editor.selectionBackground": "#135564",
@williamsiuhang
williamsiuhang / rn-gyroscope-parallax.js
Created July 9, 2020 20:41
React Native Image 3D Parallax using mobile gyroscope (Expo's DeviceMotion)
import React from 'react';
import { View, Animated, Easing } from 'react-native';
import { DeviceMotion } from 'expo-sensors';
class AnimatedAnalyticsImage extends React.Component {
state = {
motionX: 0,
motionY: 0,
motionZ: 0