Archive Tags About Subscribe

sacre

author biography

  • Aug 6
    rrwebがバグの調査に使えそうというメモ

    rrwebはサイトでユーザがなにをしたかを記録できるというもの rrweb-io/rrweb: record and replay the web rrweb refers to ‘record and replay the web’, which is a tool for recording and replaying users’ interactions on the web. ユーザの行動調査のために

  • Aug 6
    emojiで肌とか性別とか髪の色が変えられる仕組み

    unicodeでは肌の色を変えられる仕組みが2015年から入っている。これは skin tone modifiers と呼ばれるもので、結合文字のようにベースとなる絵文字の後ろ

  • Aug 3
    jsでマルチバイト文字にあてる正規表現はuフラグをつける

    理由 jsの文字列は内部でUTF-16を使っている jsで文字列の1文字は1つのコードユニットを指し、コードポイントを指すわけではない 例 👶🏼.l

  • Jul 28
    lodash@4.17.16 の脆弱性修正について

    4.17.16 にていくつかの脆弱性が修正されている Releases · lodash/lodash template, zipObjectDeep あたりを使ってトリッキーなコードをかいていなければ挙動に変更はなさそうである sourceUR

  • Jul 25
    jsファイルの容量削減 lodash/jQuery

    webpackの設定がよくなかったのか、生成したバンドルjsファイルが重かったので若干雑な感じで軽くした lodashは全部読み込むと結構重い

  • Jul 5
    serverless-plugin-aws-alertsでエラーを監視

    Serverless Framework を使っている場合、エラーやタイムアウトなどの検知をするためのリソースはプラグインで簡単に簡単に生成できる ACloudGuru/serverless-plugin-aws-alerts: A Serverless Framework plugin that creates CloudWatch alarms for functions. たとえば「

  • Jun 25
    bashの変数から文字列を取り出す

    以下のような記法で変数から部分文字列を取り出すことができる ${FOO%...} ${FOO#...} string - Extract substring in Bash - Stack Overflow 例 ui/src/js/test/tag.js という文字列から test/tag.js という文字列を取り出す場合 ui/src/ という文字

  • Jun 18
    雑create-react-app のデプロイについて

    init こんな感じで開発を始める npm install -g create-react-app npx create-react-app {{ アプリ名 }} --typescript yarn start build ビルドコマンドはデフォルトで用意されている yarn build これを実行すると ./build 配下にhtmlなど

  • Jun 7
    [jest] SyntaxError: The string did not match the expected pattern

    axios を使った jest のテストで以下のようなエラーが出た SyntaxError: The string did not match the expected pattern. これは jest ランタイムだと axios が XMLHttpRequest を使おうとしてしまうため発生するエラーだったよう

  • Jun 5
    CloudLogging で監査ログを除外する

    GCPには、ユーザの操作などを記録する監査ログがデフォルトで有効になっているサービスがいくつかある 監査ログについて | Cloud Logging | Google Cloud BigQuery の監査ログが

← Newer Posts Older Posts →

© Copyright 2022 site_author

Powered by Hugo Theme By nodejh