Skip to content

Instantly share code, notes, and snippets.

View yokesharun's full-sized avatar
😬
Happy

Arun Yokesh yokesharun

😬
Happy
View GitHub Profile
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active April 15, 2024 09:41
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@yokesharun
yokesharun / get_previous_url.js
Created February 8, 2016 13:26
Jquery get previous url of the browser
$(document).ready(function() {
var referrer = document.referrer;
console.log(referrer);
});
// open your console
@anistark
anistark / laravel-package
Last active February 4, 2017 07:53
Packaging of Laravel website
So, you're done making the website or web-app and now you would wanna distribute it to your clients. Awesome. Let's go ahead and create a package for the same.
There are two types of packaging that can be done in laravel:
1. VPS
2. Shared
VPS
VPS version is for their own use and local testing. So, you would wanna keep it as close to your local system settings as possible.
1. Delete all the files from app/storage/ in the following folders:
cache
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname