A comprehensive guide to setting up and using Claude-Flow with swarms in GitHub Codespaces, based on real community discussions and proven workflows.
- Don't type or run anything until I told you so.
- This guide uses linux commands. For windows users, you can use
win-bash
I have one computer and two different github accounts. One is for work, the other is for my personal stuff. I can't use the same ssh key twice, so I have to use different ssh key for each of my accounts. How do I do that? How do I switch between these ssh keys?
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
| // Custom Validator to add errors into vuex store and also handle laravel form errors. | |
| import { mapGetters } from 'vuex'; | |
| import { CLEAR_FORM_ERRORS, ERROR } from '../vuex/types'; | |
| import Vue from 'vue'; | |
| export default { | |
| data() { | |
| return { | |
| errors: [], | |
| keepServerErrors: ['unique', 'boolean', 'exists', 'regular_chars', 'identifier', 'date'], |
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 | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| class JsonMiddleware | |
| { | |
| public function handle(Request $request, Closure $next) |
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
| <my-component inline-template> | |
| <h1>@lang('users.edit') {{ $user->name }}</h1> | |
| <form method="post" action="{{ route('users.update', ['user' => $user]) }}"> | |
| {!! csrf_field() !!} | |
| <input name="_method" type="hidden" value="PATCH"> | |
| <!-- Some form fields --> | |
| <button type="submit">{{ __('button.update') }}</button> | |
| </form> |
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 namespace App\Traits; | |
| use App\MeetingApprovalCommittee; | |
| use App\Role; | |
| trait CheckRequestPermission { | |
| /** | |
| * Check role permission to form request class to be validated | |
| * |
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
| //8 Methods to Iterate through Array | |
| //forEach (Do Operation for Each Item in the Array) | |
| [1,2,3].forEach(function(item,index) { | |
| console.log('item:',item,'index:',index); | |
| }); | |
| //map (Translate/Map all Elements in an Array to Another Set of Values.) | |
| const oneArray = [1,2,3]; | |
| const doubledArray = oneArray.map(function(item) { |
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
| You can't merge with local modifications. Git protects you from losing potentially important changes. | |
| You have three options. | |
| 1. Commit the change using | |
| git commit -m "My message" | |
| 2. Stash it. | |
| Stashing acts as a stack, where you can push changes, and you pop them in reverse order. |
NewerOlder