Skip to content

Instantly share code, notes, and snippets.

Soumya Mondal tysonchamp

Block or report user

Report or block tysonchamp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .bashrc
#android cordova code
export ANDROID_HOME=/home/gbyte/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# PHP CI Session Clean up Command
find /home/*/tmp -type f -name 'ci_session*' -delete
find /var/log/ -type f -regex '.*\.[0-9]+\.gz$' -delete
tysonchamp / gototop.html
Created Sep 8, 2018
go to top jquery button
View gototop.html
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
View htaccess cache
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
View gist:a13d62a75bcc65645d370604cc0f4720
<title>jQuery add / remove textbox example</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<style type="text/css">
View contact_form_7_country.php
[select country2 "Aruba" "Afghanistan" "Angola" "Albania" "Andorra" "United Arab Emirates" "Argentina" "Armenia" "American Samoa" "Antigua and Barbuda" "Australia" "Austria" "Azerbaijan" "Burundi" "Belgium" "Benin" "Burkina Faso" "Bangladesh" "Bulgaria" "Bahrain" "Bahamas" "Bosnia and Herzegovina" "Belarus" "Belize" "Bermuda" "Bolivia, Plurinational State of" "Brazil" "Barbados" "Brunei Darussalam" "Bhutan" "Botswana" "Central African Republic" "Canada" "Switzerland" "Chile" "China" "Côte d’Ivoire" "Cameroon" "Congo, the Democratic Republic of the" "Congo" "Cook Islands" "Colombia" "Comoros" "Cape Verde" "Costa Rica" "Cuba" "Cayman Islands" "Cyprus" "Czech Republic" "Germany" "Djibouti" "Dominica" "Denmark" "Dominican Republic" "Algeria" "Ecuador" "Egypt" "Eritrea" "Spain" "Estonia" "Ethiopia" "Finland" "Fiji" "France" "Micronesia, Federated States of" "Gabon" "United Kingdom" "Georgia" "Ghana" "Guinea" "Gambia" "Guinea-Bissau" "Equatorial Guinea" "Greece" "Grenada" "Guatemala" "Guam" "Guyana" "Hong Kong" "Ho
View featured image fetching
View fetch comments via function wp
//Gather comments for a specific page/post
$comments = get_comments(array(
'post_id' => $post->ID,
'status' => 'approve' //Change this to the type of comments to be displayed
<?php foreach( $comments as $comment ){ ?>
<div class="guest-review table-wrapper">
<div class="col-xs-3 col-md-2 author table-cell">
View gist:a7097284b3278a23e2a939c1ca08af2a
var lightBoxData = {};
JSONData.forEach(function (item) { // loop through each item in the data set
lightBoxData[] = item; // make each item referencable by the ID data field
var route = {};
tysonchamp / widgets.php
Created Jun 23, 2016
Wordpress custom widgets sample code
View widgets.php
<?php // Creating the widget
* Follow Us On Social Network Widgets
class ub_social extends WP_Widget {
function __construct() {
You can’t perform that action at this time.