Skip to content

Instantly share code, notes, and snippets.

View rrikesh's full-sized avatar
🏴‍☠️

Rikesh Ramlochund rrikesh

🏴‍☠️
View GitHub Profile
@rrikesh
rrikesh / country-codes.php
Created July 11, 2017 12:15
PHP version of countries with country code, adapted from https://gist.github.com/GaryJones/4353a9a78a3495056523
<?php
$countries = [
'Afghanistan' => '93',
'Albania' => '355',
'Algeria' => '213',
'American Samoa' => '684',
'Andorra' => '376',
'Angola' => '244',
'Antigua and Barbuda' => '1-268',
'Argentina' => '54',
@rrikesh
rrikesh / autocomplete-on
Created January 22, 2015 07:30
Turn on the autocomplete tag in WordPress post title. http://wordpress.stackexchange.com/q/175585/17305
<?php
/**
* Plugin Name: Autocomplete Title
* Description: Sets the autocomplete attribute to true on WordPress post titles
* Plugin URI: http://wordpress.stackexchange.com/q/175585/17305
*/
namespace WPSE\AutocompleteTitle;
/**
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
@rrikesh
rrikesh / plugin.php
Created December 28, 2013 15:05 — forked from joncave/plugin.php
<?php
/* Plugin Name: Damn Vulnerable WordPress Plugin
* Description: Intentionally vulnerable plugin for plugin author education
* Version: 0.1
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/
* Author: Jon Cave
* Author URI: http://joncave.co.uk
* License: GPLv2+
*
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE