Skip to content

Instantly share code, notes, and snippets.

View ArRolin's full-sized avatar
🌍
Remote Dev

G M Ashiqur Rahaman ArRolin

🌍
Remote Dev
View GitHub Profile
<?php
$countries = array();
$countries[] = array("iso_code"=>"AF","country_name"=>"Afghanistan","country_code"=>"93");
$countries[] = array("iso_code"=>"AL","country_name"=>"Albania","country_code"=>"355");
$countries[] = array("iso_code"=>"DZ","country_name"=>"Algeria","country_code"=>"213");
$countries[] = array("iso_code"=>"AS","country_name"=>"American Samoa","country_code"=>"1");
$countries[] = array("iso_code"=>"AD","country_name"=>"Andorra","country_code"=>"376");
$countries[] = array("iso_code"=>"AO","country_name"=>"Angola","country_code"=>"244");
$countries[] = array("iso_code"=>"AI","country_name"=>"Anguilla","country_code"=>"1");
$countries[] = array("iso_code"=>"AG","country_name"=>"Antigua","country_code"=>"1");
@ArRolin
ArRolin / gist:76d8f896ffe77f329d87
Last active September 20, 2015 08:19 — forked from seanmcn/gist:62a021a765ad4f8e593b
The Perfect Web Server - Nginx, Ajenti, Ubuntu
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
@ArRolin
ArRolin / fixed-nav.js
Created December 18, 2015 08:41 — forked from TanvirAmi/fixed-nav.js
Navigation will be fixed at the top position at the time of scrolling. You have to change (#custom_nav_id) with your custom nav/div id.
jQuery(function($) {
// grab the initial top offset of the navigation
var sticky_navigation_offset_top = $('#custom_nav_id').offset().top;
// our function that decides weather the navigation bar should have "fixed" css position or not.
var sticky_navigation = function(){
var scroll_top = $(window).scrollTop(); // our current vertical position from the top
// if we've scrolled more than the navigation, change its position to fixed to stick to top, otherwise change it back to relative
@ArRolin
ArRolin / functions.php
Created February 6, 2017 16:56 — forked from EmranAhmed/functions.php
Hook Info. Get Action hook info. What functions are hooked to an action / filter in WordPress? How can I see all the actions attached to an "add_action" hook?
<?php
if ( ! function_exists( 'hippo_plugin_hook_info' ) ):
function hippo_plugin_hook_info( $hook_name ) {
global $wp_filter;
$docs = array();
$template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n";
echo '<pre>';
@ArRolin
ArRolin / resources-web-developers-designers.md
Created November 1, 2017 06:19 — forked from kevinwhoffman/resources-web-developers-designers.md
Resources for Web Developers and Designers

Resources for Web Developers and Designers

This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!

Course Providers

@ArRolin
ArRolin / mail css
Created January 18, 2018 09:13 — forked from shaikotahmed19/mail form.html
mail ajax
/*mail*/
.cf-msg {
padding: 10px;
text-align: center;
margin-bottom: 30px;
}
.cf-msg p {
margin-bottom: 0;
@ArRolin
ArRolin / custom-domain-localhost-xampp
Created February 10, 2018 14:45 — forked from oozman/custom-domain-localhost-xampp
How to add a custom domain name on your localhost using XAMPP. Codes are based on Windows, but Step 2 onwards are pretty much applicable on other operating system.
Step 1:
Go to: C:\Windows\System32\Drivers\etc\hosts
And add this to the bottom of the file:
=============
127.0.0.1 your.domain.com
=============
Step 2:
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf
@ArRolin
ArRolin / acf_href.php
Created August 8, 2018 02:11 — forked from dnavarrojr/acf_href.php
Create an HREF link with a shortcode using ACF fields
<?php
/*****************************************************************************************************************************************************
*
* Usage: [acf_href href_before="mailto:" href="acf:field_name" text="acf:field_name"]
*
* acf:fieldname will retrieve the value of the specified "fieldname" and use that.
* get:url_variable will grab a variable from the URL and use that.
*
* [acf_href href="acf:my_link" text="Link to web site"]

Keybase proof

I hereby claim:

  • I am arrolin on github.
  • I am arrolin (https://keybase.io/arrolin) on keybase.
  • I have a public key ASDHvwJQncRkrvzHABKGKoVTxGvah-UL5fBVfeGSl0yBEwo

To claim this, I am signing this object: