This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
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
<q-table | |
:data="data" | |
:pagination="pagination" | |
@request="paginationRequest" | |
:columns="columns" | |
> | |
<template v-slot:top-left="topLeft"> | |
<TablePagination :pagination="topLeft.pagination" @request="paginationRequest" /> | |
</template> | |
</q-table> |
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
<?php | |
function varexport($expression, $return=FALSE) { | |
$export = var_export($expression, TRUE); | |
$export = preg_replace("/^([ ]*)(.*)/m", '$1$1$2', $export); | |
$array = preg_split("/\r\n|\n|\r/", $export); | |
$array = preg_replace(["/\s*array\s\($/", "/\)(,)?$/", "/\s=>\s$/"], [NULL, ']$1', ' => ['], $array); | |
$export = join(PHP_EOL, array_filter(["["] + $array)); | |
if ((bool)$return) return $export; else echo $export; | |
} |
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
[{"name":"Afghanistan","flag":"🇦🇫","code":"AF","dial_code":"+93"},{"name":"Åland Islands","flag":"🇦🇽","code":"AX","dial_code":"+358"},{"name":"Albania","flag":"🇦🇱","code":"AL","dial_code":"+355"},{"name":"Algeria","flag":"🇩🇿","code":"DZ","dial_code":"+213"},{"name":"American Samoa","flag":"🇦🇸","code":"AS","dial_code":"+1684"},{"name":"Andorra","flag":"🇦🇩","code":"AD","dial_code":"+376"},{"name":"Angola","flag":"🇦🇴","code":"AO","dial_code":"+244"},{"name":"Anguilla","flag":"🇦🇮","code":"AI","dial_code":"+1264"},{"name":"Antarctica","flag":"🇦🇶","code":"AQ","dial_code":"+672"},{"name":"Antigua and Barbuda","flag":"🇦🇬","code":"AG","dial_code":"+1268"},{"name":"Argentina","flag":"🇦🇷","code":"AR","dial_code":"+54"},{"name":"Armenia","flag":"🇦🇲","code":"AM","dial_code":"+374"},{"name":"Aruba","flag":"🇦🇼","code":"AW","dial_code":"+297"},{"name":"Australia","flag":"🇦🇺","code":"AU","dial_code":"+61"},{"name":"Austria","flag":"🇦🇹","code":"AT","dial_code":"+43"},{"name":"Azerbaijan","flag":"🇦🇿","code":"AZ","dial_code":"+9 |
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
cat <<EOF>~/.config/sublime-text-3/Packages/User/"Default (Linux).sublime-mousemap" | |
[ | |
// Change font size with ctrl+scroll wheel | |
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "null" }, | |
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "null" } | |
] | |
EOF |
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
# Source: http://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04 | |
# Follow instructions from 1 to 4 from the source url (stackoverflow). | |
# Then based from the comment also sign the following modules:`vboxnetflt`, `vboxnetadp`, and `vboxpci`. | |
# After instruction 4: `sudo modprobe vboxdrv`, enter the following commands to finish signing the modules. | |
# Copy-paste the ff into the terminal: | |
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv) | |
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt) | |
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetadp) |
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
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ll="ls -alF" | |
alias proj="cd d:\Projects" | |
#*****# | |
# Git # | |
#*****# | |
alias gp="git pull" | |
alias gs="git status" |
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
[ | |
"Alignment", | |
"AlignTab", | |
"All Autocomplete", | |
"AngularJS", | |
"Auto Semi-Colon", | |
"Case Conversion", | |
"CodeFormatter", | |
"DocBlockr", | |
"Emmet", |
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
Show hidden characters
{ | |
"patterns": { | |
"TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$", | |
"NOTE": "NOTE[\\s]*?:[\\s]*(?P<note>.*)$", | |
"FIXME": "FIX ?ME[\\s]*?:[\\s]*(?P<fixme>.*)$", | |
"CHANGED": "CHANGED[\\s]*?:[\\s]*(?P<changed>.*)$" | |
}, | |
"exclude_folders": [ | |
"*.git*", | |
"vendor" |
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
{ | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"flatland_sidebar_tree_small": true, | |
"flatland_square_tabs": true, | |
"font_size": 10, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Flatland Dark.sublime-theme", |
NewerOlder