Skip to content

Instantly share code, notes, and snippets.

View Jordan-Hall's full-sized avatar
💭
Faced with tyranny by the big corporation, open source becomes the resistance.

Jordan Upton Jordan-Hall

💭
Faced with tyranny by the big corporation, open source becomes the resistance.
  • Mansfield woodhouse
View GitHub Profile
//@version=6
indicator("AurumEdge Mega XAUUSD SMC Scalper v1.4.4 Clean UI Zones + Score Guide", overlay=true, max_lines_count=500, max_labels_count=500, max_boxes_count=500, dynamic_requests=true)
src = input.source(close, "Source")
groupHelp = "00. Collapsible Help - How To Read"
showHelpPanel = input.bool(false, "Show Help Panel", group=groupHelp, tooltip="Shows a compact guide on the chart. This group is collapsible in settings.")
helpMode = input.string("Compact", "Help Detail", options=["Off", "Compact", "Full"], group=groupHelp, tooltip="Compact shows the minimum. Full explains each engine.")
showConfluenceReasons = input.bool(true, "Show Reasons", group=groupHelp, tooltip="Shows why BUY/SELL/WAIT is being suggested.")
showActionOnly = input.bool(false, "Only Show Actionable BUY/SELL", group=groupHelp, tooltip="When enabled, forming areas still calculate but the dashboard stays WAIT until a valid entry triggers.")
@Jordan-Hall
Jordan-Hall / pinescript
Last active May 14, 2026 17:50
Trading View Pinescript
//@version=6
indicator("XAUUSD Pro Scalper v5 - Fixed (Pine v6)", overlay=true, max_boxes_count=120, max_labels_count=200, max_lines_count=80)
// ============================================================================
// INPUTS
// ============================================================================
grpData = "Data Sources"
dxySymbol = input.symbol("TVC:DXY", "DXY Symbol", group=grpData)
dxyTf = input.timeframe("5", "DXY Timeframe", group=grpData)
#!/bin/bash
set -e
# -------------------------
# DEFAULT CONFIGURATION
# -------------------------
HOST_IP_DEFAULT=$(hostname -I | awk '{print $1}')
DOMAIN_DEFAULT="$HOST_IP_DEFAULT.sslip.io"
EMAIL_DEFAULT="jordan@libertyware.co.uk"
ADMIN_USER_DEFAULT="admin"
@Jordan-Hall
Jordan-Hall / compiler.ts
Created October 26, 2024 19:41
Make the functions return state correctly for ivy
import * as ts from "typescript";
// Input function
const sourceCode = `
function example() {
let test = 1;
let helloWorld;
const add = (by) => {
test += by;
};
@Jordan-Hall
Jordan-Hall / nx+19.8.2.patch
Created September 27, 2024 13:19
Community remote cache support
diff --git a/node_modules/nx/src/tasks-runner/cache.js b/node_modules/nx/src/tasks-runner/cache.js
index 36a7089..a1b7809 100644
--- a/node_modules/nx/src/tasks-runner/cache.js
+++ b/node_modules/nx/src/tasks-runner/cache.js
@@ -110,7 +110,8 @@ class DbCache {
}
}
else {
- return ((await this.getPowerpackS3Cache()) ??
+ return ((await this.getPowerpackCache(nxJson.communityCache)) ??
@Jordan-Hall
Jordan-Hall / app.treaty
Last active September 14, 2024 04:19
functional ivy
<style>
button { cursor: pointer }
label { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.cm-editor { height: 100%; }
#loading { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: center; align-items: center; }
#container { display: flex; height: 100vh; }
#left { display: flex; flex: 1; flex-direction: column; border-right: 1px solid #444 }
#editor { flex: 1; overflow-y: auto; }
#panel { height: 20%; overflow-y: auto; padding: 1em; color: #d1d5da; border-top: 1px solid #444!important; }
#right { flex: 1; display:flex; flex-direction: column; min-width: 0; }
import { CreateDependenciesContext, joinPathFragments } from '@nx/devkit';
import { execSync } from 'child_process';
import { hashArray } from 'nx/src/hasher/file-hasher';
import {getYarnLockfileDependencies, getYarnLockfileNodes} from 'nx/src/plugins/js/lock-file/yarn-parser'
const lockFilePath = process.cwd() + '/bun.lockb';
let lockFileContents = execSync(`bun ${lockFilePath}`, {maxBuffer: 1024 * 1024 * 10 }).toString();
const hashed = hashArray(['19.1.0-beta.5', lockFileContents]);
console.log('hashed',hashed);
@Jordan-Hall
Jordan-Hall / nx+16.8.1.patch
Last active January 15, 2024 12:23
Bun as a NX package manager
diff --git a/node_modules/nx/schemas/nx-schema.json b/node_modules/nx/schemas/nx-schema.json
index 091b7d0..227e128 100644
--- a/node_modules/nx/schemas/nx-schema.json
+++ b/node_modules/nx/schemas/nx-schema.json
@@ -201,7 +201,7 @@
"packageManager": {
"type": "string",
"description": "The default package manager to use.",
- "enum": ["yarn", "pnpm", "npm"]
+ "enum": ["yarn", "pnpm", "npm", "bun"]
@Jordan-Hall
Jordan-Hall / ast-merge-vite-config.ts
Last active January 14, 2023 01:12
Merge vite config via ast
import * as ts from 'typescript';
import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'fs';
import { dirname } from 'path';
function mergeDeeply(first: ts.ObjectLiteralExpression, second: ts.ObjectLiteralExpression) {
const mergedProperties: ts.ObjectLiteralElementLike[] = [];
// Add properties from first object
for (const prop of first.properties) {
mergedProperties.push(prop);
@Jordan-Hall
Jordan-Hall / style.css
Created March 29, 2022 14:45
Accessibility css
* {
cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNrs2dEKgDAIhWEN3/+VLYtBF12MppHwDxY0uvg4DJpORcSl0bB4uPcwq+oFHu8/956pbtJsAAYMGDBgwIABA044t3pMEgb8VU2XsWdn1o/aUUn4bchPBWNFYWvVidxbCFGmr7YULBs1YDPfsYcXEi9ryvDjAAwYMGDAgAED7nK8bHG7qNLs6nYXYAAheh5j8Qw5fwAAAABJRU5ErkJggg==) 22 22, auto !important;
}