Skip to content

Instantly share code, notes, and snippets.

View fdciabdul's full-sized avatar
🌴
On vacation

taqin fdciabdul

🌴
On vacation
View GitHub Profile
@fdciabdul
fdciabdul / autoabsen.js
Created October 3, 2020 13:41
wkkwkwkw iseng aja
var express = require("express");
var app = express();
const cheerio = require('cheerio');
var axios = require("axios");
const request = require("request")
app.get("/", (req, res, next) => {
request.get("https://pastebin.com/xxxx/raw", function(error, response, data) {
var b = JSON.parse(data);
var random = b[Math.floor(Math.random() * b.length)];
@im4aLL
im4aLL / php-event-listener-example.php
Last active August 18, 2024 18:18
PHP event listener simple example
<?php
// Used in https://github.com/im4aLL/roolith-event
class Event {
private static $events = [];
public static function listen($name, $callback) {
self::$events[$name][] = $callback;
}