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
onStart() { | |
this.instance.Gyroseat.HeadsUpDisplay = true; | |
// body kits | |
this._kit = this.instance.FindFirstChild("Kit") as Folder | undefined; | |
this._occupantConnection = this.instance.Gyroseat.GetPropertyChangedSignal("Occupant").Connect(() => { | |
const humanoid = this.instance?.Gyroseat.Occupant; | |
this._prompt.Enabled = humanoid === undefined; | |
if (humanoid) { |
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 "sass:string"; | |
@use "sass:list"; | |
/** | |
* Use @container just like media-query | |
* A mixin to ensure contained grand-children are properly selected within their container | |
* without having to select all the way down from the contained element. | |
* $child:string - The valid selector you want inserted | |
* $index:number - The number of shifts to make in the parent selector | |
* $asSibling:bool - Use sibling combinator after the shift? |
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
sizeFormatter = new Intl.NumberFormat([], { | |
style: "unit", | |
unit: "byte", | |
notation: "compact", | |
unitDisplay: "narrow", | |
}); | |
(_bytes) => { | |
const units = { B: " bytes", KB: " kb", MB: " mb", GB: " gb", TB: " tb" }; | |
const parts = sizeFormatter.formatToParts(_bytes); |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
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
Campaign Promise,Kept,Good for America | |
Build a Wall,No. There are 7 out of 2000 miles complete. All other construction is repair work budgeted before he took office.,No. The border backlog is unimproved and will never be improved with 4th century technology. | |
Get Mexico to pay for it.,No. He diverted 2.5 billion in military construction projects. A lot of those were housing and schools for military families.,No. The military extends far beyond guns and ammo and he doesn’t understand troop morale at all. | |
Temporarily ban muslims,No. 3 versions have all been held up in court citing the same lack of planning.,No. All Muslims are no more Bin Laden than all Christians are Jim Jones. Extreme idiocy is scary no matter what rock you crawl from under. | |
Bring Manufacturing Back,Sorta. He’s attempting brute force through tariffs and easing restrictions which causes foreign countries to open factories here but with no real trade agreements our GDP stands to suffer. At least he’s doing something.,"Should be. Making it diffic |
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
using System; | |
using System.Text.RegularExpressions; | |
namespace BreakEvenCalculator | |
{ | |
// Parses strings into American Odds and converts to other formats. | |
public class AmericanOdds | |
{ | |
private const string rx_string = @"^([\+-])(\d\d\d+)$"; |
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
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
// "incremental": true, /* Enable incremental compilation */ | |
"target": "es2016" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, | |
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, | |
"lib": [ | |
"dom", | |
"es2016" | |
] /* Specify library files to be included in the compilation. */, |
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
// affix the title input in the wordpress admin | |
#titlediv { | |
position: fixed; | |
width: calc( 100% - 180px); | |
z-index: 1010; | |
top: 32px; | |
background: white; | |
padding: 10px; | |
margin-left: -20px; | |
border: 1px solid black; |
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
PS1='`__git_ps1 "[%s] "`\u:\[$(tput sgr0)\]\[\033[38;5;45m\]\W\[$(tput sgr0)\]\[\033[38;5;15m\]\\$\[$(tput sgr0)\] ' | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-completion.bash | |
fi | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-prompt.sh ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-prompt.sh | |
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
<?php | |
/* | |
* This snippet is from a project where I used an ACF Options gallery field to collect a set of icons. | |
* This fields data was then used to replace a radio field's options with the actual icons. | |
*/ | |
class Special_Excerpt_Icon { | |
function __construct() { | |
// filter load_field on all 'radio' fields | |
add_filter('acf/load_field/type=radio', array($this, 'on_acf_load_radio_field' ) ); | |
} |
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 | |
register_taxonomy( 'uh_service_type_taxonomy', array( 'contact_cpt' ), $args ); | |
// add and 'Order' column to Service Type taxonomy terms | |
add_filter("manage_edit-uh_service_type_taxonomy_columns", "on_manage_edit_uh_service_type_taxonomy_columns"); | |
function on_manage_edit_uh_service_type_taxonomy_columns( $columns ) { | |
$columns['term_order'] = __('Order'); | |
return $columns; | |
} |
NewerOlder