Skip to content

Instantly share code, notes, and snippets.

View khalidchawtany's full-sized avatar

Khalid H. Ahmed khalidchawtany

View GitHub Profile
@khalidchawtany
khalidchawtany / pass-slots.md
Created June 13, 2020 10:40 — forked from loilo/pass-slots.md
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 = {

Process: neovide [19255]
Path: /Applications/Neovide.app/Contents/MacOS/neovide
Identifier: com.kethku.neovide
Version: 0.4.0 (20200303.082939)
Code Type: X86-64 (Native)
Parent Process: zsh [18799]
Responsible: iTerm2 [18793]
User ID: 501
Date/Time: 2020-04-20 23:01:38.798 +0300
@khalidchawtany
khalidchawtany / callPrint.js
Created July 14, 2019 18:21 — forked from mcfearsome/callPrint.js
Electron launch and print a hidden webview
import { ipcRenderer } from 'electron'
ipcRenderer.send('print', { device: 'printer name', width: 210 })
/Users/juju/.config/nvim/dein/repos/github.com/phpactor/phpactor/bin/phpactor complete ~/Projects/PHP/knights/app/Http/Controllers/BalanceController.php 2230
suggestions:
0:
type:method
name:validateResolved
label:validateResolved
short_description:pub validateResolved(): void
class_import:
info:pub validateResolved(): void
1:
#!/bin/sh -x
#===============================
# Copied Calinou/build_osx.sh gist
#===============================
# This script must be run from a GNU/Linux system with
# OSXCross installed and configured. XCode SDK 7.2 is used
# with this script.

SPC

SPC (Jump to word)

TAB (Previous buffer visible in window)

! (Run shell command)

’ (Pop up shell)

* / (Search in project)

0,1,…,9 (Jump to window)

: (Run M-x)

; (Comment operator)

? (Helm session with keybindings)

Large Object Motions:
(
)
{
}
[[
[]
][
]]
[m
call plug#begin('~/.config/nvim/plugged')
set rtp+=/usr/local/opt/fzf
Plug 'junegunn/fzf.vim',
function! s:tablist()
redir => tabs
silent tabs
redir END
return filter(split(tabs, '\n'), 'v:val =~ "Tab page"')
~ NVIM v0.1.0-44-g632408a 1 ¬ 3 - syntastic: Already up-to-date.¬ ~ 4 - vim-operator-jerk: Already up-to-date.¬ ~ 5 - neco-vim: Already up-to-date.¬ ~ 6 - vim-unite-cake: Already up-to-date.¬ ~ 7 - vim-textobj-line: Already up-to-date.¬ ~ 8 - vim-rsi: Already up-to-date.¬ ~ 9 - MatchTagAlways: Already up-to-date.¬ ~ 10 - neomake: Already up-to-date.¬ ~ 11 - vim-exchange: Already up-to-date.¬ ~
Press ENTER or type command to continue
Program received signal SIGSEGV, Segmentation fault.
0x00000001001b792b in arena_bin_malloc_hard ()
(gdb) 00~backtrace01~
Undefined command: "00". Try "help".
(gdb) backtrace
#0 0x00000001001b792b in arena_bin_malloc_hard ()
#1 0x00000001001b72a5 in je_arena_tcache_fill_small ()
#2 0x00000001001d3dff in je_tcache_alloc_small_hard ()
#3 0x00000001001ab031 in je_malloc ()