Skip to content

Instantly share code, notes, and snippets.

Avatar

Mahesh Tiyyagura tmahesh

View GitHub Profile
View init.coffee
# 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
is there a memory impact?
View memusageimpact.java
Option 1:
@Component
public class RewriteQueryDictionary {
public RewriteQueryDictionary(){
MapDictionary<String> dictionary = new MapDictionary<String>();
initializeFileKeywordsDictionary(dictionary);
//more code here
}
@tmahesh
tmahesh / measurePageloadTimes.js
Created Feb 18, 2011
How fast is my site? integrate boomerang and google analytics
View measurePageloadTimes.js
<script type="text/javascript">
BOOMR.init({
beacon_url: "/boomerang.gif",
BW: {
enabled: false
}
});
BOOMR.subscribe('before_beacon', trackInAnalytics);
var pageType = "homepage"; // customize this