群组信息 私有

administrators

 

成员列表

  • RE: right way to set up eslint / prettier with vscode 发布在 笔记
  • check uptime and reboot

    [dc@dev02 ~]$ uptime
    11:43:23 up 12:02, 1 user, load average: 0.00, 0.00, 0.00

    sudo systemctl reboot

    发布在 笔记
  • Default Sort Function

    In React Table V6, we can pass in defaultSortMethod, but in the React Table V7, we need to create sort function in column props.
    https://github.com/tannerlinsley/react-table/discussions/2778

    发布在 笔记
  • Git undo push

    You are on branch B, but actually you are supposed to be on branch A. You did a lot of updates, and pushed the change to the origina/branchB. How to fix this?

    1. git reset --soft HEAD~1 //undo the last commit
    2. git stash //save current changes
    3. git push -f origin branchB //reset remote branch
    4. switch to branchA
    5. git stash pop // recover current changes
    6. push
    发布在 笔记
  • Google Authenticator 发布在 笔记
  • right way to set up eslint / prettier with vscode 发布在 笔记
  • search and replace the selected text
    function getSelectedText() {
        if (window.getSelection) {
            txt = window.getSelection();
        } else if (window.document.getSelection) {
            txt =window.document.getSelection();
        } else if (window.document.selection) {
            txt = window.document.selection.createRange().text;
        }
      console.log("selected", txt + "|||")
      if(txt.toString() !== "")
        replaceSelectedText ("hello")
        // return txt;  
    }
    
    function replaceSelectedText(replacementText) {
        var sel, range;
        if (window.getSelection) {
            sel = window.getSelection();
            if (sel.rangeCount) {
                range = sel.getRangeAt(0);
                range.deleteContents();
                range.insertNode(document.createTextNode(replacementText));
            }
        } else if (document.selection && document.selection.createRange) {
            range = document.selection.createRange();
            range.text = replacementText;
        }
    }
    
    发布在 笔记
  • RE: map with label 发布在 笔记
  • RE: map with label 发布在 笔记
  • November Rain

    十一月的雨/玫瑰与枪炮
      November Rain/by Gun N Rose
          
      when i look into your eyes当我凝望你的双眼,
      i can see a love restrained我看到的是抑制着的情感。
      but darlin' when i hold you但是,亲爱的,当我拥抱你的时候,
      don't you know i feel the same你知道吗,我也感到同样那般。
          
      'cause nothin' lasts forever因为没有什么可以永恒,
      and we both know hearts can change我们都知道心会改变,
      and it's hard to hold a candle就像在十一月凄冷的雨天,
      in the cold november rain手持一支蜡烛那般艰难。
            
      we've been through this such a long long time我们这样已经很长很长时间,
      just tryin' to kill the pain只是努力想使内心的痛苦消减。
          
      but lovers always come and lovers always go但是情人一个一个地更换,
      an no one's really sure who's lettin' go today没有人肯定地知道
      walking away是否今天是自己该走的一天。
          
      if we could take the time to lay it on the line如果我们能够抓住时间,
      i could rest my head那我就小憩一段,
      just knowin' that you were mine因为知道你属于我,
      all mine只属于我,我再念一遍。
            
      so if you want to love me所以亲爱的,如果你想要爱我 ,
      then darlin' don't refrain就不要压抑自己的情感。
      or i'll just end up walkin'否则我会把我们散步的旅程,
      in the cold november rain结束在这十一月寒雨的今天。
            
      do you need some time...on your own你是否需要一些时间,属于自己的时间,
      do you need some time...all alone你是否需要一些时间,一个人的时间。
      everybody needs some time...on their own每个人都需要一些时间,属于自己的时间,
      don't you know you need some time...all alone你是否知道你也需要时间,一个人的时间。
          
      i know it's hard to keep an open heart在这朋友都可能会伤害你的今天,
      when even friends seem out to harm you我知道打开心扉是多么艰难,
      but if you could heal a broken heart但是你终会治愈那颗破碎的心,
      wouldn't time be out to charm you最终战胜痛苦,因为时间。
          
      sometimes i need some time...on my own有时候我也需要一些时间,属于自己的时间
      sometimes i need some time...all alone有时候我也需要一些时间,一个人的时间,
      everybody needs some time...on their own每个人都需要一些时间,属于自己的时间
      don't you know you need some time...all alone你知道吗,你也需要属于自己的时间,一个人的时间。
      and when your fears subside当你对爱的恐惧渐渐消失的时候,
      and shadows still remain痛苦的阴影仍然闪现。
      i know that you can love me我明白你一定爱我,
      when there's no one left to blame到时候没有人能够去埋怨。
            
      so never mind the darkness所以永远不要介意黑暗,
      we still can find a way因为我们仍然会找到爱的路线。
      'cause nothin' lasts forever因为没有什么会永远不变,
      even cold november rain即使那十一月凄冷的雨天。
          
      don't ya think that you need somebody是否,你觉得需要有一个人,
      don't ya think that you need someone和你一起分担。
      everybody needs somebody因为每个人都需要一个人,
      you're not the only one你不孤单,
      you're not the only one你不孤单。

    发布在 FUN版