This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
class Model1: ObservableObject { | |
static let shared = Model1() | |
var value: Int = 0 | |
@Published | |
var date: Date = Date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Homebrew generated unit for distcc | |
[Install] | |
WantedBy=default.target | |
[Service] | |
Type=simple | |
ExecStart=/opt/homebrew/opt/distcc/bin/distccd --allow 192.168.50.0/23 --daemon --no-detach | |
Restart=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NAME="" | |
SCALE="" | |
PRESET="blog" | |
function parse_arg_input_file() { | |
NAME="$1" | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./configure --with-openssl="/opt/homebrew/opt/[email protected]" | |
pushd ../ | |
mkdir cpython-compile-commands -p | |
popd | |
bear --output ../cpython-compile-commands/compile_commands.json -- make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PARENT_DIR="$(dirname $(cd "$(dirname "$0")"; pwd)/$(basename "$0"))" | |
CONFIG=Debug; | |
ASSERT=on; | |
CONSECUTIVE_ARG_PARSE_KIND=None; | |
ARCH=$(uname -m) | |
PLATFORM="macosx" | |
LLVM_ENABLED_PROJECTS=() | |
LLVM_ENABLED_RUNTIMES=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# verify Emscripten version | |
emcc -v | |
# build ffmpeg.wasm | |
mkdir -p wasm/dist | |
ARGS=( | |
-I. -I./fftools | |
-Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $FreeBSD: releng/12.2/libexec/rc/rc.d/sshd 363553 2020-07-26 10:01:27Z 0mp $ | |
# | |
# PROVIDE: sshd | |
# REQUIRE: LOGIN FILESYSTEMS | |
# KEYWORD: shutdown | |
. /etc/rc.subr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="avit" | |
CASE_SENSITIVE="true" | |
plugins=(git sudo) | |
source $ZSH/oh-my-zsh.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'vim-syntastic/syntastic' | |
Plug 'keith/swift.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// XCTestCase+AssertingThrows.h | |
// | |
// | |
// Created by WeZZard on 29/05/2017. | |
// | |
// | |
#import <XCTest/XCTest.h> |
NewerOlder