Skip to content

Instantly share code, notes, and snippets.

View yokesharun's full-sized avatar
😬
Happy

Arun Yokesh yokesharun

😬
Happy
View GitHub Profile
@yokesharun
yokesharun / android_screen_size_list.md
Last active March 17, 2016 11:10
Android Icons and splash screen Sets Size - PhoneGap

Application icon size list

36x36 -- ldpi

48x48 -- mdpi

72x72 -- hdpi

96x96 -- xhdpi

@yokesharun
yokesharun / LampSetup.md
Created February 19, 2016 07:57 — forked from anistark/LampSetup.md
LAMP Setup

Install Apache

sudo apt-get update
sudo apt-get install apache2

Install Mysql

@yokesharun
yokesharun / sublimeText.md
Created February 19, 2016 07:57 — forked from anistark/sublimeText.md
Setup Sublime Text

Install via the Package Manager(apt-get):

Simply add to your packages:

For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
@yokesharun
yokesharun / laravel-package
Created February 19, 2016 07:53 — forked from anistark/laravel-package
Packaging of Laravel website
So, you're done making the website or web-app and now you would wanna distribute it to your clients. Awesome. Let's go ahead and create a package for the same.
There are two types of packaging that can be done in laravel:
1. VPS
2. Shared
VPS
VPS version is for their own use and local testing. So, you would wanna keep it as close to your local system settings as possible.
1. Delete all the files from app/storage/ in the following folders:
cache
@yokesharun
yokesharun / domain_compare.php
Created February 9, 2016 07:37
PHP compare the domain with two urls and match it
<?php
$url1 = parse_url("http://www.google.co.uk");
$url2 = parse_url("http://www.google.co.uk/pages.html");
if ($url1['host'] == $url2['host']){
//matches
}else{
// not matches
}
@yokesharun
yokesharun / return_path_url.php
Created February 9, 2016 06:32
PHP Get path | domain | Queries of the particular url
<?php
$url = '//www.example.com/path?googleguy=googley';
// Prior to 5.4.7 this would show the path as "//www.example.com/path"
var_dump(parse_url($url));
//output will be like
// array(3) {
@yokesharun
yokesharun / get_cookie_value.js
Created February 8, 2016 13:43
Javascript Get a cookie value by name
@yokesharun
yokesharun / delete_cookie.js
Created February 8, 2016 13:40
Javascript delete cookie
@yokesharun
yokesharun / set_cookie.js
Created February 8, 2016 13:40
Javascript Set | create New cookie
@yokesharun
yokesharun / jquery_details_detect.js
Created February 8, 2016 13:37
Jquery Detect Browser name | browser version | os name | platform | os version | mobile | bit
(function (window) {
var browser,
version,
mobile,
os,
osversion,
bit,
ua = window.navigator.userAgent,
platform = window.navigator.platform;