This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react'; | |
| interface CharacterByCharacterMaskInputProps | |
| extends Omit< | |
| React.HTMLAttributes<HTMLInputElement>, | |
| 'onChange' | 'value' | 'defaultValue' | 'type' | |
| > { | |
| maskDelay?: number; | |
| maskChar?: string; | |
| className?: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "workbench.colorCustomizations": { | |
| "editor.background": "#131313", | |
| "editor.foreground": "#EEFFFF", | |
| "sideBar.background": "#131313", | |
| "sideBar.foreground": "#B0BEC5", | |
| "sideBar.border": "#2A2A2A", | |
| "activityBar.background": "#131313", | |
| "activityBar.foreground": "#EEFFFF", | |
| "activityBar.border": "#2A2A2A", | |
| "statusBar.background": "#131313", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dynamic Gradient Background Effect</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| height: 100vh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let currentPage = 0; | |
| let lastPage = 100; | |
| let total = 0; | |
| const fetchSpends = async (page) => { | |
| console.log(`fetching for ${page}, ${lastPage}`); | |
| const res = await fetch(`https://www.zomato.com/webroutes/user/orders?page=${page}`); | |
| const data = await res.json(); | |
| lastPage = data.sections.SECTION_USER_ORDER_HISTORY.totalPages; | |
| return data.entities.ORDER; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { StateNavigator } from 'navigation'; | |
| import { NavigationContext, NavigationHandler } from 'navigation-react'; | |
| import { NavigationBar, NavigationStack, Scene, TabBar, TabBarItem } from 'navigation-react-native'; | |
| import React, { useContext, useMemo } from 'react'; | |
| import { Platform } from 'react-native'; | |
| import Home from '~screens/Home'; | |
| import Player from '~screens/Player'; | |
| import Search from '~screens/Search'; | |
| import { theme } from '~styles'; | |
| import { fonts } from '~styles/theme'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const stateNavigator = new StateNavigator([ | |
| { key: 'tabs' }, | |
| { key: 'home', trackCrumbTrail: true }, | |
| { key: 'search', trackCrumbTrail: true }, | |
| { key: 'player', trackCrumbTrail: true } | |
| ]); | |
| const App = () => { | |
| return ( | |
| <> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Wrapper script for the letsencrypt client to generate a server certificate in | |
| # manual mode. It uses openssl to generate the key and should not modify the | |
| # server configuration. It can be called off-side, i.e. not on the destination | |
| # server. | |
| # | |
| # usage: letsencrypt_create.sh DOMAIN [DOMAIN...] | |
| set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| title: 'Squircle', | |
| home: new Scaffold( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. Go to https://analytics.twitter.com/ | |
| // 2. Keep scrolling till the end until all the stats data is loaded | |
| // 3. Right click on the page click on last option "Inspect" a window should open select console from that | |
| // 4. copy this entire function | |
| function getVal (val) { | |
| val=val.replace(/\,/g,''); |
NewerOlder