Skip to content

Instantly share code, notes, and snippets.

@sedhuait
sedhuait / contemplative-llms.txt
Created January 7, 2025 11:14 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@sedhuait
sedhuait / README.txt
Created March 18, 2022 07:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@sedhuait
sedhuait / README.txt
Created June 6, 2021 05:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@sedhuait
sedhuait / generateRandomIPv6Address.ts
Created April 12, 2021 17:07
Random IPv6 Address js/ts
static generateRandomIPv6Address(prefix = 2000): string {
const items = '0123456789abcdef'.split('');
const randomised = [];
for (let i = 0; i < 28; i++) {
randomised[i] = items[Math.floor(Math.random() * items.length)];
}
const ipBlock: string[][] = [];
for (let i = 0; i < randomised.length; i++) {
const blockIndex = Math.floor(i / 4);
if (!Array.isArray(ipBlock[blockIndex])) {
# Usage:
# Change profile when using ssh.
# You MUST define a profile named 'ForSSH' with diferent settings.
# I am using color schemes with different background color.
# Then:
# $ save as ~/.iterm2.zsh
# $ echo ". ~/.iterm2.zsh" >> ~/.zshrc
# iTerm2 window/tab color commands
# Requires iTerm2 >= Build 1.0.0.20110804
@sedhuait
sedhuait / npm-using-https-for-git.sh
Created March 26, 2020 15:57 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
### Keybase proof
I hereby claim:
* I am sedhuait on github.
* I am sedhu (https://keybase.io/sedhu) on keybase.
* I have a public key whose fingerprint is 7937 AC55 06B4 6616 678D E115 B428 32AC C014 E7B3
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am sedhuait on github.
* I am sedhu (https://keybase.io/sedhu) on keybase.
* I have a public key whose fingerprint is 7937 AC55 06B4 6616 678D E115 B428 32AC C014 E7B3
To claim this, I am signing this object:
/*jshint esversion: 6 */
const ATR = require('technicalindicators').ATR;
const HA = require('technicalindicators').HeikinAshi;
const moment = require('moment');
const _ = require('underscore-node');
const Log = require('../util/logger');
var calculateSTR = function(result, { multiplier = 3, period = 7, is_ha = true } = {}) {
let open = [],