Skip to content

Instantly share code, notes, and snippets.

// only works on react 18
import { useSyncExternalStore } from "react";
export const useColorScheme = () => {
const scheme = useSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
enum Message {
ChangeColor(u8, u8, u8),
Echo(String),
Move {x: u8, y: u8},
Quit,
}
struct Point {
x: u8,
y: u8,
#!/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"
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
@awareness481
awareness481 / README.md
Last active February 14, 2020 04:27
Slide in background CSS animation on hover
@awareness481
awareness481 / _reset.scss
Created October 19, 2019 02:03
CSS reset
/* 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,
{
"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",
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
import React from 'react';
import {
ImageBackground,
StyleSheet,
Text,
TouchableHighlight,
View
} from 'react-native';
import { Font } from 'expo';
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
entry: './src/app.js',
target: 'web',
node: {
fs: 'empty'