You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.
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 java.util.ArrayList; | |
import java.util.Scanner; | |
import java.util.List; | |
public class StrongNumber { | |
public static int factorial(int n) { | |
if (n < 1) return 1; | |
return n * factorial(n - 1); | |
} | |
public static void main(String args[]) { |
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
# USEFUL TWRP RECOVERY FLAGS | |
# by ZawZaw @XDA-Developers | |
# Thanks to : @xda-developers for helps | |
# Add EXT4 support | |
TARGET_USERIMAGES_USE_EXT4 := true | |
# Disable/enable SELinux. Only suggested when you want to enable SELinux support | |
TWHAVE_SELINUX := 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
from flask import Flask, jsonify, request | |
app = Flask(__name__) | |
@app.route('/webhook', methods=['POST']) | |
def ReturnJSON(): | |
if request.method == 'POST': | |
data = {"event": "Message Receive", | |
"messageID": "wamid.HBgMOTE4MTQ0MzU2NzY3FQIAEhggN0MxQUZCNDg2OTc1ODBBMTIxREQ0MDIwMzkyNTRDQ0IA", |
Check your path, echo $PATH. WSL2 normally imports Windows path there. To fix this create file /etc/wsl.conf
in WSL2:
[interop]
appendWindowsPath = false
Then restart WSL2 with wsl --shutdown
. Then check your path is shorter now and doesn't include any Windows dependencies:
echo $PATH
Using JS, convert:
[ "OR", ["<", "a", "b"], [ "AND", ["==", "c", "d"], ["!=", "e", "f"] ] ]
// To:
a < b OR (c == d AND e != f)
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
/* | |
Author: chankruze ([email protected]) | |
Created: Wed Mar 09 2022 10:06:36 GMT+0530 (India Standard Time) | |
Copyright (c) geekofia 2022 and beyond | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.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
const rgb2hex = (...args) => { | |
const hexColour = (c) => { | |
if (c < 256) return Math.abs(c).toString(16).padStart(2, "0"); | |
return 0; | |
} | |
let hex = "#"; | |
args.forEach(val => hex += hexColour(val)) | |
return hex | |
} |
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
# urlretrieve.py - implement urllib.urlretrieve(url, filename) with requests | |
import contextlib | |
import urllib | |
import requests | |
def urlretrieve(url, filename): | |
with contextlib.closing(requests.get(url, stream=True)) as r: | |
r.raise_for_status() |
NewerOlder