Skip to content

Instantly share code, notes, and snippets.

Avatar

George K. root-talis

  • Russia
View GitHub Profile
@root-talis
root-talis / InheritanceTypeIdResolver.java
Created Sep 8, 2017
Java Jackson automatic TypeIdResolver based on inheritance
View InheritanceTypeIdResolver.java
/*
* Automatic inheritance type resolver for Jackson.
* @author root_talis<https://github.com/root-talis>
*
*
* Usage:
*
* @JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, include = JsonTypeInfo.As.PROPERTY, property = "discriminator")
* @JsonTypeIdResolver(InheritanceTypeIdResolver.class)
* class Animal { // can be abstract or interface
@root-talis
root-talis / php7_build_ubuntu.sh
Created Aug 21, 2017 — forked from m1st0/php7_build_ubuntu.sh
Compiling PHP 7 on Ubuntu 15.04 with Various Supported Modules
View php7_build_ubuntu.sh
#! /bin/bash
# PHP 7 Initial Compile #
# Author: Maulik Mistry
# Date: Aug 04, 2017
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
#
# License: BSD License 2.0
@root-talis
root-talis / index.html
Created Jan 9, 2017
Special relativity velocity calculator
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container-fluid" id="main">
<div class="page-header">
You can’t perform that action at this time.