This file contains hidden or 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
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); |
This file contains hidden or 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
public class Items { | |
private int id; | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} |
This file contains hidden or 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 | |
$back = $_SESSION['back']; | |
if (empty($back)) { | |
$back = "location.href='/list/user/'"; | |
} else { | |
$back = "location.href='".$back."'"; | |
} | |
?> | |
<table class="submenu"> | |
<tr> |
This file contains hidden or 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 | |
// Init | |
error_reporting(NULL); | |
ob_start(); | |
session_start(); | |
$TAB = 'USER'; | |
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); | |
// Check user |
This file contains hidden or 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
#!/bin/bash | |
# info: add system user | |
# options: USER PASSWORD EMAIL [PACKAGE] [FNAME] [LNAME] | |
# | |
# The function creates new user account. | |
#----------------------------------------------------------# | |
# Variable&Function # | |
#----------------------------------------------------------# |
This file contains hidden or 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
/** | |
* | |
* @author Rubas | |
*/ | |
public class CircularQueue { | |
private int[] queue; | |
private int head; |
This file contains hidden or 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
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; |
This file contains hidden or 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
# ************************************************************ | |
# 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 |
This file contains hidden or 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
# ************************************************************ | |
# 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 |
OlderNewer