This file contains hidden or 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 "lsm6dsv32x_reg.h" | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
/* Private macro -------------------------------------------------------------*/ | |
/* | |
* Select FIFO samples watermark, max value is 512 | |
* in FIFO are stored acc, gyro and timestamp samples | |
*/ |
This file contains hidden or 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
32372067, 0, 0, 0.131226, 0.048706, -0.069397, 0.987720 | |
32372067, 1, 0, 0.072876, 0.993164, 0.061981, 0.066877 | |
32372071, 0, 1, 0.001317, 0.980957, -0.197754, 0.000000 | |
32372072, 1, 1, 0.141602, 0.977539, 0.117004, 0.103326 | |
32372076, 0, 0, 0.131226, 0.048737, -0.069397, 0.987719 | |
32372077, 1, 0, 0.072876, 0.993164, 0.061981, 0.066877 | |
32372082, 0, 1, 0.001327, 0.980957, -0.197754, 0.000000 | |
32372082, 1, 1, 0.141602, 0.977539, 0.117004, 0.103326 | |
32372086, 0, 0, 0.131226, 0.048706, -0.069458, 0.987716 | |
32372087, 1, 0, 0.072876, 0.993164, 0.061981, 0.066877 |
This file contains hidden or 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
// Load environment variables | |
require('dotenv').config(); | |
const { Client, GatewayIntentBits, Partials, PermissionsBitField, EmbedBuilder, AttachmentBuilder } = require('discord.js'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const csv = require('csv-parser'); | |
const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
// Create a new Discord client |
This file contains hidden or 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
// Discord Speed Drawing Bot | |
const { Client, GatewayIntentBits, Partials, EmbedBuilder, AttachmentBuilder } = require('discord.js'); | |
const fs = require('fs'); | |
const path = require('path'); | |
// Initialize client with necessary intents | |
const client = new Client({ | |
intents: [ | |
GatewayIntentBits.Guilds, | |
GatewayIntentBits.GuildMessages, |
This file contains hidden or 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 pydicom | |
import numpy as np | |
import os | |
import hou | |
def create_global_attrib(geo, name, value): | |
"""Safely create and set a global attribute""" | |
if geo.findGlobalAttrib(name) is None: | |
attrib = geo.addAttrib(hou.attribType.Global, name, value) | |
geo.setGlobalAttribValue(name, value) |
This file contains hidden or 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class CharacterMovement10 : MonoBehaviour | |
{ | |
public Camera playerCamera; | |
public float mouseSensitivity = 2f; | |
private float verticalLookRotation; |
This file contains hidden or 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
bl_info = { | |
"name": "Hex Color Materials from URL with Color Atlas", | |
"author": "RH", | |
"version": (1, 3), | |
"blender": (3, 0, 0), | |
"location": "View3D > Sidebar > Hex Materials Tab", | |
"description": "Create materials and color atlas from hex codes in a URL text file", | |
"category": "Material", | |
} |
This file contains hidden or 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 * as THREE from 'three'; | |
function createBrickWall({ | |
rows = 5, | |
columns = 10, | |
brickWidth = 2, | |
brickHeight = 1, | |
brickDepth = 0.5, | |
mortar = 0.1, | |
color = 0x993333, |
This file contains hidden or 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
//best version yet... | |
function processElement(element, ALL_IDS) { | |
let stylesheet = ''; | |
let svgString = ''; | |
// Check if the element has children (e.g., <g> elements) | |
if (element.children.length > 0) { | |
// If it's a group, process each child | |
let groupContent = ''; |
This file contains hidden or 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
//logic | |
//three components: | |
//front-door | |
float fd_width = chf("Front_Door_Width"); | |
//wide-garage | |
float wg_width = chf("Wide_Garage_Width"); | |
//narrow-garage | |
float ng_width = chf("Narrow_Garage_Width"); | |
//spacing |
NewerOlder