Skip to content

Instantly share code, notes, and snippets.

@NabilNoN
NabilNoN / nhash.js
Created June 10, 2020 10:10
nHash Encoder Decoder For Strings in Javascript
/*
* Copyright (c) 2020. FacceApps
*/
let nHash = {
_level: 1,
type: "#",
_key: 1,
_withHex: false,
_enc: null,
_dec: null,
@Pen-y-Fan
Pen-y-Fan / Info for PHPStorm.md
Last active July 21, 2024 12:12
PHPStorm Tips, Tricks and setup

PHPStorm

PhpStorm Tips, ticks and standard setup

  1. Tips and Tracks for PHPStorm (PHPStorm Tips and Tricks.md)
  2. Standard setup for PHP projects (Standard.md)
@NabilNoN
NabilNoN / MySQL.php
Last active May 24, 2022 10:48 — forked from shak18/MySQL.php
Simple PHP MYSQLi Class
<?php
class Mysql
{
private $link = null;
private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);
@RomelSan
RomelSan / RouterOS 6 Syntax.xml
Last active January 27, 2024 16:00
Mikrotik RouterOS Syntax for Notepad++
<NotepadPlus>
<UserLang name="RouterOS" ext="rsc" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@shak18
shak18 / MySQL.php
Last active September 16, 2023 14:42
Simple PHP MYSQLi Class
<?php
class MySQL {
private $link = null;
private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);
private $connection_info = array();
@pratikbutani
pratikbutani / send_firebase_notification.php
Created October 24, 2018 11:50
Send Firebase Notification to more than 1000 users at a time from PHP
<?php
/**
* Created By : Pratik Butani
* Created Date : 24/10/2018
*/
// Database Connection
include "conn.php";
// Get Records from Table
$sql = "SELECT * from fcm";
@sbalay
sbalay / index.html
Created June 19, 2017 05:10
Videojs hls example
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>videojs-contrib-hls embed</title>
<!--
Uses the latest versions of video.js and videojs-contrib-hls.
@maephisto
maephisto / Javascript ISO country code to country name conversion
Last active November 3, 2023 21:05
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
@andyj
andyj / html_for_international_calling coes.htm
Created October 22, 2013 21:57
HTML <select> international calling codes for each country
<!-- country codes (ISO 3166) and Dial codes. -->
<select name="countryCode" id="">
<option data-countryCode="GB" value="44" Selected>UK (+44)</option>
<option data-countryCode="US" value="1">USA (+1)</option>
<optgroup label="Other countries">
<option data-countryCode="DZ" value="213">Algeria (+213)</option>
<option data-countryCode="AD" value="376">Andorra (+376)</option>
<option data-countryCode="AO" value="244">Angola (+244)</option>
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option>
<option data-countryCode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option>
@mloberg
mloberg / mysql.php
Created August 30, 2011 18:00
Simple PHP MySQL Class
<?php
class Mysql{
static private $link = null;
static private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);