Skip to content

Instantly share code, notes, and snippets.

View andrewzah's full-sized avatar
🍊
currently working on Korean educational tools.

Andrew Zah andrewzah

🍊
currently working on Korean educational tools.
View GitHub Profile
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<MonoGamePlatform>DesktopGL</MonoGamePlatform>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoGame.Content.Builder" Version="3.7.0.9" />
<PackageReference Include="MonoGame.Framework.DesktopGL.Core" Version="3.8.0.1" />
@andrewzah
andrewzah / process-csv.rb
Created December 2, 2019 15:40
squarespace edit products sample
require 'csv'
file = ARGV[0]
table = CSV.parse(File.read(file), headers: true)
out_table = []
@used_skus = table
.by_col[7]
.map{ |v| v[2..-1] }
@andrewzah
andrewzah / output.json
Created August 18, 2019 21:11
grammar forms json ouput
[{"id":1375,"name":"아무리 ...-ㄴ/는다지만 ","typical_example":"【아무리 돈에 운다지만 】","translation":"Adverb 아무리 flags an upcoming concessive form, which here is contracted from -(으)ㄴ/는다[고 하]지만 no matter how much one might VERB ...; VERB as one might, (nonetheless) ... ; no matter how (much one might, much NOUN is) ... Cf. the adverbs 암만해도 and 아무래도 (from 아무리 해도) do what you might, say what you wish; nonetheless, all the same, no matter what one does or says. ","category_eng":"()","category_kor":"관용구"},{"id":340,"name":"-ㄴ다는2 NOUN","typical_example":"【나날이 달라간다는 숙이 】","translation":"[The person] who says/claims that ... abbreviated from an indirect quotation in –ㄴ 다[고 하]는, modifying the following person, etc.","category_eng":"(Modifier/준꼴 Contraction)","category_kor":"Modifier/준꼴 Contraction"},{"id":1725,"name":"이왕(에)","typical_example":"【이왕에 이렇게 되었으니 】","translation":"Already, now that, as long as, since. Usually followed by -는/-ㄴ 김에, but sometimes by -(으)니.","category_eng":"(Polite Style)","category_kor":"Polite Style"},{"
--force=true
--host_identifier=windoze
--verbose=true
--debug
--tls_dump=true
--tls_hostname=master
--tls_server_certs=./cacert
--enroll_secret_path=./secret
{ pkgs ? import <nixpkgs> {} }: with pkgs;
let
#danmuji = rustPlatform.buildRustPackage rec {
#name = "danmuji-${version}";
#version = "0.1.0";
#src = ${
#};
danmuji = /nix/store/b23ll1r78y6s89k0b4rc625f68x0k9mg-rust_danmuji-0.1.0;
in
{ lib, buildRustCrate, buildRustCrateHelpers }:
with buildRustCrateHelpers;
let inherit (lib.lists) fold;
inherit (lib.attrsets) recursiveUpdate;
in
rec {
# adler32-1.0.3
crates.adler32."1.0.3" = deps: { features?(features_."adler32"."1.0.3" deps {}) }: buildRustCrate {
@andrewzah
andrewzah / danmuji.nix
Last active July 29, 2019 23:02
rust alpine nix test
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
alpine-3-8 = pkgs.dockerTools.pullImage {
imageName = "alpine";
imageDigest = "sha256:0p313r6ra7k5bznqcp2nl7rbcjjz1cw1daywmjq1cmwn948hbiys";
sha256 = "0namvnkvdwsjfijyrzf64prsrzd9b35nhv4yi97mqy9dmlbys2iy";
os = "linux";
arch = "x86_64";
@andrewzah
andrewzah / Dockerfile
Last active July 24, 2019 00:11
alpine rust diesel musl test
## builder
FROM andrewzah/alpine-rust as build
WORKDIR /build
RUN apk add --update postgresql-dev
RUN mkdir src \
&& echo "fn main() {println!(\"if you see this, the build broke\")}" > src/main.rs
@andrewzah
andrewzah / Dockerfile
Last active July 21, 2019 07:50
rust build
FROM debian:stretch-slim
MAINTAINER Andrew Zah <zah@andrewzah.com>
ENV BUILD_PACKAGES curl libpq-dev build-essential
ENV PATH="/root/.cargo/bin:${PATH}"
RUN mkdir /out \
&& apt-get update \
&& apt-get install -y $BUILD_PACKAGES \
{
"node_key": "...",
"queries": {
"id1": [
{"column1": "value1", "column2": "value2"},
{"column1": "value1", "column2": "value2"}
],
"id2": [
{"column1": "value1", "column2": "value2"},
{"column1": "value1", "column2": "value2"}