Skip to content

Instantly share code, notes, and snippets.

View Alimustoofaa's full-sized avatar
👋
Hay

Ali Mustofa Alimustoofaa

👋
Hay
View GitHub Profile
@Alimustoofaa
Alimustoofaa / 8SMA
Created January 19, 2026 14:27
MA 3,5,10,20,50,100,200,400
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
//@version=6
indicator(title = '8 SMA (3,5,10,20,50,100,200,400)', shorttitle = '8MA', overlay = true)
// === Simple Moving Average ===
// MA Inputs
ma_type = input.string(title = 'MA Type', defval = 'sma', options = ['sma', 'ema'])
Length1 = input.int(3, minval = 1, title = 'MA 1')
Length2 = input.int(5, minval = 1, title = 'MA 2')
#!/bin/bash
#MIT License
#Copyright (c) 2021-23 Jetsonhacks
JETSON_FOLDER=JetPack_5.1.1_Linux_JETSON_XAVIER_NX_TARGETS
LINUX_FOR_TEGRA_DIRECTORY="$JETSON_FOLDER/Linux_for_Tegra"
# Flash Jetson Xavier to run from external storage
# Some helper functions. These scripts only flash Jetson Orins and Xaviers
sudo nano /etc/rc.local
Bash:
#!/bin/sh -e
# rc.local
#Maximize performances
( sleep 60 && /usr/bin/jetson_clocks )&
exit 0
sudo chmod +x /etc/rc.local
#!/bin/bash
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.
#
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
int reset = 0;
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
reset ++;
Serial.print("Menyambungkan ke WiFi : ");
Serial.println(ssid);
if (reset == 5) {
https://dl.espressif.com/dl/package_esp32_index.json
char* ssid = "Nama_WiFI";
char* password = "Password_WiFi";
@Alimustoofaa
Alimustoofaa / directive_wifiESP32.ino
Last active August 13, 2020 10:01
ESP32 Conntec WiFI
#include "WiFi.h"