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
| package com.sampleapp; | |
| import com.reactnativenavigation.controllers.SplashActivity; | |
| public class MainActivity extends SplashActivity { | |
| } |
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
Show hidden characters
| { | |
| "presets": [ | |
| "babel-preset-react-native-stage-0/decorator-support", | |
| "flow", | |
| "react-native" | |
| ], | |
| "env": { | |
| "development": { | |
| "plugins": [ | |
| "transform-react-jsx-source" |
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 assert = require("chai").assert; | |
| const { | |
| getAmountByCategoryInPeriod | |
| } = require('./transaction-test-1.js'); | |
| const CATEGORIES = { | |
| GROCERIES: 'groceries', | |
| EATING_OUT: 'eating_out', | |
| OTHER: 'other', | |
| SALARY: 'salary', |
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 users = [{ | |
| id: 1, | |
| name: 'Carlo', | |
| schoolId: 101 | |
| },{ | |
| id: 2, | |
| name: 'Gino', | |
| schoolId: 123 | |
| }]; |
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 https = require('https'); | |
| process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; | |
| const start = Date.now(); | |
| function doRequest() { | |
| https.request('https://www.google.com', res => { | |
| res.on('data', () => {}) | |
| res.on('end', () => { |
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 css: any = []; | |
| for (let i = 0; i < document.styleSheets.length; i += 1) { | |
| try { | |
| const sheet: any = document.styleSheets[i]; | |
| const rules = ('cssRules' in sheet) ? sheet.cssRules : sheet.rules; | |
| for (let j = 0; j < rules.length; j += 1) { | |
| const rule: any = rules[j]; | |
| if ('cssText' in rule) { css.push(rule.cssText); } else { css.push(`${rule.selectorText} {\n${rule.style.cssText}\n}\n`); } | |
| } |
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} from 'react'; | |
| import styled from '@emotion/styled'; | |
| import Image from 'next/image'; | |
| export function BlurringImage({ | |
| svg: [Svg, svgProps, rectangles], | |
| img, | |
| alt, | |
| style, | |
| blurLevel = 5, |
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
| function CustomImage({...props}: ImageProps) { | |
| const [src, setSrc] = React.useState(props.src); | |
| return ( | |
| <Image | |
| onError={() => setSrc('/assets/image-error.png')} | |
| placeholder="blur" | |
| blurDataURL="/assets/image-placeholder.png" | |
| {...props} | |
| src={src} |
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 {Links,LiveReload,Meta,Outlet,Scripts,ScrollRestoration} from "remix"; | |
| export default function App() { | |
| return ( | |
| <Document> | |
| <Layout> | |
| <Outlet /> | |
| </Layout> | |
| </Document> | |
| ); |
OlderNewer