npm Users By Downloads (git.io/npm-top)
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
| # | User | Downloads |
|---|
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
| # | User | Downloads |
|---|
| // Add on element with overflow | |
| -webkit-mask-image: -webkit-radial-gradient(white, black); |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| /** | |
| * Converting seconds into proper time values like a digital clock | |
| * 00:01:03 | |
| */ | |
| let timmy = setInterval(showTime, 1000); | |
| let seconds = 3595; | |
| function showTime() { | |
| //update the time as hours, minutes, and seconds 00:00:00 |
| CREATE EXTENSION IF NOT EXISTS "unaccent" | |
| CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
| RETURNS TEXT AS $$ | |
| -- removes accents (diacritic signs) from a given string -- | |
| WITH "unaccented" AS ( | |
| SELECT unaccent("value") AS "value" | |
| ), | |
| -- lowercases the string | |
| "lowercase" AS ( |
| import { useCallback, useState } from 'react'; | |
| import { LayoutChangeEvent } from 'react-native'; | |
| export const useSize = (): [ | |
| { | |
| height: number; | |
| width: number; | |
| }, | |
| (event: LayoutChangeEvent) => void | |
| ] => { |
| diff --git a/node_modules/react-native/React/Views/RCTModalHostView.h b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| index 4e61886..2b8b6c0 100644 | |
| --- a/node_modules/react-native/React/Views/RCTModalHostView.h | |
| +++ b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| @@ -17,7 +17,7 @@ | |
| @protocol RCTModalHostViewInteractor; | |
| -@interface RCTModalHostView : UIView <RCTInvalidating> | |
| +@interface RCTModalHostView : UIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate> |
| // pages/_app.js | |
| import ReactNativeNextJsScrollRestore from '../react-native-next-scroll-restore' | |
| import { useEffect } from 'react' | |
| function MyApp({ Component, pageProps }) { | |
| useEffect(() => { | |
| const unsubscribe = ReactNativeNextJsScrollRestore.initialize() | |
| return () => { |
| import React, {useEffect, useState} from 'react'; | |
| const ON = 'on'; | |
| const OFF = 'off'; | |
| const defaultTimerValue = 3; | |
| const defaultTimerInterval= 1000; | |
| const defaultTimeOutCallback = ()=>{alert('Time Over)}; | |
| function useCountDownTimer({ | |
| initialValue = defaultTimerValue, | |
| interval = defaultTimerInterval, |