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
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Alta Floresta D'Oeste", | |
| ]); | |
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Ariquemes", |
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 artisan make:middleware AddUserInHeader | |
| public function handle($request, Closure $next) | |
| { | |
| if (!auth()->guest()) { | |
| $user = [ | |
| 'id' => auth()->id(), | |
| 'name' => auth()->user()->name | |
| ]; | |
| } else { |
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
| "_token": "{{ csrf_token() }}" |
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
| {**************************************************************************** | |
| Copyright (c) 2014 Randolph | |
| mail: rilyu@sina.com | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
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
| // Componente funcional | |
| route.params.name | |
| //Componente de classe | |
| this.props.route.params.name |
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
| StringReplace(pLista.Text, 'DelpHi', 'Delphi', [rfReplaceAll, rfIgnoreCase]); |
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
| InputBox('Senha', #31' ', ''); | |
| // Capition, Char+Label, Valor padrão |
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
| import {CommonActions} from '@react-navigation/native'; | |
| //use mode: RemoveFromHistory.remove(this.props, 'Preload'); | |
| export default { | |
| remove: (props, routesToRemove) => { | |
| const newRoutes = []; | |
| props.navigation.dispatch(state => { | |
| const routes = state.routes.filter(r => r.name !== routesToRemove); | |
| return CommonActions.reset({ | |
| ...state, |
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
| uses EncdDecd | |
| function Encode(const Input: string): AnsiString; | |
| var | |
| utf8: UTF8String; | |
| begin | |
| utf8 := UTF8String(Input); | |
| Result := EncdDecd.EncodeBase64(PAnsiChar(utf8), Length(utf8)); | |
| end; |
NewerOlder