Skip to content

Instantly share code, notes, and snippets.

View Rubatharisan's full-sized avatar

Rubatharisan Thirumathyam Rubatharisan

View GitHub Profile
JsonParserDemo jsonParserDemo =
new JsonParserDemo("/Users/rubas/item.json", true);
try(JsonReader jsonReader = jsonParserDemo.getJsonReader()){
Gson myGson = new Gson();
JsonParser jsonParser = new JsonParser();
JsonArray userArray = jsonParser.parse(jsonReader).getAsJsonArray();
ArrayList<Object> Items = new ArrayList<>();
for ( JsonElement aUser : userArray ){
Items aItem = myGson.fromJson(aUser, Items.class);
public class Items {
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
<?php
$back = $_SESSION['back'];
if (empty($back)) {
$back = "location.href='/list/user/'";
} else {
$back = "location.href='".$back."'";
}
?>
<table class="submenu">
<tr>
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
$TAB = 'USER';
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Check user
#!/bin/bash
# info: add system user
# options: USER PASSWORD EMAIL [PACKAGE] [FNAME] [LNAME]
#
# The function creates new user account.
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
@Rubatharisan
Rubatharisan / WooCommerce can't see orders in menu
Created April 3, 2016 20:13
WooCommerce can't see orders in menu? Add following capabilities
manage_woocommerce
view_woocommerce_reports
edit_shop_orders
/**
*
* @author Rubas
*/
public class CircularQueue {
private int[] queue;
private int head;
package nLogN;
import java.util.Arrays;
public class Seven53_heapsort {
static int array[] = { 6, 2, 22, 77, 12, 8, 22, 123, 12, 12 };
static int left;
static int right;
static int highest;
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: localhost (MySQL 5.6.35)
# Database: thusi
# Generation Time: 2017-11-18 22:28:10 +0000
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: localhost (MySQL 5.6.35)
# Database: thusi
# Generation Time: 2017-11-19 11:42:56 +0000