Skip to content

Instantly share code, notes, and snippets.

View belajarqywok's full-sized avatar
🎯
Focusing

al-fariqy raihan ( qywok ) belajarqywok

🎯
Focusing
View GitHub Profile
[ Epoch: 1 ]
[ ---- Step 1 ---- ]
Y: 0
F(Y): -1
w1: 0.1 -> delta(+0.00 -> 0.1): +0.10
w1: 0.1 -> delta(+0.00 -> 0.1): +0.10
b: 0.1 -> delta(+0.00 -> 0.1): +0.10
[ ---- Step 2 ---- ]
Y: 0.1
F(Y): 1
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char* decrypt(const char* cipher, int shift) {
int len = strlen(cipher);
char* result = (char*) malloc((len + 1) * sizeof(char));
for (int i = 0; i < len; i++) {
char c = cipher[i];
if (c >= 'A' && c <= 'Z')
result[i] = (c - 'A' + shift) % 26 + 'A';
#!/bin/bash
sudo apt update
sudo apt install -y docker.io haproxy
if [ ! -e "index.php" ]; then
sudo cat << EOF >> index.php
<?php
\$ip = "ip-here";
// display it back
echo "<h1>HTTP Load Balancing Lab</h1>";
@belajarqywok
belajarqywok / discord_payload.json
Last active December 11, 2023 06:25
Payload For Discord Webhook
{
"username": "Mamank Garox",
"avatar_url": "https://qph.cf2.quoracdn.net/main-qimg-c2108cee7b7917f80d8f6182a7a0a8ee-lq",
"embeds": [
{
"title": ":zap: [ INFO ] Backend Update...",
"color": 65352,
"description": "- **Message**: MSG\n- **Time**: DATE\n- **URL**: ENDPOINT\n- **Docs**: [Swagger](ENDPOINT/docs)\n\n@Mobile Engineer "
}
]
def iteration(n, x, H) :
fn = []
print("Iterasi :")
for i in range(n + 1) :
fx = -(x ** 3) - (x ** 2) + (5 * x) + 3
print(f" f({x}) = -({x})^3 - ({x})^2 + 5({x}) + 3 = {fx}")
@belajarqywok
belajarqywok / bubble_sort.pas
Last active July 5, 2023 18:32
Bantu2 tugas -nya Si Anita (Anak Unindra) + me- refresh kembali mata kuliah algoritma.
program TugasAnita_BubbleSort;
uses sysutils;
const
ASCII_START = 65;
type
ArrayModel = array of integer;
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Servo.h>
const char* ssid = "ssid";
const char* password = "password";
const char* mqtt_server = "mqtt_server";
WiFiClient espClient;
PubSubClient client(espClient);
#!/bin/bash
wrong_creds() {
clear; echo -e "[ \033[31mWRONG USERNAME or PASSWORD !!!.\033[m ]";
sleep 3; clear;
}
termux_security(){
#!/bin/env python3
# solusi kemageran tukang input data. Aowkwkwkwkwkkwk......
import os
import sys
import pandas as pd
class autonik () :