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
contract Dicegambler { | |
//get commands from God Creator | |
uint storedData; | |
address creator; | |
address gamblesite; | |
address gambleaddress; | |
address myAddress = this; | |
string asciidata; | |
string asciidata1; | |
string asciidata2; |
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 | |
# This is a comment! | |
echo starting bot; # This is a comment, too! | |
echo "initialize gpio"; | |
gpio mode 1 out | |
gpio mode 0 out | |
VARIP="$(curl v4.ifconfig.co)"; #save external ip addr OR USE: curl ifconfig.me/ip | |
echo "Got IP addr"; | |
echo "${VARIP}"; #echo ip |
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 sketch demonstrates how to scan WiFi networks. | |
The API is almost the same as with the WiFi Shield library, | |
the most obvious difference being the different file you need to include: | |
resources: https://github.com/wemos/D1_mini_Examples & https://wiki.wemos.cc/products:d1:d1_mini_lite | |
*/ | |
#include "ESP8266WiFi.h" | |
#include <SPI.h> | |
#include "SSD1306Ascii.h" |
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://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/pixi.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/pixi-live2d-display/dist/index.min.js"></script> | |
<canvas id=canvas></canvas> |
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 | |
# Define the minimum required free space in MB | |
MIN_FREE_SPACE=2000 | |
# Define the filesystem to check | |
FILESYSTEM="/dev/root" | |
# Get the current directory | |
BUILD_DIR=$(pwd) |
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 script requires to have some basic Python skills | |
# - Install python dependencies (thanks to TitwitMuffbiscuit on reddit) : | |
# pip install nltk beautifulsoup4 googlesearch-python trafilatura wolframalpha | |
# | |
# If you get this error "Resource punkt not found", it's because Punkt sentence tokenizer for Natural Language Toolkit is missing. | |
# Edit the file and add this before | |
# from nltk.tokenize import word_tokenize , | |
# it will download the necessary english.pickle: | |
# import nltk | |
# nltk.download('punkt') |