Skip to content

Instantly share code, notes, and snippets.

View elishaukpong's full-sized avatar
🇳🇬
Learning something new somewhere!

Elisha Ukpong elishaukpong

🇳🇬
Learning something new somewhere!
View GitHub Profile
@elishaukpong
elishaukpong / sendy.conf
Created January 9, 2020 14:13 — forked from saaiful/sendy.conf
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen ip:port;
server_name domain.name;
root root_folder;
index index.php index.html index.htm;
location / {
location = / {
try_files $uri $uri/ /index.php?$query_string;
}
@elishaukpong
elishaukpong / sendy-server
Created January 9, 2020 14:13 — forked from refringe/sendy-server
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen 80;
listen [::]:80;
server_name domain.com;
autoindex off;
index index.php index.html;
root /srv/www/domain.com/public;
@elishaukpong
elishaukpong / getMenuHierarchically.md
Created May 19, 2019 13:32 — forked from vwasteels/getMenuHierarchically.md
Retrieve menu items hierarchically in Wordpress
/**
 * Get Menu Items From Location
 *
 * @param $location : location slug given as key in register_nav_menus
 */

function getMenuItemsFromLocation($location) {
	$theme_locations = get_nav_menu_locations();
--
-- Table structure for table `country_t`
--
CREATE TABLE IF NOT EXISTS `country_t` (
`country_id` int(5) NOT NULL AUTO_INCREMENT,
`iso2` char(2) DEFAULT NULL,
`short_name` varchar(80) NOT NULL DEFAULT '',
`long_name` varchar(80) NOT NULL DEFAULT '',
`iso3` char(3) DEFAULT NULL,
@elishaukpong
elishaukpong / state and lga script.js
Last active February 17, 2019 21:30
State and LGA
<select id="state_id"></select>
<select id="lga"></select>
stateList();
function stateList(){
$.ajax({
type:'GET',
url:"http://locationsng-api.herokuapp.com/api/v1/states",
success:function(data) {