Skip to content

Instantly share code, notes, and snippets.

View banerRana's full-sized avatar

Rana Banerjee banerRana

  • Automated It Solutions
  • Washington, DC
View GitHub Profile
@makmanalp
makmanalp / comparison.md
Last active June 10, 2024 14:24
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).

@bennadel
bennadel / multi-isolate.htm
Created November 27, 2014 12:56
Don't Blindly Isolate All The Scopes In AngularJS Directives
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Multiple Isolate-Scopes Cannot Be Applied To The Same Element In AngularJS
</title>
</head>
<body>
@bufas
bufas / Queue.java
Created October 3, 2014 13:09
Very simple FIFO queue implementation in Java
/**
* Author: Mathias Bak Bertelsen
* Email: [email protected]
* Date: 03-08-2014
*
* A very simple implementation of a generic FIFO queue.
*/
public class Queue<T> {
/**
* Method to get all bytes from a file.
*
* @param path
* @return
* @throws IOException
*/
public static byte[] getFileContent(String path) throws IOException {
FileConnection file = null;
@sebsto
sebsto / gist:19b99f1fa1f32cae5d00
Created August 8, 2014 15:53
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();

Sublime Text 2 Useful Shortcuts

Tested in Mac OS X| super == command (⌘)

Open/Goto

Shortcut Action
super+t go to file
super+ctrl+p go to project
@bhalothia
bhalothia / Private on premise Git Server
Created May 8, 2014 12:25
Installing a private on premise git server for your organization
Following this article:
http://thealarmclocksixam.wordpress.com/2013/01/06/git-repo-tutoria/
http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/
http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server
# SSH Server configuration
The machine that will host the git repository needs to be accessed by clients. A possible way to access a machine remotely is through SSH.
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 7, 2025 05:43
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@ilyar
ilyar / Install_gitflow_on_Windows.md
Created April 22, 2014 19:16
Install gitflow on Windows

Install gitflow on Windows

Download and install Git from MSysGit or Git SCM. Download and install getopt.exe from the util-linux package into C:\Program Files\Git\bin. (Only getopt.exe, the others util-linux files are not used). Also install libintl3.dll and libiconv2.dll from the Dependencies packages (libintl and libiconv), into the same directory.

Suppose that Git is installed in the folder c:\bin\git and GnuWin32 in the folder c:\bin\GnuWin32.

Clone the git-flow sources from GitHub:

$ git clone --recursive git://github.com/nvie/gitflow.git