- ifttt-api.js:
Node server, must be hosted on a provider.
It exposes a TCP Server to send commands to the client, and an HTTP Server to receive commands from IFTTT.
- pc-client.js:
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
public class Main | |
{ | |
public static void main(String[] args) throws Exception { | |
//Create a new String "Hello" | |
String s = "Hello"; | |
//Change the value of "s" variable to "Goodbye" |
#!/bin/bash | |
# Root user check | |
if [[ $EUID -ne 0 ]]; then | |
echo You must be root to execute this script! | |
exit 1 | |
fi | |
SNAPS=.snapshots | |
SNAPS_DIR=/$SNAPS |
#!/data/data/com.termux/files/usr/bin/bash | |
# | |
# HOW TO INSTALL | |
# | |
# Run this command in Termux: | |
# | |
# curl https://gist.githubusercontent.com/simonesestito/89bb66e6e08b8662a40fc42b822090e6/raw/setup.sh | bash | |
# |
<?xml version="1.0" encoding="utf-8"?><!-- | |
~ Use Extended FAB on Android even if Material Components doesn't support it yet | |
~ See https://github.com/material-components/material-components-android/issues/79 | |
~ | |
~ Created by Simone Sestito | |
--> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> |
from secrets import randbits | |
class PrimeGenerator: | |
def __init__(self): | |
self.prevs = [] | |
def nextPrime(self): | |
if len(self.prevs) == 0: | |
self.prevs.append(2) | |
return 2 |