This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ionic Android SDK and simulator: | |
------------------------------------- | |
1. install openjdk | |
`sudo apt-get install openjdk-7-jdk` | |
2. install `android sdk` | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/*** VG Popup Starts here *****/ | |
#vg-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: Location Template | |
* | |
* | |
* Description: In this page displays the location page information , most dynamic data | |
* coming from dashboard | |
* | |
* @author : Venugopal | |
* @category: Location page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function amas_register() { | |
$labels = array( | |
'name' => _x('AMAs', 'post type general name'), | |
'singular_name' => _x('AMAs', 'post type singular name'), | |
'add_new' => _x('Add AMA', 'AMAs'), | |
'add_new_item' => __('Add New AMA'), | |
'edit_item' => __('Edit AMA'), | |
'new_item' => __('New AMA'), | |
'view_item' => __('View AMA'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Function for check gravatar */ | |
function check_avatar($user_email_id) { | |
$hash = md5(strtolower(trim($user_email_id))); | |
$uri = 'http://www.gravatar.com/avatar/' . $hash . '?d=404'; | |
$headers = @get_headers($uri); | |
if (!preg_match("|200|", $headers[0])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html = file_get_contents('http://venugopalphp.wordrpess.com'); | |
$dom = new domDocument; | |
@$dom->loadHTML($html); | |
$dom->preserveWhiteSpace = false; | |
$images = $dom->getElementsByTagName('img'); | |
$i=0; | |
foreach ($images as $image) { | |
echo '<img src='.$image->getAttribute('src').'>'; |