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
| // only works on react 18 | |
| import { useSyncExternalStore } from "react"; | |
| export const useColorScheme = () => { | |
| const scheme = useSyncExternalStore( | |
| subscribe, | |
| getSnapshot, | |
| getServerSnapshot | |
| ); |
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
| enum Message { | |
| ChangeColor(u8, u8, u8), | |
| Echo(String), | |
| Move {x: u8, y: u8}, | |
| Quit, | |
| } | |
| struct Point { | |
| x: u8, | |
| y: u8, |
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/bash | |
| set -euxo pipefail | |
| npm install | |
| npm run build | |
| export CHROME_PATH=$(which google-chrome-stable) | |
| export LHCI_BUILD_CONTEXT__EXTERNAL_BUILD_URL="$BUILD_URL" |
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
| error - ./node_modules/next/dist/client/next-dev.js | |
| Error: Cannot find module 'core-js/modules/es6.regexp.to-string' | |
| Require stack: | |
| - C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\lina | |
| ria\lib\loader.js | |
| - C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\lina | |
| ria\loader.js | |
| - C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\load | |
| er-runner\lib\loadLoader.js | |
| - C:\Users\p\Documents\create-next-app tests\with-linaria-test\node_modules\load |
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
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) | |
| */ | |
| /* | |
| Reset.scss provided by @hcatlin - https://gist.github.com/hcatlin/1027867 | |
| */ | |
| html, |
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
| { | |
| "name": "laravel/laravel", | |
| "description": "The Laravel Framework.", | |
| "keywords": ["framework", "laravel"], | |
| "license": "MIT", | |
| "type": "project", | |
| "require": { | |
| "php": ">=7.0.0", | |
| "barryvdh/laravel-dompdf": "^0.8.1", | |
| "doctrine/dbal": "^2.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
| const express = require('express'); | |
| const http = require('http'); | |
| const path = require('path'); | |
| const routes = require('./routes'); | |
| const app = express(); | |
| const server = http.createServer(app); | |
| // view engine |
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 from 'react'; | |
| import { | |
| ImageBackground, | |
| StyleSheet, | |
| Text, | |
| TouchableHighlight, | |
| View | |
| } from 'react-native'; | |
| import { Font } from 'expo'; |
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 path = require('path'); | |
| const CopyWebpackPlugin = require('copy-webpack-plugin') | |
| module.exports = { | |
| entry: './src/app.js', | |
| target: 'web', | |
| node: { | |
| fs: 'empty' |
NewerOlder