This file contains hidden or 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
class_name Globalz | |
static var _globals := {} | |
static func write(key: String, value: Variant) -> void: | |
_globals[key] = value | |
static func read(key: String) -> Variant: | |
return _globals.get(key) |
This file contains hidden or 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
{{- define "templated-values" -}} | |
{{- $filteredValues := dict -}} | |
{{- range $key, $val := $.Values }} | |
{{- $isSubchart := false -}} | |
{{- range $name, $subchart := $.Subcharts }} | |
{{- if eq $key $name }} | |
{{- $isSubchart = true -}} | |
{{- end -}} | |
{{- end -}} | |
{{- if not $isSubchart }} |
This file contains hidden or 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
class DataViewStream { | |
_grow = false | |
_byteOffset = 0 | |
_view = null | |
_textDecoder = new TextDecoder() | |
_textEncoder = new TextEncoder() | |
get byteOffset() { return this._byteOffset } | |
get byteLength() { return this._view.byteLength } | |
get bytesLeft() { return this._view.byteLength - this._offset } |
This file contains hidden or 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
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Get the latest tag | |
LAST_TAG="$(git describe --tags --abbrev=0 2>/dev/null || true)" | |
# Get commits since the last tag, or all commits if no tag exists | |
if [[ -z "$LAST_TAG" ]]; then | |
COMMITS=$(git log --pretty=format:"%s") |
This file contains hidden or 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
// ==UserScript== | |
// @name GitHub Tag Creator | |
// @namespace http://tampermonkey.net/ | |
// @version 2.2 | |
// @description Add ability to create tags on GitHub via API | |
// @author freehuntx | |
// @match https://github.com/*/*/tags* | |
// @grant GM_xmlhttpRequest | |
// @grant GM_addStyle | |
// @grant GM_getValue |
OlderNewer