This file contains 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
use Illuminate\Support\Facades\Schema; | |
public function boot() | |
{ | |
Schema::defaultStringLength(191); | |
} |
This file contains 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
youtube-dl --external-downloader aria2c --output "<folder name>/%(playlist_index)s-%(title)s.%(ext)s" <playlist link> |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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
MacOS - ~/Library/Caches/pypoetry/virtualenvs | |
Linux - ~/.cache/pypoetry/virtualenvs |
This file contains 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
brew install mysql@5.7 mysql-connector-c openssl | |
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/ | |
brew services start mysql@5.7 | |
xcode-select --install | |
brew unlink mysql@5.7 | |
brew link --overwrite --force mysql-connector-c |
This file contains 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
brew install pyenv | |
brew install tcl-tk | |
# add these to your rc file | |
# tcl-tk | |
export PATH="/usr/local/opt/tcl-tk/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" | |
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig" | |
export PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'" |
This file contains 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
let globalThis = this; | |
function func1() { | |
let num = 5; | |
console.log(`num: ${num}`); | |
console.log('Global This: ', globalThis); | |
console.log('Local This: ', this); | |
console.log('Are they same?', globalThis === this); | |
} |
This file contains 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
let globalThis = this; | |
function func1() { | |
console.log('Global This: ', globalThis); | |
console.log('Local This: ', this); | |
console.log('Are they same?', globalThis === this); | |
} | |
func1() |
This file contains 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
let globalThis = this; | |
let obj1 = { | |
innerMethod: function() { | |
console.log('Global This: ', globalThis); | |
console.log('Local This: ', this); | |
console.log('Are they same?', globalThis === this); | |
console.log('Is this the object?', obj1 === this); | |
} | |
}; |
OlderNewer