- Install Windows 11 (clean install)
- Enable WSL2:
wsl --install -d Ubuntu-24.04 - Set default user to
joeyin/etc/wsl.conf - Enable systemd in
/etc/wsl.conf - Install chezmoi and apply dotfiles (pulls shell config, vim, starship, aliases, git config, Claude Code config)
- Install zsh:
sudo apt install zsh→chsh -s /usr/bin/zsh
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
| public class Configuration : IConfiguration | |
| { | |
| private readonly Risk riskSettings; | |
| private readonly int sortIndex = -1999; | |
| public IEnumerable<SettingItem> Settings => BuildSettings(); | |
| public Configuration() | |
| { | |
| riskSettings = new Risk(++sortIndex); |
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
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <RunILRepack>true</RunILRepack> | |
| </PropertyGroup> | |
| <Target Name="ILRepacker" AfterTargets="Build" Condition="'$(RunILRepack)' == 'true'"> | |
| <ItemGroup> | |
| <InputAssemblies Include="$(OutputPath)\<your-assembly>.dll"/> | |
| <InputAssemblies Include="$(OutputPath)\<some-third-party-assembly>.dll"/> |
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
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <Target Name="CopyToQuantower" AfterTargets="PostBuildEvent"> | |
| <Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFolder="C:\Quantower\Settings\Scripts\Strategies"/> | |
| </Target> | |
| </Project> |
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
| [Subject(typeof(TradeManager))] | |
| class when_price_is_updated | |
| { | |
| static ITradeManager subject; | |
| static Mock<ILevelRepository> level_repository; | |
| static Mock<IBroker> broker; | |
| static Mock<ILevel> level; | |
| static Mock<IStopLoss> stop_loss; | |
| static Mock<IConfiguration> configuration; | |
| static Mock<ITakeProfit> take_profit; |
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
| public interface ILogger | |
| { | |
| void Log(string message, LogLevel level = LogLevel.Info); | |
| } |
To wirelessly connect to a Rev Robotics Control Hub and compile/deploy code from Android Studio using ADB (Android Debug Bridge), follow these steps:
- Ensure Android Studio is installed and configured on your computer.
- Make sure your FTC Robot Controller app is set up on the Control Hub.
- Install ADB on your computer (if not already included with Android Studio).
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
| /* Copyright Lydia & M1 | |
| Take it, I don't care | |
| Programming is just copying | |
| */ | |
| package org.firstinspires.ftc.teamcode; | |
| import com.qualcomm.robotcore.eventloop.opmode.OpMode; | |
| import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
| import com.qualcomm.robotcore.hardware.DcMotor; | |
| import com.qualcomm.robotcore.hardware.Servo; |
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 { Controller } from 'stimulus' | |
| export default class extends Controller { | |
| static targets = ['content', 'keyword', 'iconDown', 'iconUp'] | |
| toggle () { | |
| if (this.contentTarget.classList.contains('hidden')) { | |
| this.showContent() | |
| this.changeKeyword('Hide') | |
| } else { |
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
| config.wrappers :flatpickr, class: 'mb-6 relative' do |b| | |
| b.use :html5 | |
| b.use :label, class: 'mb-2' | |
| b.wrapper tag: :div, html: { | |
| data: { | |
| controller: 'flatpickr', | |
| wrap: true, | |
| alt_format: 'm/d/Y', | |
| flatpickr_cleave_date_pattern: %w[m d Y] | |
| } |
NewerOlder