Skip to content

Instantly share code, notes, and snippets.

@chuck0523
chuck0523 / work_env_setup.md
Last active December 8, 2023 02:11
備忘録

環境構築

  • env
    • Dock
      • 右側に、デフォルト非表示
      • 不要なものは Dock から削除
    • ホットコーナー
      • 左下カーソルでスリープ
    • スポットライト
  • ショートカット設定(⌘+option)
@chuck0523
chuck0523 / .zshrc
Last active September 22, 2023 05:13
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
plugins=(git)
alias st="git status"
alias br="git branch"
alias gl="git log"
alias ad="git add ."
alias cm="git commit -m "
var glob = require('glob')
var path = require('path')
var entries = {}
glob.sync("./src/**/entry.js").map(function(file) {
entries[file] = file
})
module.exports = {
entry: entries,
#!/bin/bash
# execute command
# -------------------
# curl -s https://gist.githubusercontent.com/busonx/f0e9644c7685097fe8916546f1a95f5d/raw/78e86b7226e02c627ae937a3ff4a6d85f9092cbb/install-centos7.x-vscode-extensions.sh | /bin/bash
# Ref: https://qiita.com/takeru08ma/items/43705af9fa864cf3bc18
# Visual Studio Code :: Package list
pkglist=(
(function(word) {
console.log(word)
})('hello')

Chrome 拡張一覧

dev

(function() {
var log = function(x) {
console.log(x);
};
var void_text = '';
// 口調
function getWords(type) {
switch(type) {
const throwError = () => { throw new Error('foo') }
const delayFunc = async () => {
setTimeout(async () => {
try {
await throwError()
} catch(e) {
// This won't be captured by main function
throw e
}
@chuck0523
chuck0523 / wider-modal-for-akamai-property-manager-modal.user.js
Last active August 15, 2019 01:02
UserScript for Tempermonkey to make modal wider at PropertyManager page
// ==UserScript==
// @name Wider Modal - https://control.akamai.com/apps/property-manager/
// @namespace https://gist.github.com/chuck0523/bd260ee3d9933f741ec2d436aa706549
// @version 0.1
// @description Make modal wider for visibility
// @author chuck0523
// @match https://control.akamai.com/apps/property-manager/
// @grant none
// ==/UserScript==
@chuck0523
chuck0523 / for-loop-and-foreach.js
Last active July 18, 2019 10:50
for文とforEachにおける配列イテレーション差異
// 要素数10の配列を作成
const ary = new Array(10)
// 0番目と3番目の要素に文字列を設定
ary[0] = "foo"
ary[3] = "bar"
// 10回標準出力される
for (let i = 0; i < ary.length; i++) {
console.log(ary[i])