May topics kayo regarding
- service providers?
- Best practices or actual usages?
Other topics.
- Form validator
- Queues
- Frontend w/ React
- JWT Tokens per user.
| <script> | |
| let todos = []; | |
| function addTodo() { | |
| todos = [...todos, '']; | |
| } | |
| function removeSelf(index) { | |
| todos = [...todos.slice(0, index), ...todos.slice(index + 1)] | |
| } | |
| </script> | |
| {#each todos as todo, index} |
May topics kayo regarding
Other topics.
| function homestack { | |
| ( cd ~/codes/homestack && docker-compose $* ) | |
| } |
Please note that everything here is just a suggestion. If it makes sense to setup a little differently on your own, you can also create that and let the team know.
Install gitflow https://github.com/nvie/gitflow/wiki/Installation and read the basic git git-flow - https://nvie.com/posts/a-successful-git-branching-model/
Brew asks me to do this: sudo chown -R $(whoami) /usr/local/Homebrew
I unfortunately have other users for development on my mac that need access to Homebrew dir to run stuff.
I find an aritcle https://medium.com/@energee/install-brew-for-multiple-users-65af2444df5c
So I create the group 'brew' in the user and groups preferences pane, MThen
sudo chgrp -R brew $(brew --prefix)/Homebrew| <style> | |
| .base64 { | |
| background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAQAAABpN6lAAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjBh4GBQL0dv9bAAAMEUlEQVR42u2deZAU1R3HP9PHsBEEIawugpKSYHkVIEEjHlhoMAmxTCw1qFiKGiJWiOVZFY9QamGJGrEoLzAmYgSVSEyM8Uhw0YAHeESMIogxZbSUYxF0BdmZ6e6XP7q3ed3TPcdOv9mecn5dRdXOTHe/3+/9ju/v9977AU1qUpOa1KQmNalJTfp6UqZBRqmhkQEcNEDg4CCSeLSRctZNCoBgJKNoY0/24gu+ZDP/5l3veysZQaSPdABO4yF2IBAIbHLkyGF5f+/gYaZUPY2mp1GpJgMYx58QCPLYHsPhyyaPQPAsR3mMVcL82TzF/eyRXt3XgImsR3jslb/yCLZwsq818UI9iQ4EBboQmPH+z+hFB2mwB68jfDWv9LIRrGNojGqbwAQ2eL8TCLqYE6cDBofyAYLl6CUlqoYujZx5i1zok1yEiAoIrg9NnMvB+WwLCTXHvdETnKEPAguHXeTqqgU6sCpSvQWvMoezGMsB7M0BHM4U5vCy9L2sCR8BJhlvfo9kka8hwWtSnAY84Us7x4Y6hjvYSVcR808y0dNLEx0NDQ0d0xv8sfy5SAg5HAYAP/FYz+MUMR+LITS+GVKqv9aJ/b4hRvII5pUNce53t4butf1nOLFu8/a4QPiHIqWaXxfldy149/Ui30CvyAAz6MCzVTrNWOOO+vFs5SLYIYndRnC2Fw6rAfQnFAlRdqLB+b8vThHPjXnALKXsL5d8fAHBwIpATZiytLCzKFpYOAjai+bf9D1PgNp9GYa95h3KrP/CgM/JoZOtAT92eo60O3CuYgawOqADM4BJLOMlpsUZgINgZkgEDynKRYPOy+jR7MveZCU |
| /* timeout = seconds */ | |
| function cacheDB(array $tags, $depKey, $sql, $timeout = 300) { | |
| $data = DB::select(DB::raw($sql)); | |
| return Cache::tags($tags)->put($depKey, $sql); | |
| //remember($depKey, $timeout, function() use($sql) { | |
| // Some join query that will return all Managers from selected Department | |
| return DB::select(DB::raw($sql)); | |
| }); | |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Fat extends Model | |
| { | |
| public function all() { | |
| $sponsors = DB::select(DB::raw("SELECT * FROM sponsors LIMIT 10")); |