Skip to content

Instantly share code, notes, and snippets.

View Wizyma's full-sized avatar
🎯
Focusing

André Gomes Wizyma

🎯
Focusing
View GitHub Profile
@Wizyma
Wizyma / Makefile
Created November 7, 2020 20:13 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@Wizyma
Wizyma / license-badges.md
Created October 31, 2019 14:22 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

import PropTypes from 'prop-types';
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type Defined<T> = T extends undefined ? never : T;
/**
* Get the type that represents the props with the defaultProps included.
*
* Alternatively, we could have done something like this:
@Wizyma
Wizyma / introspection-query.graphql
Created April 11, 2019 14:23 — forked from craigbeck/introspection-query.graphql
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
Info
Scaleway est livré actuellement avec docker-engine 1.12.2
Rancher lui a besoin de version précise docker-engine
http://docs.rancher.com/rancher/v1.5/en/hosts/
update rancher-engine
enter your pass phrase used with your ssh key generated on your laptop.
// server example
import { User } from './database'
route.get('/user', async (req, res) => {
return await User.findOne({ username: req.body.username })
});
// browser GET/user?username=paco
// response
{
"data": {
@Wizyma
Wizyma / graphql_schema.js
Last active May 25, 2018 13:07
GraphQL medium
// Schema definition
type Query {
user(username: String!): User!
}
type User {
username: String!
firstname: String!
lastname: String!
age: Int!