Skip to content

Instantly share code, notes, and snippets.

View kaigouthro's full-sized avatar

kai gouthro kaigouthro

  • Alberta, Canada
View GitHub Profile
@kaigouthro
kaigouthro / cloudSettings
Last active November 13, 2018 06:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-11-13T06:20:47.409Z","extensionVersion":"v3.2.0"}
@kaigouthro
kaigouthro / cloudSettings
Last active April 16, 2019 15:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-16T15:48:03.675Z","extensionVersion":"v3.2.8"}
Version: webpack 4.27.1
Time: 1478ms
Built at: 12/17/2018 6:21:33 AM
Asset Size Chunks Chunk Names
asset-manifest.json 119 bytes [emitted]
index.html 3.38 KiB [emitted]
static/js/bundle.js 31 KiB runtime~main [emitted] runtime~main
static/js/main.chunk.js 7.93 KiB main [emitted] main
Entrypoint main = static/js/bundle.js static/js/main.chunk.js
@kaigouthro
kaigouthro / package.json
Created December 17, 2018 14:05
package, just made everything a regular dependency for now, most not in use.
{
"name": "merp",
"version": "0.1.0",
"private": true,
"scripts": {
"build": "node scripts/build.js",
"start": "node scripts/start.js",
"test": "node scripts/test.js"
},
"jest": {
@kaigouthro
kaigouthro / color_conversion.py
Created October 17, 2022 08:52 — forked from mathebox/color_conversion.py
Python methods to convert colors between RGB, HSV and HSL
import math
def rgb_to_hsv(r, g, b):
r = float(r)
g = float(g)
b = float(b)
high = max(r, g, b)
low = min(r, g, b)
h, s, v = high, high, high
@kaigouthro
kaigouthro / pinescript5ref.txt
Created December 17, 2022 05:34
pineforai
Pine Script™ language reference manual
Language Operators
!=
Not equal to. Applicable to expressions of any type.
expr1 != expr2
RETURNS
Boolean value, or series of boolean values.
%
@kaigouthro
kaigouthro / pine5.tmLanguage
Created January 12, 2023 04:15
pinescript5 tmlanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>Pinescript</string>
<key>fileTypes</key>
<array>
<string>pine</string>
<string>pinescript</string>
[{
"0": [
"\\b(\\w\\+.all)\\b"
]
},
{
"1": [
"(color)(\\.)(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)"
]
},
{
"keyords and operators": [
"!=",
"%",
"%=",
"*",
"*=",
"+",
"+=",
"-",
//@version=5
library("keyed_primatives")
export type float_item
string key = ''
float val = 0.
export type float_dict
float_item[] content