Skip to content

Instantly share code, notes, and snippets.

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
@Venugopal155
Venugopal155 / load-popup.php
Last active August 14, 2017 06:19
On Page load POPUP
<style>
/*** VG Popup Starts here *****/
#vg-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
<?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
@Venugopal155
Venugopal155 / custom_post_type_register.php
Created June 29, 2016 13:53
Custom post type register in wordpress
<?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'),
@Venugopal155
Venugopal155 / Remove_cookie.php
Created June 21, 2016 11:40
Remove Cookie while logout
@Venugopal155
Venugopal155 / html_share_buttons.html
Last active April 13, 2022 15:22
Pure HTML Share Buttons
<h3>Pure HTML Share Buttons</h3>
<!-- Social Button HTML -->
<!-- Twitter -->
<a href="http://twitter.com/share?url=<URL>&text=<TEXT>&via=<VIA>" target="_blank" class="share-btn twitter">
<i class="fa fa-twitter"></i>
</a>
@Venugopal155
Venugopal155 / checking_gravatar.php
Last active June 21, 2016 05:40
Checking gravatar is there or not in wordpress
<?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])) {
<?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').'>';