Skip to content

Instantly share code, notes, and snippets.

View cazacugmihai's full-sized avatar

Mihai Cazacu cazacugmihai

View GitHub Profile
Menu
-------
1. Put
2. Get
3. Remove
0. Quit
Your option: Jan 27, 2014 8:51:35 AM com.hazelcast.cluster.ClusterService
FINEST: [172.28.124.252]:5701 [sessions] [3.2-SNAPSHOT] MasterConfirmation has been received from Member [172.28.124.242]:5701
1
key: l2
@GrabResolver(name='hazelcast', root='https://oss.sonatype.org/content/repositories/snapshots', m2Compatible=true)
@Grab('com.hazelcast:hazelcast:3.2-SNAPSHOT')
import com.hazelcast.config.Config
import com.hazelcast.config.NearCacheConfig
import com.hazelcast.core.Hazelcast
import com.hazelcast.core.HazelcastInstance
import java.util.concurrent.ConcurrentMap
import static com.hazelcast.config.PartitionGroupConfig.MemberGroupType.HOST_AWARE
@cazacugmihai
cazacugmihai / gist:3789226
Created September 26, 2012 17:07 — forked from Zaorish/gist:1993530
CSS: Image Replace
.g-imageReplace{
border:0;
font: 0/0 a;
text-shadow:none;
color:transparent;
background-color:transparent;
}
@cazacugmihai
cazacugmihai / performanceprofiling.js
Created September 26, 2012 17:03 — forked from bcherry/performanceprofiling.js
JavaScript: performance
var performance = (function () {
var my = {};
// Wrap a function body in this to return a copy that instruments itself
// If you want this to be useful, you should give your profiled function a name,
// otherwise it will be identified as "", which is less than useful.
my.profile = function (func) {
return function () {
var start = new Date().getTime(),
time,