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
SELECT | |
* | |
FROM | |
people | |
WHERE | |
( | |
(first_name > 'Aaron') -- Names after Aaron | |
OR | |
(first_name = 'Aaron' AND id > 25995) -- Aarons, but after the last id that the user saw | |
) |
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": "Ace-TM Theme", | |
"type": "dark", | |
"colors": { | |
"editor.background": "#352e3c", | |
"editor.foreground": "#d6dbd8", | |
"editorGutter.background": "#352e3c", | |
"editorGutter.foreground": "#7d817f", | |
"editorCursor.foreground": "#eee", | |
"editor.lineHighlightBackground": "rgba(0, 0, 0, 0.07)", |
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, { useRef, useEffect, useState } from 'react'; | |
// useScrollValue 钩子 | |
function useScrollValue() { | |
const [scrollY, setScrollY] = useState(window.scrollY); | |
useEffect(() => { | |
const handleScroll = () => { | |
window.requestAnimationFrame(() => setScrollY(window.scrollY)); | |
}; |
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
mkdir ~/tmp-bin && export PATH=$PATH:~/tmp-bin && echo "#!/bin/sh" > ~/tmp-bin/xdg-open && chmod +x ~/tmp-bin/xdg-open |
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
SELECT * FROM `table` WHERE shop_name = 'shopname' AND `table`.`is_delete` = 0 ORDER BY `table`.`id` LIMIT 10 | |
SELECT * FROM `table` WHERE shop_name = 'shopname' AND `table`.`id` > 11087349 AND `table`.`is_delete` = 0 ORDER BY `table`.`id` LIMIT 10 | |
SELECT * FROM `table` WHERE shop_name = 'shopname' AND `table`.`id` > 11087359 AND `table`.`is_delete` = 0 ORDER BY `table`.`id` LIMIT 10 |
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
type PlanName = 'free' | 'starter' | 'growth' | 'plus' | |
type PlanDuration = 'monthly' | 'annually' | |
type BillingPlanEvent = `billing_${PlanName}_${PlanDuration}_click` | |
type GuidacneStep = 1 | 2 | 3 | |
type GuidanceEvent = `guidance_step${GuidacneStep}_next_click` | |
// A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.ts(1170) | |
// Fix? |
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
❯ pnpm dlx @biomejs/biome format --write |
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 stylesheets = {}; | |
export const injectStyles = ({ fileScopeId, css, mountNode = document.head }) => { | |
let stylesheet = stylesheets[fileScopeId]; | |
if (!stylesheet) { | |
const styleEl = document.createElement('style'); | |
styleEl.setAttribute('type', 'text/css'); | |
stylesheet = stylesheets[fileScopeId] = styleEl; |
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
// @ts-nocheck | |
import Plan from 'src/store/plan' | |
import packagePrivileges from 'src/common/constants/packagePrivileges' | |
import objectExt from 'src/utils/objectExt' | |
import { Box, Button } from '@vec6/next-ui' | |
import links from 'src/common/constants/links' | |
import User from 'src/store/user' | |
export default { |
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
<script> | |
export default { | |
name: 'UInput', | |
render () { | |
// TODO: abstract node render useful function. | |
const attrs = this.$attrs; | |
const on = Object.keys(this.$listeners).reduce((events, key) => { | |
events[key] = (ev) => { | |
this.$emit(key, ev); | |
}; |
NewerOlder