Skip to content

Instantly share code, notes, and snippets.

@Cloud-Dark
Cloud-Dark / index.html
Created December 29, 2023 07:01
simple ajax html javascript
<div id="data-table">
<p id="loading-message">Loading...</p>
<p id="data-count"></p>
<table>
<thead>
<tr>
<th>Title</th>
<th>Description</th>
<th>Link</th>
<th>Category</th>
@Cloud-Dark
Cloud-Dark / forms-ui-responsive.markdown
Created September 28, 2023 09:49
FORMS UI - RESPONSIVE

FORMS UI - RESPONSIVE

Using some .css and font awesome

Please Get your Own Copy!

please download the files and create it on your host

@Cloud-Dark
Cloud-Dark / linkedin-unfollow-everyone.js
Created November 16, 2022 01:33 — forked from brunolemos/linkedin-unfollow-everyone.js
Unfollow everyone on Linkedin
(() => {
let count = 0;
function getAllButtons() {
return document.querySelectorAll('button.is-following') || [];
}
async function unfollowAll() {
const buttons = getAllButtons();
@Cloud-Dark
Cloud-Dark / array_contains.php
Created September 20, 2022 03:27 — forked from dellow/array_contains.php
Check if string contains word from array.
/**
* array_contains
* Check if string contains word from array.
*
* @since 1.0.0
* @version 1.0.0
**/
function array_contains($str, array $arr){
foreach($arr as $a){
if(stripos($str, $a) !== false) return true;
@Cloud-Dark
Cloud-Dark / bearer-token.php
Created June 23, 2022 01:39 — forked from wildiney/bearer-token.php
PHP - How to get and set Bearer Token
<?php
/**
* Get hearder Authorization
* */
function getAuthorizationHeader(){
$headers = null;
if (isset($_SERVER['Authorization'])) {
$headers = trim($_SERVER["Authorization"]);
}
else if (isset($_SERVER['HTTP_AUTHORIZATION'])) { //Nginx or fast CGI
@Cloud-Dark
Cloud-Dark / spintax.php
Created April 5, 2022 07:15 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
*
* @author Jason Davis - https://www.codedevelopr.com/
*
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
*
* Updated with suggested performance improvement by @PhiSYS.