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
# Compilation provided by Compiler Explorer at https://godbolt.org/ | |
example::no_pow: | |
push rax | |
mov eax, edi | |
sub eax, 1 | |
mov dword ptr [rsp + 4], eax | |
cmp edi, 1 | |
setb al | |
test al, 1 | |
jne .LBB0_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
use color_eyre::eyre::{Result, Context}; | |
use nom::{ | |
bytes::complete::tag, | |
character::complete::alpha1, | |
combinator::rest, | |
error::{ErrorKind, ParseError}, | |
sequence::preceded, | |
*, | |
}; | |
use thiserror::Error; // 1.0.38 |
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
# the scripting-addition must be loaded manually if | |
# you are running yabai on macOS Big Sur. Uncomment | |
# the following line to have the injection performed | |
# when the config is executed during startup. | |
# | |
# for this to work you must configure sudo such that | |
# it will be able to run the command without password | |
sudo yabai --load-sa | |
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" |
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 bevy_pbr::mesh_view_bindings | |
#import bevy_pbr::mesh_bindings | |
// NOTE: Bindings must come before functions that use them! | |
#import bevy_pbr::mesh_functions | |
#import bevy_shader_utils::simplex_noise_3d | |
#import bevy_shader_utils::simplex_noise_2d | |
struct StandardMaterial { |
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
use bevy::{ | |
asset::AssetServerSettings, | |
pbr::{ | |
MaterialPipeline, MaterialPipelineKey, | |
StandardMaterialKey, StandardMaterialUniform, | |
}, | |
prelude::*, | |
reflect::TypeUuid, | |
render::{ | |
mesh::{ |
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
{ | |
"__header__": { | |
"fileType": "LDtk Project JSON", | |
"app": "LDtk", | |
"doc": "https://ldtk.io/json", | |
"schema": "https://ldtk.io/files/JSON_SCHEMA.json", | |
"appAuthor": "Sebastien 'deepnight' Benard", | |
"appVersion": "0.9.3", | |
"url": "https://ldtk.io" | |
}, |
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
688,126 | |
1237,406 | |
1228,327 | |
827,189 | |
132,457 | |
641,120 | |
1255,579 | |
1310,187 | |
371,166 | |
576,332 |
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
9:48:53 AM: Build ready to start | |
9:48:54 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6 | |
9:48:54 AM: build-image tag: v3.4.1 | |
9:48:54 AM: buildbot version: 648208d76731cd5bca75c1e9bc99d2032a1f1473 | |
9:48:54 AM: Building without cache | |
9:48:54 AM: Starting to prepare the repo for build | |
9:48:55 AM: No cached dependencies found. Cloning fresh repo | |
9:48:55 AM: git clone git@github.com:ChristopherBiscardi/christopherbiscardi.github.com | |
9:49:02 AM: Preparing Git Reference refs/heads/toastrs | |
9:49:04 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'packages/www/public' versus 'www/public' in the Netlify UI |
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 React, { useReducer } from "react"; | |
const cToF = (c) => c * (9 / 5) + 32; | |
const fToC = (f) => (f - 32) * (5 / 9); | |
const reducer = (state, action) => { | |
const parsedPayload = parseInt(action.payload); | |
const isNaN = Number.isNaN(parsedPayload); | |
switch (action.type) { | |
case "setCelcius": |
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 React, { useState } from "react"; | |
export const Counter = (props) => { | |
const [count, setCount] = useState(0); | |
return ( | |
<div> | |
<input readOnly value={count} /> | |
<button | |
onClick={(e) => { | |
setCount(count + 1); |
NewerOlder