This file contains 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 setup lang="ts"> | |
import { computed, ref, unref } from 'vue'; | |
const props = defineProps<{ | |
items: any[] | |
itemSize: number | |
buffer: number | |
}>(); | |
const wrapRef = ref(); |
This file contains 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 getColorPalette($colors) { | |
$levels: 1, 2, 3, 4, 5, 6, 7, 8, 9; | |
$interval: 15%; | |
$_colors: (); | |
@each $name, $color in $colors { | |
@debug $levels; | |
@each $level in $levels { | |
$_colors: map.deep-merge($_colors, ( | |
#{$name}-#{$level}: color.scale($color, $lightness: $interval * (5 - $level)), |
This file contains 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
# -*- coding: utf-8 -*- | |
''' | |
Created on 2018-03-21 | |
@author: xuteng.xt | |
''' | |
import requests | |
import time | |
import hmac |