As configured in my dotfiles.
start new:
tmux
start new with session name:
/*! | |
* Dynamically changing favicons with JavaScript | |
* Works in all A-grade browsers except Safari and Internet Explorer | |
* Demo: http://mathiasbynens.be/demo/dynamic-favicons | |
*/ | |
// HTML5™, baby! http://mathiasbynens.be/notes/document-head | |
document.head || (document.head = document.getElementsByTagName('head')[0]); | |
function changeFavicon(src) { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
/******************************************************************************* | |
* Copyright (c) 2012 Rüdiger Herrmann | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Rüdiger Herrmann - initial API and implementation | |
* Frank Appel - code review, idea for assertEquals( T, Object, Object ) |
public class EZMap<T> { | |
public static void main(String[] args) { | |
Map<String,Object> m = hashMap( | |
bob -> 5, | |
TheGimp -> 8, | |
incredibleKoolAid -> "James Taylor", | |
heyArnold -> new Date() | |
); | |
System.out.println(m); | |
} |
MIT License | |
Copyright (c) 2018 Jason Sperske | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents
Replace /usr/local/etc/nginx/nginx.conf
with the nginx.conf
in this gist. I'm using port 5000 for my current project. Obviously, change server_name
as well, and probably the name of its access log.
# JDK 7 | |
-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true | |
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true | |
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold=999999 | |
# JDK 8 | |
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true | |
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true | |
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold=999999 |
abstract class Entity<T : Serializable> { | |
abstract var id: T | |
override fun equals(other: Any?): Boolean = when { | |
this === other -> true | |
other == null -> false | |
Hibernate.getClass(other) != Hibernate.getClass(this) -> false | |
else -> Objects.equals(id, (other as Entity<*>).id) | |
} |