Skip to content

Instantly share code, notes, and snippets.

View erikfig's full-sized avatar
🏠
Working from home

Erik Figueiredo erikfig

🏠
Working from home
View GitHub Profile
alias ts:start="yarn init -y && yarn add @types/node ts-node typescript && sed -i '/\"license\": \"MIT\"/a \ \"scripts\": {\n \"dev\": \"ts-node src/index.ts\"\n },' package.json && mkdir src && echo '{
\"compilerOptions\": {
\"target\": \"es6\",
\"module\": \"commonjs\",
\"strict\": true,
\"esModuleInterop\": true,
\"skipLibCheck\": true,
\"forceConsistentCasingInFileNames\": true
},
\"include\": [\"src\"]
@erikfig
erikfig / README.md
Created March 21, 2023 18:58
TODO List

Uma API node que recebe tarefas (uma a uma) e deve armazenar em uma lista.

v1 - Service de CRUD

  • Deverá ser feita com TDD
  • Deverá apresentar um CRUD completo
  • Deverá armazenar as tarefas "in memory"
  • Deverá ser construída de acordo com os princípios de SOLID
// Proposta 1
const mainMenu: string[] = [
'Home', 'Estudar', 'Conhecer outros devs'
]
// Proposta 2
const mainMenu: string[] = [ 'Home', 'Estudar', 'Conhecer outros devs' ]
[
{
id: 1,
name: 'Motion',
icon: '/img/category-motion.svg',
desc: 'Criação/edição de vídeos...',
width: 15,
height: 12,
services: [
{
protected function webRoutes()
{
if (!$this->app->routesAreCached()) {
Route::namespace('\ErikFig\Feature\products\Http\Controllers')
->middleware(['web'])
->group(__DIR__ . '/../../routes/web.php');
}
}
<!-- As informações abaixo são obrigatórias. -->
## Link da tarefa no Jira:
<!-- Informe o link das tarefas no jira. -->
Link do Jira: https://webjump.atlassian.net/browse/ADT-1234
<!-- O Checklist deve ser preenchido apenas pelo revisor no momento do code review -->
## Checklist
- [ ] A branch de destino está correta? (develop, staging, master);
import api from "./api";
import MovieCover, {buildEvents} from './components/movieCover';
import "./styles.css";
class App {
constructor() {
this.appElement = document.getElementById("app");
this.render()
.then((res) => this.appElement.innerHTML = res)
.then(() => {
<?php
class Model {
public static function find($name)
{
return 'Model::find::' . $name;
}
public function save()
{
<?php
namespace Simbora\v1\Place\Repositories;
use Simbora\v1\Place\Models\Place;
class PlaceRepository
{
protected $place;
<samlp:AuthnRequest AssertionConsumerServiceURL="https://saml-sp.repro.lab/cgi/samlauth"
Destination="https://saml-redirect.repro.lab/saml/login" ForceAuthn="false"
ID="_59d52136c277a2ae101124b8e40142bf" IssueInstant="2018-01-25T08:55:22Z"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://netscaler.repro.lab</saml:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>