Skip to content

Instantly share code, notes, and snippets.

#include<iostream>
#include<unordered_map>
#include<vector>
#include<map> //for using map in c++
using namespace std;
class TreeNode{
public:
int data;
@lvanasse
lvanasse / ci-sim-01.log
Created April 22, 2025 13:38
[sim-01] CI Log for nuttx @ 0cb7bd7f7625a375b11ab3286f4037a408da0fc1 / nuttx-apps @ 5585c9d347ccc0d14b909eb8a8e0e74ad81bb04e
Script started on 2025-04-22 12:45:35+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh sim-01" <not executed on terminal>]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=sim-01
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss/
@320230
320230 / gist:35f88309e60078eaed7159d9c849ac61
Created April 22, 2025 13:38
华纳百家乐开户微信【386968.com【微信qweyubn】 第一财经!
东南亚法赌场诚信第一
pg电子综合游戏官方网址:(376967.com)
华纳真人版官方网址:(www.tl10183.com)
腾龙真人版官方网址: (386968.com)
综合电子游戏官方网址: (mm1387.com)
Type Longest Bloom Notable Varieties Notes
Reblooming Bigleaf ⭐⭐⭐⭐⭐ Endless Summer, Let's Dance Best for long, colorful season
Panicle ⭐⭐⭐⭐ Limelight, Pinky Winky Big blooms, good in sun, long-lasting
Oakleaf / Smooth ⭐⭐ Snow Queen, Annabelle Shorter season
@choco-bot
choco-bot / FilesSnapshot.xml
Created April 22, 2025 13:37
truecrypt v7.1.20150620 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\truecrypt\truecrypt.nupkg" checksum="D67A7DA44D9084CD3307D1A4B1F87E36" />
<file path="C:\ProgramData\chocolatey\lib\truecrypt\truecrypt.nuspec" checksum="EE0F5EC55BEDE168CBAA665F0CC3394E" />
<file path="C:\ProgramData\chocolatey\lib\truecrypt\tools\chocolateyInstall.ahk" checksum="F644542ED3D6A195C8E09CDB16C21C4C" />
<file path="C:\ProgramData\chocolatey\lib\truecrypt\tools\chocolateyInstall.ps1" checksum="A5AA308AE835FD25CA2A2F51AF5E75A8" />
<file path="C:\ProgramData\chocolatey\lib\truecrypt\tools\chocolateyUninstall.ahk" checksum="3C22EA4F72A6AB997CC1E84A33B72CFC" />
<file path="C:\ProgramData\chocolatey\lib\truecrypt\tools\chocolateyUninstall.ps1" checksum="6263FC8CE37DEA4DD26F2692B47D9B79" />
</files>
@choco-bot
choco-bot / FilesSnapshot.xml
Created April 22, 2025 13:36
displaycal.portable v3.8.9.3 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\displaycal.portable\displaycal.portable.nupkg" checksum="C35E23676E83C96EECC308F733C6D450" />
<file path="C:\ProgramData\chocolatey\lib\displaycal.portable\displaycal.portable.nuspec" checksum="90F917FCFC1C84FB6EE5588B956E99F6" />
<file path="C:\ProgramData\chocolatey\lib\displaycal.portable\tools\chocolateyinstall.ps1" checksum="1FA71C5E9AF93F7075EEB7B966ABFEA7" />
</files>
</fileSnapshot>
@st450949
st450949 / company_symbol_mapping.json
Created April 22, 2025 13:36
company_symbol_mapping.json
{
"TOT": "Total",
"XOM": "Exxon",
"CVX": "Chevron",
"COP": "ConocoPhillips",
"VLO": "Valero Energy",
"MSFT": "Microsoft",
"IBM": "IBM",
"TWX": "Time Warner",
"CMCSA": "Comcast",
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created April 22, 2025 13:36
glpi-agent v1.14.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3271648369-1090961594-3340217685-1000</user>
<keys>
<key installerType="Msi" displayName="GLPI Agent 1.14" displayVersion="1.14">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{69D9EA68-6BF5-1014-B9CE-BFBF889748D0}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\GLPI-Agent\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{69D9EA68-6BF5-1014-B9CE-BFBF889748D0}]]></UninstallString>
{
"title": "SwiftUI MVVM Rules with @Observable",
"rules": [
{
"pattern": ".*",
"instructions": [
"Refactor SwiftUI views to follow MVVM architecture using the modern @Observable macro.",
"Move state properties (e.g., @State, timers, computed properties) into a separate ViewModel struct or class.",
"Mark the ViewModel with @Observable (instead of conforming to ObservableObject).",
"Use @StateObject or @Bindable in the View to observe the ViewModel, depending on the data ownership model.",
@lazaronixon
lazaronixon / positionable.rb
Created April 22, 2025 13:36
positionable.rb
module Element::Positionable
extend ActiveSupport::Concern
included do
before_create :set_position
before_update :reposition_before_update
validates_numericality_of :position, greater_than_or_equal_to: 1, on: :update
end