Skip to content

Instantly share code, notes, and snippets.

View abhiesa's full-sized avatar

Abhishek Prashant Pandey abhiesa

View GitHub Profile
@abhiesa
abhiesa / server.compiler
Created May 15, 2012 18:18
server compiler
The -server compiler
The -XX:+UseParallelGC parallel (throughput) garbage collector
The -Xms initial heap size is 1/64th of the machine's physical memory
The -Xmx maximum heap size is 1/4th of the machine's physical memory (up to 1 GB max).
The -XX:+UseParallelGC parallel (throughput) garbage collector, or
The -XX:+UseConcMarkSweepGC concurrent (low pause time) garbage collector (also known as CMS)
The -XX:+UseSerialGC serial garbage collector (for smaller applications and systems)
4.2.1 Tuning Example 1: Tuning for Throughput
@abhiesa
abhiesa / AlbertEinstein.txt
Created May 23, 2012 15:37
AlbertEinstein.txt
"I don't know, I don't care, and it doesn't make any difference!"
+Albert Einstein
https://plus.google.com/109229333624640995186/posts/9jwQtaaqUMZ
@abhiesa
abhiesa / style.css
Created August 7, 2012 15:08
test gist
/* =============================================================================
HTML5 Boilerplate CSS: h5bp.com/css
========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.

From Require.js - Why AMD:

The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"

I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.


Ubuntu 12.10 setup (rbenv/rvm, janus, postgres)

Basic pre-requisites

  • Some utilities:
sudo apt-get install vim tmux git
  • Copy/paste from the command line:
@abhiesa
abhiesa / sts.ini
Created September 25, 2013 08:59
my sts.ini
-vm
C:/Program Files (x86)/Java/jdk1.7.0_25/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
@abhiesa
abhiesa / pom.xml
Created March 23, 2014 23:10
Activiti, Spring Data Jpa, Vaadin Integration POM
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.abhiea.hcl.ge</groupId>
<artifactId>gem</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@abhiesa
abhiesa / gist:63b3dd8b9aed5f54914d
Last active April 10, 2018 18:05
Setup an Existing Octopress Repository After Git Clone
Basically, you need to create and link the deploy directory to master branch.
First, we clone the repo and switch to the correct branch:
1) git clone https://github.com/username/username.github.io.git
2) git checkout source
Then we need to setup the deploy directory.
1) mkdir _deploy
2) cd _deploy
3) git init
@abhiesa
abhiesa / gist:2c6e0d02a4607b79354c
Created July 27, 2014 10:11
Octopress Cheet Sheet
# Pushing Changes to the Blog Source
cd octopress
git add .
git commit -m 'modded blog source'
git push origin source
# create a new post
rake new_post["title"]
#Images
@abhiesa
abhiesa / Quotes
Last active August 29, 2015 14:07
Quotes
> I do not enlighten those who are not eager to learn,
> nor arouse those who are not anxious to give an explanation themselves.
> If I have presented one corner of the square and they cannot come
> back to me with the other three,
> I should not go over the points again.
Confucius
> Below the surface of the machine, the program moves.
> Without effort, it expands and contracts.
> In great harmony, electrons scatter and regroup.