Skip to content

Instantly share code, notes, and snippets.

public with sharing class AccountTriggerHandler {
public static void handleBeforeInsert(List<Account> newAccounts){
for (Account a : newAccounts) {
if (a.Est_Annual_Sales__c >= 5000000) {
a.Priority__c = 'Highest';
} else if (a.Est_Annual_Sales__c >= 3000000) {
a.Priority__c = 'High';
} else if (a.Est_Annual_Sales__c >= 1000000) {
a.Priority__c = 'Standard';
@zhpphz
zhpphz / 总推送_statistics.md
Created May 13, 2025 13:30
联通话费统计 - 总推送

联通话费统计 - 总推送

备注: 自己

  • 账号数: 14
  • 总话费金额: 69.05 元

手机号: 15614620010

  • 5月共获得 3.76 元话费
  • 阅读区话费红包余额 1.32 元
@zhpphz
zhpphz / 自己_statistics.md
Created May 13, 2025 13:30
联通话费统计 - 自己

联通话费统计 - 自己

手机号: 15614620010

  • 5月共获得 3.76 元话费
  • 阅读区话费红包余额 1.32 元

详细领取记录

  • 时间: 2025-05-13 任务:【阅读2分钟抽随机话费红包】 面值: 0.01 元
  • 时间: 2025-05-12 任务:【阅读2分钟抽随机话费红包】 面值: 0.01 元
  • 时间: 2025-05-12 任务:【阅读任务赢至多20元话费阅读120分钟兑换】 面值: 0.2 元
@choco-bot
choco-bot / FilesSnapshot.xml
Created May 13, 2025 13:30
CShell v0.1.2.3 - 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\CShell\CShell.nupkg" checksum="22B1E7B35947D6E244AD359A4AEC6D96" />
<file path="C:\ProgramData\chocolatey\lib\CShell\cshell.nuspec" checksum="2ED2CF86E4E35CDADF4A764164B553A0" />
<file path="C:\ProgramData\chocolatey\lib\CShell\CShell.zip.txt" checksum="EBA9F261E4531E7240C93493E3897731" />
<file path="C:\ProgramData\chocolatey\lib\CShell\tools\chocolateyInstall.ps1" checksum="1C6861D8B0352FB8F5D4036DCBE828F8" />
<file path="C:\ProgramData\chocolatey\lib\CShell\tools\chocolateyuninstall.ps1" checksum="620E76BA6FA2E3E8B08B6D50C5A34C36" />
</files>
</fileSnapshot>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 13, 2025 13:30
Rimworld output log published using HugsLib
Log uploaded on Tuesday, May 13, 2025, 9:30:06 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
# ruby_tasks.rb
# 1. Дано цілочисельний масив. Вивести елементи з парними індексами, а потім з непарними.
data = [1, 2, 3, 4, 5, 6]
p (data.each_with_index.select { |_, i| i.even? } + data.each_with_index.select { |_, i| i.odd? }).map(&:first)
# 2. Дано цілочисельний масив. Вивести елементи з непарними індексами, а потім з парними.
data = [1, 2, 3, 4, 5, 6]
p (data.each_with_index.select { |_, i| i.odd? } + data.each_with_index.select { |_, i| i.even? }).map(&:first)
@choco-bot
choco-bot / Install.txt
Created May 13, 2025 13:29
clash-of-clans v0.38.6.0 - Passed - Package Tests Results
2025-05-13 13:26:15,423 4564 [DEBUG] - XmlConfiguration is now operational
2025-05-13 13:26:15,578 4564 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,578 4564 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,594 4564 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,610 4564 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,610 4564 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,625 4564 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,625 4564 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-05-13 13:26:15,641 4564 [DEBUG] - Adding new typ
@choco-bot
choco-bot / FilesSnapshot.xml
Created May 13, 2025 13:29
newrelic-cli v0.98.1 - 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\newrelic-cli\newrelic-cli.nupkg" checksum="AD08FF7D02C9D01AE9D2EE0B63CAD739" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-cli\newrelic-cli.nuspec" checksum="088224ACD92BD233156B0188514970D7" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-cli\tools\chocolateyinstall.ps1" checksum="2B0F0A34A1BD476CF77DC72B3E3EDE84" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-cli\tools\LICENSE.txt" checksum="86D3F3A95C324C9479BD8986968F4327" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-cli\tools\NewRelicCLIInstaller.msi" checksum="2963C1EE56A2123E2223BC96DB4E50DD" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-cli\tools\NewRelicCLIInstaller.msi.ignore" checksum="BEA07E6D2B8DCE396FE21BAA61B34956" />
<file path="C:\ProgramData\chocolatey\lib\newrelic-c
import boto3
import json
from concurrent.futures import ThreadPoolExecutor, as_completed
from rich.progress import Progress, SpinnerColumn, BarColumn, TextColumn
from rich.table import Table
from rich.console import Console
# Constants
EXCLUDED_OU_ID = 'ou-siwa-pei7z51d'
ROLE_NAME_TO_ASSUME = 'ca-iam-cie-engineer'
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 13, 2025 13:28
spotify v1.2.63.394 - 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-1742690462-2026882848-1095081203-1000</user>
<keys>
<key installerType="Unknown" displayName="Spotify" displayVersion="1.2.63.394.g126b0d89">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Spotify</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Users\vagrant\AppData\Roaming\Spotify]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Roaming\Spotify\Spotify.exe" /uninstall]]></UninstallString>