Skip to content

Instantly share code, notes, and snippets.

@Nikeshsuwal
Nikeshsuwal / sublime-text-3-setup.md
Created March 7, 2018 09:11 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@Nikeshsuwal
Nikeshsuwal / sublime-command-line.md
Created February 19, 2018 04:03
Launch Sublime Text from the command line on OSX

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

@Nikeshsuwal
Nikeshsuwal / gist:8bf2c0fe790f47b01a5b504e413985c9
Created December 11, 2017 10:05 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
Mysql setup on system
sudo apt-get install libmysqlclient-dev
gem install mysql2 -v '0.3.18'
@Nikeshsuwal
Nikeshsuwal / cmd.txt
Created March 6, 2017 04:08
Open sublime from Terminal of MAC
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/subl
@Nikeshsuwal
Nikeshsuwal / footer.css
Created December 26, 2016 05:40
display the footer section on bottom boddy
@Nikeshsuwal
Nikeshsuwal / script.js
Created December 1, 2016 08:22
fixed widget on scroll
$(function() {
if ($('#subs-wrapper').length) {
sub_width = $('#subs-wrapper').parent('div').width()
var el = $('#subs-wrapper');
var stickyTop = $('#subs-wrapper').offset().top - 100;
var stickyHeight = $('#subs-wrapper').height();
screen_width = $(window).width();
if ( 767 < screen_width){
$(window).scroll(function() {
var limit = $('#footer-top').offset().top - stickyHeight - 100;
@Nikeshsuwal
Nikeshsuwal / tig.html
Last active October 3, 2016 06:02
Tig issue
Issue:
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/tig
Reason: image not found
[1] 71009 trace trap tig
Solution:
brew reinstall --HEAD tig
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Josh Lee" ];
then export GIT_AUTHOR_NAME="Hobo Bob"; export GIT_AUTHOR_EMAIL=hobo@example.com;
fi; git commit-tree "$@"';
@Nikeshsuwal
Nikeshsuwal / aa.html
Created March 28, 2016 11:25
Use of data-link
<div class="browse-media-bg" data-link="/societies/1" >hello</div>