Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@marksyzm
marksyzm / useTimingAnimation.ts
Created July 14, 2021 13:12
React native Animated timing hook for tweening
import {useEffect, useRef, useState} from 'react';
import {Animated} from 'react-native';
function useTimingAnimation(
initialValue: number,
{
delay,
duration,
easing,
toValue,
@marksyzm
marksyzm / app-now.tsx
Created February 19, 2020 08:08
Moment from now generator for StencilJS
import { Component, Prop, State } from '@stencil/core';
import { interval, Subject } from 'rxjs';
import { takeUntil, startWith } from 'rxjs/operators';
import moment from 'moment';
@Component({
tag: 'app-now'
})
export class Now {
@Prop() time: number;
@marksyzm
marksyzm / A-Pen-by-Mark-Elphinstone-Hoadley.markdown
Created March 13, 2014 12:30
A Pen by Mark Elphinstone-Hoadley.