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
| /* Horizontal auto-scroll for the first post panel on | |
| * https://www.vortexofinfinitediscovery.com/blogs/detourism | |
| * Paste into the DevTools console. Any user input (wheel/trackpad, touch, | |
| * drag, arrow keys) cancels it. Manual stop: __hScroll.stop() | |
| */ | |
| (() => { | |
| const PX_PER_SECOND = 40; // ← adjust speed here | |
| const LOOP = false; // true = wrap back to the start instead of stopping | |
| if (window.__hScroll) window.__hScroll.stop('restarted'); |
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
| document.addEventListener('DOMContentLoaded', function () { | |
| if (window.__autoScroll) { | |
| cancelAnimationFrame(window.__autoScroll.raf); | |
| window.__autoScroll.cleanup(); | |
| } | |
| const pxPerSecond = 40; // ← adjust speed here | |
| let last = null; |
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 | |
| # We don't need return codes for "$(command)", only stdout is needed. | |
| # Allow `[[ -n "$(command)" ]]`, `func "$(command)"`, pipes, etc. | |
| # shellcheck disable=SC2312 | |
| set -u | |
| abort() { | |
| printf "%s\n" "$@" >&2 |
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
| /* eslint-disable id-length */ | |
| import { ColorLuminance } from '../components/Util/Colors/ColorUtils' | |
| import colors from '../components/Util/Colors/colors' | |
| import designTokens from './designTokens' | |
| export const lightTheme = { | |
| name: 'light', | |
| backgroundColor: '#fff', //storybook background color | |
| colors: { |
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
| /* eslint-disable id-length */ | |
| const designTokens = { | |
| colors: { | |
| accent1: '#25af7f', | |
| accent2: '#3283c4', | |
| accent3: '#7635e2', | |
| accent4: '#9a3dc5', | |
| accent5: '#c24378', | |
| accent6: '#e18736', | |
| boxShadow: '#ffffff', |
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 bcrypt = require("bcrypt"); //package.json -- "bcrypt": "^3.0.6", ruby's gem version -> devise_token_auth (0.1.42) | |
| // async function main() { | |
| // // Create a new user called `Alice` | |
| // //const newUser = await prisma.createUser({ name: 'Alice' }) | |
| // //console.log(`Created new user: ${newUser.name} (ID: ${newUser.id})`) | |
| // // Read all users from the database and print them to the console | |
| // //const allUsers = await prisma.users() |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Next: Chrome", | |
| "url": "http://localhost:3000", | |
| "webRoot": "${workspaceFolder}" | |
| }, |