Skip to content

Instantly share code, notes, and snippets.

View davidzchen's full-sized avatar
πŸ’­
𝘈π˜₯ 𝘒𝘴𝘡𝘳𝘒 𝘱𝘦𝘳 𝘒𝘴𝘱𝘦𝘳𝘒.

David Z. Chen davidzchen

πŸ’­
𝘈π˜₯ 𝘒𝘴𝘡𝘳𝘒 𝘱𝘦𝘳 𝘒𝘴𝘱𝘦𝘳𝘒.
View GitHub Profile
@davidzchen
davidzchen / curses.priv.h
Created January 5, 2025 07:36
bazel-bazel-ncurses-example/external/+ncurses_repository+ncurses/ncurses/curses.priv.h
/****************************************************************************
* Copyright 2018-2021,2022 Thomas E. Dickey *
* Copyright 1998-2017,2018 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* "Software"), to deal in the Software without restriction, including *
* without limitation the rights to use, copy, modify, merge, publish, *
* distribute, distribute with modifications, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
@davidzchen
davidzchen / ncurses_cfg.h
Created January 5, 2025 07:26
ncurses_cfg.h macOS 15.2
/* include/ncurses_cfg.h. Generated automatically by configure. */
/****************************************************************************
* Copyright 2020 Thomas E. Dickey *
* Copyright 1998-2016,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* "Software"), to deal in the Software without restriction, including *
* without limitation the rights to use, copy, modify, merge, publish, *
* distribute, distribute with modifications, sublicense, and/or sell *
@davidzchen
davidzchen / tmuxline
Created January 30, 2023 18:38
Current tmux status config
# This tmux statusbar config was created by tmuxline.vim
# on Thu, 05 Jan 2023
set -g status-justify "centre"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=colour4,bg=colour0"
set -g status-right-style "none"
set -g pane-active-border-style "fg=colour4"
set -g status-style "none,bg=colour0"

Skylark rules

Rules

@davidzchen
davidzchen / rust.bzl.docstr.py
Last active December 7, 2015 10:46
rust.bzl with docstring-style inline documentation
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@davidzchen
davidzchen / rust.bzl.doc-attr.py
Last active December 7, 2015 06:53
rust.bzl with inline documentation in doc attributes
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@davidzchen
davidzchen / azkaban-json.json
Created June 22, 2014 05:13
Azkaban JSON-based DSL Syntax
{
"innerJobA": {
"type": "javaprocess",
"props": {
"job.class": "azkaban.executor.SleepJavaJob",
"seconds": 1,
"fail": "false"
}
},
"innerJobB": {
@davidzchen
davidzchen / azkaban-embedded-stripped.az
Last active August 29, 2015 14:02
Azkaban Stripped-Down Custom DSL Syntax
javaprocess('innerJobA') {
job.class = azkaban.executor.SleepJavaJob
seconds = 1
fail = false
property.with.variable = Name of class: ${job.class}
arithmetic = $($(1 + 3) - 2)
}
javaprocess('innerJobB') {
deps = innerJobA
@davidzchen
davidzchen / azkaban-embedded.properties
Last active August 29, 2015 14:02
Azkaban JProperties-based DSL
innerJobA.type = javaprocess
innerJobA.job.class = azkaban.executor.SleepJavaJob
innerJobA.seconds = 1
innerJobA.fail = false
innerJobA.property.with.variable = Name of class: ${job.class}
innerJobA.arithmetic = $($(1 + 3) - 2)
innerJobB.type = javaprocess
innerJobB.job.class = azkaban.executor.SleepJavaJob
innerJobB.deps = innerJobA
@davidzchen
davidzchen / azkaban-embedded.yml
Last active August 29, 2015 14:02
Azkaban YAML DSL Syntax
innerJobA:
type: javaprocess
job.class: azkaban.executor.SleepJavaJob
seconds: 1
fail: false
property.with.variable: "Name of class: ${job.class}"
arithmetic: (1 + 3) - 2
innerJobB:
type: javaprocess