Skip to content

Instantly share code, notes, and snippets.

View metao1's full-sized avatar
🕶️
Code Mode

Mehrdad Karami metao1

🕶️
Code Mode
View GitHub Profile
{
"copyright": "Copyright INRIX Inc.",
"versionNumber": "5.2",
"createdDate": "2018-08-18T18:21:13Z",
"responseId": "d268dd86-1beb-481e-8b5a-cde30e90b311",
"result": [
{
"structured_rates": [],
"currencyIso": "EUR",
"peps": [
{"location_models":[{"title":"john","latitude":45.0886846,"longitude":7.6480669},{"title":"Mehrdad","latitude":45.0886846,"longitude":7.6480669},{"title":"Anthonio","latitude":45.1852194,"longitude":7.21505912},{"title":"karmez","latitude":45.0886846,"longitude":7.6480669}
,{"title":"Luigi","latitude":45.0886846,"longitude":7.6480669},{"title":"Emmanuelle","latitude":45.0828366,"longitude":7.1252194},{"title":"Rozita","latitude":45.0852194,"longitude":7.6505912},{"title":"Mary","latitude":45.6505912,"longitude":7.6646322}]}
This file has been truncated, but you can view the full file.
{
"timetable": {
"arrivals": [
{
"through_the_stations": "Milan (Lampugnano) → Lugano → Bellinzona → Splügen → Chur → Dornbirn → Bregenz → Lindau → Munich central bus station",
"datetime": {
"timestamp": 1517416500,
"tz": "GMT+01:00"
},
"line_direction": "Route 076 direction Munich central bus station",
{
"result": [
{
"advertise": {
"id": 0,
"album": {
"id": 0,
"thumbnails": [
{
"id": "2",
{
"placemarks": [
{
"address": "Lesserstraße 170, 22049 Hamburg",
"coordinates": [
10.07526,
53.59301,
0
],
"engineType": "CE",
@metao1
metao1 / java_generic.java
Created September 14, 2016 20:54
Using Generic In Java
public class GenericMethodTest
{
// generic method printArray
public static < E > void printArray( E[] inputArray )
{
// Display array elements
for ( E element : inputArray ){
System.out.printf( "%s ", element );
}
System.out.println();
@metao1
metao1 / java_polymorphism.java
Created September 13, 2016 04:47
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Any Java object that can pass more than one IS-A test is considered to be polymorphic. In Java, all Java objects are polymorphic since any object will pass the I…
public interface Vegetarian{}
public class Animal{}
public class Deer extends Animal implements Vegetarian{}
//When we apply the reference variable facts to a Deer object reference, the following declarations are legal
Deer d = new Deer();
Animal a = d;
Vegetarian v = d;
Object o = d;
@metao1
metao1 / java_multi_threading.java
Created September 13, 2016 04:43
A sample example for Java Multi-Threading
public class ThreadDemo extends Thread {
private Thread t;
private String threadName;
ThreadDemo(String name) {
threadName = name;
System.out.println("Creating " + threadName);
}
public void run() {
System.out.println("Running " + threadName);
@metao1
metao1 / index.html
Created March 31, 2016 14:17
Verys Simple Angularjs Application
<!DOCTYPE html>
<html ng-app>
<head>
<title>Hello World, AngularJS - ViralPatel.net</title>
<script type="text/javascript"
src="../bower_components/angular/angular.min.js"></script>
</head>
<body>
Write some text in textbox:
<input type="text" ng-model="sometext" />
@metao1
metao1 / index.html
Created March 31, 2016 14:17
Verys Simple Angularjs Application
<!DOCTYPE html>
<html ng-app>
<head>
<title>Hello World, AngularJS - ViralPatel.net</title>
<script type="text/javascript"
src="../bower_components/angular/angular.min.js"></script>
</head>
<body>
Write some text in textbox:
<input type="text" ng-model="sometext" />