Skip to content

Instantly share code, notes, and snippets.

View satyapramodh's full-sized avatar
🎯
Focusing

Pramodh Mazumdar satyapramodh

🎯
Focusing
View GitHub Profile
@satyapramodh
satyapramodh / .bashrc
Created March 27, 2018 05:18 — forked from copperlight/.bashrc
Window Subsystem for Linux ssh-agent Configuraton
# ... more above ...
# wsfl bash is not a login shell
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
@satyapramodh
satyapramodh / pathBetweenTwoNodesInBinaryTree.java
Last active September 23, 2017 21:00
A java program to get path between two nodes in binary tree
import java.util.*;
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
}
public class Solution{
public static void main(String[] args){
@satyapramodh
satyapramodh / tmux.md
Created January 6, 2017 16:42 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@satyapramodh
satyapramodh / Meteor_uihooks.md
Created February 4, 2016 12:22 — forked from benstr/Meteor_uihooks.md
_uihooks Examples

Add preliminary API for registering hooks to run when Blaze intends to insert, move, or remove DOM elements. For example, you can use these hooks to animate nodes as they are inserted, moved, or removed. To use them, you can set the _uihooks property on a container DOM element. _uihooks is an object that can have any subset of the following three properties:

  • insertElement: function (node, next): called when Blaze intends to insert the DOM element node before the element next
  • moveElement: function (node, next): called when Blaze intends to move the DOM element node before the element next
  • removeElement: function (node): called when Blaze intends to remove the DOM element node

Note that when you set one of these functions on a container element, Blaze will not do the actual operation; it's your responsibility to actually insert, move, or remove the node (by calling $(node).remove(), for example).

https://github.com/meteor/meteor/blob/30fb11f1fa0227f1c0ec3eb30b7864ea3b2d210e/History.md