Skip to content

Instantly share code, notes, and snippets.

View jyuch's full-sized avatar

jyuch jyuch

View GitHub Profile
@jyuch
jyuch / TreeDsl.cs
Created April 6, 2022 10:44
C#でDSLをでっち上げるアレ
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ConsoleApp1
{
using IO = System.IO;
@jyuch
jyuch / use.ps1
Created September 24, 2022 06:53
PowerShell用簡易Javaバージョンセレクタ
Param([parameter(mandatory=$true)][String]$Version)
$java8 = Join-Path $PSScriptRoot 'jdk8u322-b06'
$java11 = Join-Path $PSScriptRoot 'jdk-11.0.14.1+1'
$tools = @('gradle', 'sbt')
$env:JAVA_HOME = switch ($Version)
{
8 { $java8 }
@jyuch
jyuch / build.sh
Last active August 6, 2023 11:23
PostgresをLLVMサポート付きでビルドするアレ
$HOME/src/postgresql-15.3/configure \
--prefix=$HOME/.local/pg15 \
--with-icu \
--with-lz4 \
--with-zstd \
--with-llvm \
LLVM_CONFIG='/usr/bin/llvm-config-15' \
CLANG='/usr/bin/clang-15' \
CC='/usr/bin/clang-15' \
CXX='/usr/bin/clang-15'