This file contains 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
|----------------------------------------------------------------------------------------|--------------------| | |
| Object Header (64 bits) | State | | |
|-------------------------------------------------------|--------------------------------|--------------------| | |
| Mark Word (32 bits) | Klass Word (32 bits) | | | |
|-------------------------------------------------------|--------------------------------|--------------------| | |
| identity_hashcode:25 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Normal | | |
|-------------------------------------------------------|--------------------------------|--------------------| | |
| thread:23 | epoch:2 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Biased | | |
|-------------------------------------------------------|--------------------------------|--------------------| | |
| |
This file contains 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
plugins { | |
id "io.spring.dependency-management" version "1.0.0.RC2" | |
} | |
project.group = com.company | |
project.version = 1.0.0 | |
project.ext.name = company-project | |
dependencyManagement { | |
imports { |
This file contains 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
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { | |
return _.transform(object, function(result, value, key) { | |
if (!_.isEqual(value, base[key])) { |
This file contains 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
import java.util.Set; | |
import org.springframework.data.redis.connection.RedisConnectionFactory; | |
import org.springframework.data.redis.core.BoundHashOperations; | |
import org.springframework.data.redis.core.BoundSetOperations; | |
import org.springframework.data.redis.core.RedisOperations; | |
import org.springframework.data.redis.core.RedisTemplate; | |
import org.springframework.data.redis.core.StringRedisTemplate; | |
import org.springframework.data.redis.serializer.StringRedisSerializer; | |
import org.springframework.messaging.simp.user.UserSessionRegistry; |
This file contains 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
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
This file contains 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
# MySQL Server Instance Configuration File | |
# ---------------------------------------------------------------------- | |
# Generated by the MySQL Server Instance Configuration Wizard | |
# | |
# | |
# Installation Instructions | |
# ---------------------------------------------------------------------- | |
# | |
# On Linux you can copy this file to /etc/my.cnf to set global options, | |
# mysql-data-dir/my.cnf to set server-specific options |
This file contains 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
publishing { | |
repositories { | |
maven { | |
credentials { | |
username "${artifactory_user}" | |
password "${artifactory_password}" | |
} | |
if ( project.version.endsWith('-SNAPSHOT') ) { | |
url "file:///var/tmp/myrepo/snapshot/" | |
} else { |
This file contains 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
import React from 'react' | |
import Loadable from './loadable' | |
type ImportedComponent = Promise<null|ElementType> | |
type ComponentMapping = {[componentName: string]: ImportedComponent} | |
type NextDynamicOptions = { | |
loader?: ComponentMapping | () => ImportedComponent, | |
loading: ElementType, |
This file contains 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
# from http://www.fromdual.com/sites/default/files/my.cnf | |
# FromDual configuration file template for MySQL, Galera Cluster, MariaDB and Percona Server | |
# Location: /etc/my.cnf or /etc/mysql/my.cnf | |
# This template is intended to work with MySQL 5.6 and newer and MariaDB 10.0 and newer | |
# Get most recent updated from here: | |
# http://www.fromdual.com/mysql-configuration-file-sample | |
# | |
[client] |