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
    
  
  
    
  | function _requestAnimationFrame(callback, duration) { | |
| let start = null; | |
| function step(timestamp) { | |
| if (!start) start = timestamp; | |
| const progressTime = timestamp - start; | |
| const progressPercentage = Math.min(progressTime / duration, 1) * 100; | |
| callback(progressTime, progressPercentage); | 
  
    
      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 setup> | |
| import { ref, watch, toRefs, onBeforeMount } from 'vue'; | |
| const offset = ref('0px') | |
| const props = defineProps({ | |
| date: Date | |
| }); | |
| const { date } = toRefs(props); | 
  
    
      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
    
  
  
    
  | for k in $(git branch --format="%(refname:short)" --merged master); do | |
| if (($(git log -1 --since='1 month ago' -s $k|wc -l)==0)); then | |
| echo git branch -d $k | |
| fi | |
| done | |
| # for remote branches | |
| for k in $(git branch -r --format="%(refname:short)" --merged master); do | |
| if (($(git log -1 --since='1 month ago' -s $k|wc -l)==0)); then | 
  
    
      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 hexToHSL = (hex) => { | |
| var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
| var r = parseInt(result[1], 16); | |
| var g = parseInt(result[2], 16); | |
| var b = parseInt(result[3], 16); | |
| r /= 255, g /= 255, b /= 255; | |
| var max = Math.max(r, g, b), min = Math.min(r, g, b); | |
| var h, s, l = (max + min) / 2; | |
| if(max == min){ | |
| h = s = 0; // achromatic | 
  
    
      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 { getHighlighter, HighlighterOptions, Highlighter, ILanguageRegistration, IShikiTheme, IThemeRegistration } from 'shiki' | |
| import Debug from 'debug' | |
| const debug = Debug('markdown-it-shiki') | |
| export interface DarkModeThemes { | |
| dark: IThemeRegistration | |
| light: IThemeRegistration | |
| } | 
  
    
      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
    
  
  
    
  | Array.prototype.equals = function (array) { | |
| if (!array) | |
| return false; | |
| if (this.length != array.length) | |
| return false; | |
| for (var i = 0, l=this.length; i < l; i++) { | |
| if (this[i] instanceof Array && array[i] instanceof Array) { | |
| if (!this[i].equals(array[i])) |