Skip to content

Instantly share code, notes, and snippets.

View tmahesh's full-sized avatar

Mahesh Tiyyagura tmahesh

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@tmahesh
tmahesh / memusageimpact.java
Created May 18, 2012 02:35
is there a memory impact?
Option 1:
@Component
public class RewriteQueryDictionary {
public RewriteQueryDictionary(){
MapDictionary<String> dictionary = new MapDictionary<String>();
initializeFileKeywordsDictionary(dictionary);
//more code here
}
@tmahesh
tmahesh / measurePageloadTimes.js
Created February 18, 2011 00:56
How fast is my site? integrate boomerang and google analytics
<script type="text/javascript">
BOOMR.init({
beacon_url: "/boomerang.gif",
BW: {
enabled: false
}
});
BOOMR.subscribe('before_beacon', trackInAnalytics);
var pageType = "homepage"; // customize this