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
#!/bin/bash | |
# CHANGE THIS | |
ACTUAL_EZA=/usr/local/bin/_eza | |
display_time="modified" | |
sort_time="" | |
args=() | |
while [ "$#" -gt 0 ]; do |
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
{ lib, pkgs, ... }: | |
let | |
# Function to wrap a package with custom environment variables | |
makeWrappedPackage = pkg: envVars: pkgs.symlinkJoin { | |
name = "env-wrap-${pkg.pname or pkg.name}"; | |
paths = [ pkg ]; # Symlink all files form the original | |
buildInputs = [ pkgs.makeWrapper ]; | |
postBuild = '' | |
for exe in ${lib.getExe pkg}; do |
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
{ lib, pkgs, ... }: | |
let | |
# Function to wrap a package with custom environment variables | |
makeWrappedPackage = pkg: envVars: pkgs.stdenv.mkDerivation { | |
name = "env-wrap-${pkg.name}"; | |
nativeBuildInputs = [ pkgs.makeWrapper ]; | |
buildCommand = '' | |
mkdir -p $out/bin | |
for exe in ${lib.getExe pkg}; do |
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
# Window Navigation | |
Mod j / k : Focus next / prev window | |
Mod Enter : Move to master | |
Mod Tab : Prev tag | |
# Window Management | |
Mod h / l : Shrink / Grow master | |
Mod Shift c : Close window | |
Mod Shift Space : Toggle float | |
Mod Shift f : Fullscreen |
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
#!/bin/sh | |
name=$1 | |
case "$name" in | |
speedcrunch) | |
win_ids=$(xdotool search --classname "SpeedCrunch") | |
visible_win="" | |
hidden_win="" |
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
int bit_array[25]; // For storing the data bit. bit_array[0] = data bit 1 (LSB), bit_array[23] = data bit 24 (MSB). | |
unsigned long time_now; // For storing the time when the clock signal is changed from HIGH to LOW (falling edge trigger of data output). | |
int CLOCK_PIN = 2; | |
int DATA_PIN = 3; | |
void setup() { | |
Serial.begin(115200); | |
pinMode(CLOCK_PIN, INPUT); |
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
/** | |
* @file | |
* ESLint configuration for a monorepo project | |
*/ | |
import { default as pluginTs, Config } from 'typescript-eslint' | |
import { FlatCompat } from '@eslint/eslintrc' | |
import globals from 'globals' | |
import jsdoc from 'eslint-plugin-jsdoc' | |
import pluginJs from '@eslint/js' | |
import pluginJson from 'eslint-plugin-json' |
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
#!/usr/bin/python3 | |
from collections import deque | |
MAX_NUMBER = 18 | |
# Define operations as functions | |
def add(x, y): return x + y | |
def sub(x, y): return x - y | |
def mul(x, y): return x * y |
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
//@version=5 | |
indicator("Pivot SRs", overlay=true) | |
lookback = input.int(12, "Lookaround bars") | |
number_of_lines = input.int(5, "Lines to keep") | |
getLastNonNaInfo(series) => | |
float lastValue = na | |
int lastIndex = na | |
for i = 0 to 1000 // Adjust the range as necessary |
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
// @version=5 | |
indicator(title="Multi-MA", shorttitle="MA", overlay=true) | |
var string MA_EMA = "EMA" // (Exponential Moving Average)" | |
var string MA_SMA = "SMA" // (Simple Moving Average)" | |
var string MA_WMA = "WMA" // (Weighted Moving Average)" | |
var string MA_HMA = "HMA" // (Hull Moving Average)" | |
var string MA_RMA = "RMA" // (Relative Moving Average)" | |
var string MA_SWMA = "SWMA" // (Symmetrically-Weighted Moving Average)" |
NewerOlder