Skip to content

Instantly share code, notes, and snippets.

View thijssmudde's full-sized avatar

Thijs Smudde thijssmudde

View GitHub Profile
import {
type ReactNode,
createContext,
useContext,
useMemo,
useState,
useLayoutEffect,
useEffect,
} from "react";
import { useIsIOS } from "@/hooks/useIsIOS";
@thijssmudde
thijssmudde / stopwatch.js
Created March 1, 2018 14:15
Stopwatch Resume and Stop
resume = () => {
//update the timestart to continue with same time
this.setState(state => {
let timestart = moment().unix() - (this.state.timestop - this.state.timestart)
return {running: true, timestart}
}, () => {
this.startTimer()
})
@thijssmudde
thijssmudde / .eslintrc
Last active February 17, 2018 20:37 — forked from radiovisual/.eslintrc
React Native AirBnB ESLint Config (Fixed)
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
[
{
"x": 0.008135145450665321,
"y": 13.82066535949707
},
{
"x": 0.09008652244128991,
"y": 13.82981014251709
},
{
<string name="action_donate">Doneer</string>
<string name="action_search_place">Zoek naar plaats</string>
<string name="viewmode">KIJKMODUS</string>
<string name="action_sign_in">Log In of registreer</string>
<string name="action_sign_in_short">Log In</string>
<string name="action_upload">Upload Route</string>
<string name="action_website">Bezoek Website</string>
<string name="action_write_review">Schrijf Review</string>
<string name="colorpicker_line_summary">Kleur van het pad</string>
<string name="colorpicker_line_title">Track Kleur</string>
@thijssmudde
thijssmudde / Meteor Useful Packages
Created June 26, 2015 00:15
Meteor Useful Packages
255kb:meteor-status
accounts-facebook
accounts-google
accounts-password
accounts-twitter
amr:parsley.js
copleykj:jquery-autosize
email
http
iron:router
@thijssmudde
thijssmudde / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
@thijssmudde
thijssmudde / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;