Discover gists
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
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 |
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
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 |
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
Fast Duplicate File Finder Crackeded |
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
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 |
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
<?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> |
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
const sc1Rate1 = { | |
name: "SC1 Rate I", | |
title: "SC1 Rate I", | |
rateElements: [ | |
{ | |
rateElementType: "EnergyTimeOfUse", | |
name: "Winter Energy", | |
billingCategory: "delivery", | |
rateComponents: [ | |
{ |
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
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= |
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
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 |
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
FXCM Free Access |
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
''' | |
================================= | |
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 | |
''' |