This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plugins | |
1. Indenticator | |
2. ESLINT | |
3. Import Cost (Displays the imported lib file size) | |
4. vscode-icons | |
5. Quokka.js | |
6. Git Ignore | |
7. Git Lens | |
8. Markdown Preview Github Styling | |
9. Todo Tree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
read -e -p "Please enter PR Id (Assuming remote name is UPSTREAM): # " PR_ID | |
readonly branch_name=PR_BRANCH_$PR_ID | |
#Check if PR exists | |
if [ -ne `git ls-remote upstream 'pull/*/head' | grep pull/$PR_ID/head`]; then | |
echo "\033[33;31m Error: PR ($PR_ID) NOT FOUND" | |
exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component, PropTypes} from 'react'; | |
import classNames from 'classnames'; | |
import Trigger from './PopOverTrigger.js'; | |
import Content from './PopOverContent.js'; | |
class PopOver extends Component { | |
static propTypes = { | |
placement: PropTypes.oneOf(['top', 'right', 'bottom', 'left']), | |
contentWidth: PropTypes.number, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @return object | |
* Javascript object with 'init' method to initialize | |
* NativeAppLauncher | |
*/ | |
var NativeAppLauncher = (function($) { | |
"use strict"; | |
var Settings = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NativeAppLauncher. | |
// Copied from bartt.me/openapp | |
var NativeAppLauncher = (function () { | |
var IOS_VERSION_RE = /OS\s+(\d)_/; | |
var timers = []; | |
var userAgent = window.navigator.userAgent; | |
var isAndroid = function () { | |
return /Android/.test(userAgent); | |
}; | |
var isIOS = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download Drupal apachesolr search module | |
2. Download solr 4.x and untar it outside the root folder | |
3. Change the defult port if required. | |
Goto solr/etc/jetty.xml | |
Find 8983 and replace with custom port. | |
4. Copy schema.xml and solrconfig.xml from apachesolr/solr-conf/solr-4.x to solr/example/solr/collection1/conf | |
5. Start Solr, cd solr/example, java -jar start.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- opens 4 tab with last 3 being a single tab splitted horizontally | |
tell application "iTerm" | |
activate | |
-- create new iterm window | |
set myterm to (make new terminal) | |
tell the myterm | |
activate current session | |
--new tab | |
launch session "[ITermProfileName]" | |
tell the last session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First Install Vim Drupal Module | |
drush @none dl vimrc | |
// Checkout vim installation options | |
drush help vimrc-install | |
// Install vim plugins | |
drush -v vimrc-install [options] | |
// For installing the color scheme | |
// Above command will install Vbundle so, clone the git colorscheme repo | |
// in the ~/.vim/bundle folder and add that colorscheme in the .vimrc file | |
# colorscheme vividchalk //https://github.com/modess/vim-phpcolors.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# created .gitconfig file inside the $home(HOME) folder `/Users/[username]/` if not present | |
[user] | |
name = prabeen | |
email = [email protected] | |
[color] | |
ui = auto | |
[alias] | |
lg = log | |
lg2 = log --oneline --decorate |
NewerOlder