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
<?php | |
if ( ! function_exists( 'theme_name_theme_customize_register' ) ) { | |
/** | |
* Register individual settings through customizer's API. | |
* | |
* @param WP_Customize_Manager $wp_customize Customizer reference. | |
*/ | |
function theme_name_theme_customize_register( $wp_customize ) { | |
$wp_customize->add_section( | |
'theme_name_contact', |
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 | |
# Laytan Laats - 1012512 - INFD 20-1 | |
# Check if file is being sourced, which will need to add the alias | |
if [[ "${BASH_SOURCE[0]}" != "${0}" ]] | |
then | |
echo "Adding safe delete alias." | |
alias rm="$(pwd)/1012512.sh" | |
return | |
fi |
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
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Import additional configuration files | |
# | |
# Imports are loaded in order, skipping all missing files, with the importing | |
# file being loaded last. If a field is already present in a previous import, it | |
# will be replaced. | |
# | |
# All imports must either be absolute paths starting with `/`, or paths relative | |
# to the user's home directory starting with `~/`. |
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
package uuid4 | |
import "core:crypto" | |
import "core:io" | |
import "core:mem" | |
UUID_SIZE :: 16 | |
UUID4 :: distinct [UUID_SIZE]byte | |
generate :: proc() -> (u: UUID4) #no_bounds_check { |
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
package hiredis | |
import "core:c" | |
foreign import lib "./libhiredis.a" | |
ERR :: -1 | |
OK :: 0 | |
ERR_IO :: 1 | |
ERR_OTHER :: 2 |
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
@echo off | |
setlocal enabledelayedexpansion | |
set ORCA_DIR=..\..\third-party\orca | |
set STDLIB_DIR=%ORCA_DIR%\src\libc-shim | |
:: common flags to build wasm modules | |
set wasmFlags=--target=wasm32^ | |
--no-standard-libraries ^ | |
-mbulk-memory ^ |
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
logger: log.Logger | |
rl_log_buf: []byte | |
rl_log :: proc "c" (logLevel: rl.TraceLogLevel, text: cstring, args: libc.va_list) { | |
context = runtime.default_context() | |
context.logger = logger | |
level: log.Level | |
switch logLevel { | |
case .TRACE, .DEBUG: level = .Debug | |
case .ALL, .NONE, .INFO: level = .Info |
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
package generated_tests | |
import test_gen "core:testing/generator" | |
import "core:os" | |
import "core:testing" | |
import test_core_crypto "../../../tests/core/crypto" | |
main :: proc() { | |
tests := []testing.Internal_Test{ |
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
package lsp | |
import "core:bufio" | |
import "core:encoding/json" | |
import "core:io" | |
import "core:log" | |
Null :: distinct struct{} | |
Initialize_Error :: Response_Error(Initialize_Error_Data) |
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
/* | |
vim: syntax=armasm nospell | |
Some of the following assembly code is taken from LuaCoco by Mike Pall. | |
See https://coco.luajit.org/index.html | |
MIT license | |
Copyright (C) 2004-2016 Mike Pall. All rights reserved. |
OlderNewer