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
This little emoji | |
↓ |
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
BITS 16 | |
start: | |
mov ax, 07C0h | |
add ax, 288 | |
mov ss, ax | |
mov sp, 4096 | |
; Have fun here! |
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
#include <attractor.h> | |
int var_to_test_1 = 1; | |
float var_to_test_2 = 2.0; | |
ATT_ASSERT(var_to_test_1, 1, "integer test") | |
ATT_ASSERT(var_to_test_2, 2.0, "float test") | |
ATT_ASSERT("foo", "foo", "Strings compare") | |
// Etc. |
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
ATT_ASSERT(VALUE, EXPECTED, "A brief description") |
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
cmake_minimum_required(VERSION 3.0) | |
project(MyProject) | |
# Add all .c files in the src directory to the list of source files | |
file(GLOB SOURCES "src/*.c") | |
# Include the headers directory | |
include_directories("src") | |
# Create the executable target |
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
% cmake --version | |
cmake version 3.28.3 | |
CMake suite maintained and supported by Kitware (kitware.com/cmake). |
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
% brew info cmake | |
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake | |
==> cmake: stable 3.28.3 (bottled), HEAD | |
Cross-platform make | |
https://www.cmake.org/ | |
Not installed | |
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/cmake.rb | |
License: BSD-3-Clause | |
==> Options | |
--HEAD |
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
# Get all .c files from src/ directory | |
SRCS = $(shell find $(SRC_DIR) -type f -name "*.c") | |
# Generate corresponding .o file names | |
OBJS = $(patsubst $(SRC_DIR)/%, $(BUILD_DIR)/%, $(SRCS:.c=.o)) |
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
function my_custom_roles( $role, $user_id, $user_role ) { | |
if( $role == 'Key Master' ) | |
return 'Site Owner'; | |
return $role; | |
} | |
add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 3 ); |
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
var d = Date.now(); | |
jQuery(document).ready(function() | |
{ | |
jQuery('#headerForm').submit(function(e) | |
{ | |
var saveHeaderForm = jQuery(this).serialize(); | |
jQuery.ajax( | |
{ | |
type: "POST", | |
url: ajaxurl, |
NewerOlder