Skip to content

Instantly share code, notes, and snippets.

View noopurphalak's full-sized avatar

Noopur Ramakant Phalak noopurphalak

View GitHub Profile
@loilo
loilo / pass-slots.md
Last active February 20, 2025 09:47
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@amit-siddhu
amit-siddhu / ReferenceFile.sh
Created October 6, 2015 12:59
Some very useful utilities
#To start lightweight python http server
python -m SimpleHTTPServer 8000
#To listen on tcp port for incoming messages
sudo tcpflow -i any -C -J port 1234
find . -mtime -4 # find files modified less than 4 days ago
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +4 # find files modified more than 4 days ago