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
local tobectrl = { | |
["base_type"] = "gpio-output", | |
["pin"] = 4 | |
} | |
sys.timerLoopStart(function() | |
log.info("test test") | |
sensors.control(tobectrl, 1) | |
sys.wait(2000) | |
sensors.control(tobectrl, 0) | |
sys.wait(2000) |
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
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/jsnview/build/index.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jsnview/build/index.css" /> | |
<style type="text/css"> | |
*{box-sizing: border-box; font-family: "Open Sans", Consolas, Georgia, Times, 'Times New Roman', serif;} | |
body { | |
font-size:14px; | |
margin:0 | |
padding:20px; | |
background:#ddd; |
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
python3 -m venv ./venv | |
source ./venv/bin/activate | |
pip3 install flask==1.1.4 | |
pip3 install flask-socketio==4.3.1 | |
pip3 install flask_cors==3.0.10 | |
pip3 install gdown | |
pip3 install Jinja2==2.10.1 | |
pip3 install python-socketio==4.6.0 | |
pip3 install python-engineio==3.13.2 | |
pip3 install markupsafe==1.1.1 |
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
from fpioa_manager import * | |
from Maix import I2S, GPIO | |
import audio | |
fm.register(18, fm.fpioa.GPIO1) | |
sound_en=GPIO(GPIO.GPIO1,GPIO.OUT) | |
sound_en.value(1) | |
# register i2s(i2s0) pin | |
fm.register(20,fm.fpioa.I2S0_OUT_D1, force=True) |
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
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
// Credits to the original Script - Range Filter DonovanWall https://www.tradingview.com/script/lut7sBgG-Range-Filter-DW/ | |
// This version is the old version of the Range Filter with less settings to tinker with | |
//@version=4 | |
strategy(title="Range Filter - B&S Signals", overlay=true, initial_capital=100, default_qty_value=0.01) | |
//----------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
//Functions |
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=4 | |
//Original Script > @DonovanWall | |
// Actual Version > @guikroth | |
// EDIT > @comdet | |
strategy(title="RFF Gambling", overlay=false) | |
// ==== for Range Filter ====// | |
startDate = input(title="Start Date", type=input.integer, | |
defval=1, minval=1, maxval=31) |
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=4 | |
strategy("My Strategy", overlay=true) | |
////////////////////////////////////////////////////////////////////// | |
// Testing Start dates | |
testStartYear = input(2020, "Backtest Start Year") | |
testStartMonth = input(1, "Backtest Start Month") | |
testStartDay = input(1, "Backtest Start Day") | |
testPeriodStart = timestamp(testStartYear,testStartMonth,testStartDay,0,0) | |
//Stop date if you want to use a specific range of dates |
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
import requests, json, time | |
import warnings | |
warnings.filterwarnings("ignore") | |
url = 'https://www.popdog.click/clicked/v2' | |
data = { "clicks": 2000,"uuid": "8745407d-0219-406d-ac09-058d2794b4dc","username": None} | |
for i in range(99999999): | |
res = requests.post(url, json = data,verify=False) | |
if res.status_code == 200: | |
res_data = json.loads(res.text) | |
print(f"clicks : {res_data['clicks']}") |
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
#include "driver/i2c.h" | |
#define DATA_LENGTH 512 | |
#define RW_TEST_LENGTH 4 | |
#define I2C_SLAVE_SCL_IO 5 | |
#define I2C_SLAVE_SDA_IO 4 | |
#define I2C_SLAVE_NUM 1 | |
#define I2C_SLAVE_TX_BUF_LEN (2 * DATA_LENGTH) | |
#define I2C_SLAVE_RX_BUF_LEN (2 * DATA_LENGTH) | |
#define ESP_SLAVE_ADDR 0x33 |
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
/** | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2018 by ThingPulse, Daniel Eichhorn | |
* Copyright (c) 2018 by Fabrice Weinberg | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
NewerOlder