Skip to content

Instantly share code, notes, and snippets.

View mercer's full-sized avatar
🐘
Thinking hard

Emilian Losneanu mercer

🐘
Thinking hard
  • Bucharest, Romania
  • 18:03 (UTC +02:00)
View GitHub Profile
@mercer
mercer / HowToGetUserIdLiferay.java
Created April 8, 2011 13:09
How to get userId from Liferay
@ModelAttribute("userId")
public long getUserId(PortletRequest request) throws PortalException, SystemException, RepException {
final ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
return themeDisplay.getUserId();
}
@mercer
mercer / pucioasa.kml
Created May 14, 2011 18:46
Pucioasa kml example
<kml>
<Document>
<name>OpenStreetMap</name>
<description>Created from OSM data with Osmexport</description>
<!--
Copyright (c) OpenStreetMap Contributors
http://www.openstreetmap.org/
This work is licensed under the
Creative Commons Attribution-ShareAlike 2.0 License.
@mercer
mercer / pucioasa-simple.kml
Created May 14, 2011 19:12
Pucioasa simple
<kml>
<Document>
<name>OpenStreetMap</name>
<description>Created from OSM data with Osmexport</description>
<!--
Copyright (c) OpenStreetMap Contributors
http://www.openstreetmap.org/
This work is licensed under the
Creative Commons Attribution-ShareAlike 2.0 License.
@mercer
mercer / pucioasa-forests.kml
Created May 14, 2011 19:22
Pucioasa forests
<kml>
<Document>
<name>OpenStreetMap</name>
<description>Created from OSM data with Osmexport</description>
<!--
Copyright (c) OpenStreetMap Contributors
http://www.openstreetmap.org/
This work is licensed under the
Creative Commons Attribution-ShareAlike 2.0 License.
@mercer
mercer / about.md
Created August 10, 2011 05:15 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@mercer
mercer / gist:1216482
Created September 14, 2011 13:00
Artifacts hosted at Maven Central
http://repo1.maven.org/maven2/com/google/android/android/2.3.3/android-2.3.3.jar
http://repo1.maven.org/maven2/com/google/guava/guava/r09/guava-r09.jar
http://repo1.maven.org/maven2/com/google/gwt/gwt-servlet/2.4.0/gwt-servlet-2.4.0.jar
http://repo1.maven.org/maven2/com/google/inject/guice/3.0/guice-3.0.jar
http://repo1.maven.org/maven2/com/h2database/h2/1.3.160/h2-1.3.160.jar
http://repo1.maven.org/maven2/com/liferay/portal/portal-service/6.0.6/portal-service-6.0.6.jar
http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.4.1/xstream-1.4.1.jar
http://repo1.maven.org/maven2/com/vaadin/vaadin/6.6.6/vaadin-6.6.6.jar
http://repo1.maven.org/maven2/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar
http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
@mercer
mercer / gist:1218842
Created September 15, 2011 08:43
Hackaton
Should be something doable in 1-2 days.
Inspiration resources:
http://www.wired.com/gadgetlab/category/hacks-mods-and-diy/
http://nodeknockout.com/
http://www.instructables.com/
http://www.mysociety.org/projects/
http://en.wikipedia.org/wiki/Open_Design
Open source projects ussualy choose 4 space insead of tabs for code identation
http://wiki.apache.org/velocity/CodeStandards
http://wiki.alfresco.com/wiki/Coding_Standards
http://maven.apache.org/developers/conventions/code.html
https://cwiki.apache.org/S2WIKI/struts-2-coding-conventions.html
http://tomcat.apache.org/getinvolved.html
http://source.android.com/source/code-style.html
http://www.webkit.org/coding/coding-style.html
http://subversion.apache.org/docs/community-guide/conventions.html
@mercer
mercer / about.md
Last active August 29, 2015 14:08 — forked from jasonrudolph/about.md
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst curl
cinst git -params "/GitAndUnixToolsOnPath"
cinst virtualbox
cinst vagrant
cinst nodejs