Skip to content

Instantly share code, notes, and snippets.

View h1romas4's full-sized avatar
🍕
< Pizza Time

hiromasa h1romas4

🍕
< Pizza Time
View GitHub Profile
@h1romas4
h1romas4 / launch.json
Last active April 26, 2020 15:23
macOS clang/lldb の vscode 起動構成
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug megadrij",
"program": "${workspaceFolder}/megadrij64",
"args": [
@h1romas4
h1romas4 / c_cpp_properties.json
Last active April 26, 2020 15:20
macOS 用の C/C++ vscode 定義
{
"configurations": [
{
"name": "Mac",
"intelliSenseMode": "clang-x64",
"includePath": [
"${workspaceRoot}/**"
],
"macFrameworkPath": [
"/System/Library/Frameworks",
@h1romas4
h1romas4 / webpack.config.js
Last active April 7, 2020 07:37
express だけ除外してバンドルする node 向け webpack.config.js
const path = require('path');
module.exports = {
devtool: "source-map",
mode: 'production',
target: 'node',
externals: function (context, request, callback) {
// use express in server install
// npm install express
// NODE_PATH=`npm root -g` node dist/app-bundle.js
@h1romas4
h1romas4 / parallel-fizzbuzz.ps
Last active March 10, 2020 08:26
PowerShell 7 の新機能 ForEach-Object -Parallel を使った シャー専用 3並列パラレル FizzBuzz
# -Parallel で並列化
# -ThrottleLimit で立てるスレッド数を指定
1..100 | foreach -ThrottleLimit 3 -Parallel {
# 最短 FizzBuzz は http://blog.powershell-from.jp/?p=15 さんより
$s=@(“Fizz”)[$_%3] + @(“Buzz”)[$_%5];
[PSCustomObject]@{
Id =$_; Value = ($s,$_)[!$s]
}
} | Sort-Object Id
@h1romas4
h1romas4 / mame-driver-add.md
Last active March 28, 2020 10:13
mame ドライバーつくりかたメモ
@h1romas4
h1romas4 / mame-emscripten-build-log.md
Last active January 16, 2022 14:47
MAME/Emscripten build log
@h1romas4
h1romas4 / MaCoPiX
Created December 14, 2019 10:16
Ubuntu 19.04 で MaCoPiX をコンパイルする時に必要なライブラリ依存
https://github.com/chimari/MaCoPiX
sudo apt install libx11-dev
sudo apt install libglib2.0-dev
sudo apt install libgtk-3-dev
@h1romas4
h1romas4 / proxy.sh
Last active October 9, 2019 05:14
WSL proxy settings
# for curl
echo 'proxy = "http://example.com:8080"' > ~/.curlrc
# for wget
echo 'http_proxy=http://example.com:8080' >> ~/.wgetrc
echo 'https_proxy=http://example.com:8080' >> ~/.wgetrc
# for other (include nodejs/pip)
echo 'export HTTP_PROXY="http://example.com:8080"' >> ~/.bashrc
echo 'export HTTPS_PROXY_="${HTTP_PROXY}"' >> ~/.bashrc
@h1romas4
h1romas4 / launch.json
Created April 18, 2019 09:53
VS Code + Debugger for Firefox でデバッグする場合の設定
// 以下のように Firefox をデバッグサーバーで起動しておく。
// "C:\Program Files\Firefox Developer Edition\firefox.exe" -start-debugger-server
// about:config
// devtools.debugger.remote-enabled true
// devtools.chrome.enabled true
// devtools.debugger.prompt-connection false
// devtools.debugger.force-local false
{
"version": "0.2.0",
@h1romas4
h1romas4 / rustup.ps1
Created January 11, 2019 02:41
Windows / rustup を proxy 配下で使うとき
$proxy='http://<IP>:<PORT>'
$ENV:HTTP_PROXY=$proxy
$ENV:HTTPS_PROXY=$proxy
cd ~\Downloads
.\rustup-init.exe