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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include <ArduinoOTA.h> | |
#include <ESP8266Ping.h> | |
#include <ArduinoJson.h> | |
//const char* ssid = "..."; | |
//const char* password = "..."; |
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 | |
cat > "/etc/systemd/system/${1}.service" << EOF | |
[Unit] | |
Description=$2 | |
After=network-online.target | |
[Service] | |
Type=simple | |
User=%i |
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
const mediaName = 'Neon Genesis Evangelion'; // Works for romanian/latin alphabet based languages only | |
var isEvangelion = false; | |
var epNumber; | |
var audio; | |
var video; | |
var audioLastPosition = 0; | |
var episodes = { | |
"1": { 'endingThemeURL': 'https://instaud.io/_/3Rdt.mp3', 'secondsLeftToMuteVideo': 96.0, 'secondsLeftToStartTheme': 95.7 }, | |
"2": { 'endingThemeURL': 'https://instaud.io/_/3Rdu.mp3', 'secondsLeftToMuteVideo': 96.0, 'secondsLeftToStartTheme': 95.7 }, | |
"3": { 'endingThemeURL': 'https://instaud.io/_/3Rdv.mp3', 'secondsLeftToMuteVideo': 96.0, 'secondsLeftToStartTheme': 95.7 }, |
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
$(document).keydown(function(event){ | |
var player = $('video')[0] | |
if (event.keyCode == 39 || event.keyCode == 68){ | |
player.currentTime = player.currentTime + 10 | |
} else if (event.keyCode == 37 || event.keyCode == 65){ | |
player.currentTime = player.currentTime - 10 | |
} else if (event.keyCode == 32){ | |
event.preventDefault(); | |
if (player.paused){ | |
player.play() |
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
var checkPixels = function(){ | |
var pixelData = document.getElementsByClassName('runner-canvas')[0].getContext('2d').getImageData(220, 230, 1, 1).data; | |
if (pixelData.some(function(e) {return e>0})){ | |
Runner.instance_.tRex.startJump() | |
} | |
} | |
var interval = setInterval(checkPixels, 10) |
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 | |
RED='\033[0;31m' | |
PROJECT_NAME=$1 | |
PROJECTS_REPOSITORY_FILE_FULL_PATH="/path/to/saveproj/output/file" | |
PROJECTS_FOLDER_FULL_PATH="/path/to/your/projects/folder" | |
if ! line=$(grep "\<$PROJECT_NAME\>" $PROJECTS_REPOSITORY_FILE_FULL_PATH) | |
then | |
echo -e "${RED}$PROJECT_NAME not found in projects list. You can create one by using the saveproj tool." | |
else | |
directory_name=${line##* } |