Skip to content

Instantly share code, notes, and snippets.

@ShrinivasVish
ShrinivasVish / rotated_list_binary_search.py
Last active March 13, 2025 15:09
This approach implements the binary search algorithm to search an element in the descending order list that's rotated in the left direction 'r' number of times. Also the code has been wrapped into a function to facilitate better reusability and code organization.
def rotated_binary_search(arr, target):
left, right = 0, len(arr) - 1
while left <= right:
mid = (left + right) // 2
if arr[mid] == target:
return mid
if arr[left] >= arr[mid]: # First half is descending
@nuttxpr
nuttxpr / ci-arm-13.log
Created March 13, 2025 15:04
[arm-13] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
Script started on 2025-03-13 22:06:23+08:00 [COMMAND="/home/luppy/nuttx-release/run-job.sh arm-13 1" TERM="tmux-256color" TTY="/dev/pts/6" COLUMNS="100" LINES="10"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh arm-13 1
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=arm-13
+ [[ arm-13 == '' ]]
+ instance=1
+ set
+ grep TMUX
+ true
+ neofetch
@contatesnadr72
contatesnadr72 / Fast Duplicate File Finder
Created March 13, 2025 15:04
Fast Duplicate File Finder Cracked
Fast Duplicate File Finder Crackeded
DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"
- Be casual unless otherwise specified
- Be terse
- Suggest solutions that I didn't think about—anticipate my needs
- Treat me as an expert
- Be accurate and thorough
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer
- Value good arguments over authorities, the source is irrelevant
- Consider new technologies and contrarian ideas, not just the conventional wisdom
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 13, 2025 15:03
InstEd v1.5.15.27 - 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-2554630235-701135798-1881170629-1000</user>
<keys>
<key installerType="Msi" displayName="InstEd 1.5.15.26" displayVersion="1.5.15.26">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7EA575-6F1D-4365-A66E-B84FC18A784D}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{AC7EA575-6F1D-4365-A66E-B84FC18A784D}]]></UninstallString>
@jrogers97
jrogers97 / coned-rates.js
Created March 13, 2025 15:03
ConEd Rate Definitions
const sc1Rate1 = {
name: "SC1 Rate I",
title: "SC1 Rate I",
rateElements: [
{
rateElementType: "EnergyTimeOfUse",
name: "Winter Energy",
billingCategory: "delivery",
rateComponents: [
{
https://docs.google.com/forms/d/e/1FAIpQLSdawwyW2N6BWCoPWgLK3Lg4nu3_kmo-XapnJS4prGoNI-Obag/viewform?usp=pp_url&entry.14417072=N%C4%83m%20nh%E1%BA%A5t&entry.99928875=4&entry.138691501=Gi%E1%BA%A3i%20tr%C3%AD&entry.138691501=Giao%20ti%E1%BA%BFp%20v%E1%BB%9Bi%20m%E1%BB%8Di%20ng%C6%B0%E1%BB%9Di&entry.614216733=C%C3%B3&entry.479910475=%C4%90%C3%A3%20t%E1%BB%ABng&entry.2077544685=%C4%90%C3%A3%20t%E1%BB%ABng&entry.1608000481=Kh%C3%B4ng%20th%E1%BB%83&pageHistory=0
https://docs.google.com/forms/d/e/1FAIpQLSdawwyW2N6BWCoPWgLK3Lg4nu3_kmo-XapnJS4prGoNI-Obag/viewform?usp=pp_url&entry.14417072=N%C4%83m%20ba&entry.99928875=3&entry.138691501=H%E1%BB%8Dc%20t%E1%BA%ADp%20v%C3%A0%20l%C3%A0m%20vi%E1%BB%87c&entry.614216733=C%C3%B3&entry.479910475=%C4%90%C3%A3%20t%E1%BB%ABng&entry.2077544685=Ch%C6%B0a%20t%E1%BB%ABng&entry.1608000481=C%C3%B3%20th%E1%BB%83&pageHistory=0
https://docs.google.com/forms/d/e/1FAIpQLSdawwyW2N6BWCoPWgLK3Lg4nu3_kmo-XapnJS4prGoNI-Obag/viewform?usp=pp_url&entry.14417072=N%C4%83m%20nh%E1%BA%A5t&entry.99928875=
@choco-bot
choco-bot / Install.txt
Created March 13, 2025 15:02
thegiant.freshinstall v1.2 - Failed - Package Tests Results
2025-03-13 14:16:35,998 472 [DEBUG] - XmlConfiguration is now operational
2025-03-13 14:16:36,342 472 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,342 472 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,357 472 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,357 472 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,372 472 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,372 472 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,388 472 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-03-13 14:16:36,388 472 [DEBUG] - Adding new type 'RubyGe
@distrididelu6
distrididelu6 / FXCM Free Access
Created March 13, 2025 15:02
FXCM Free Access
FXCM Free Access
@Youssef-Raad
Youssef-Raad / python_heart.py
Created March 13, 2025 15:01 — forked from franktoffel/python_heart.py
How to plot a 3D heart for San Valentin with Python (matplotlib)
'''
=================================
3D heart shape in matplotlib
=================================
Demonstrates how to plot a 3D function in cartesian coordinates.
Uses the marching cubes algorithm in scikit-image to obtain a isosurface.
Example contributed by CAChemE.org
Adapted from: http://www.walkingrandomly.com/?p=2326
'''