Skip to content

Instantly share code, notes, and snippets.

View andrerpena's full-sized avatar

André Pena andrerpena

  • London, UK
View GitHub Profile
version: "2"
services:
# fix-postgresql-permissions:
# image: "bitnami/postgresql:latest"
# user: root
# command: chown -R 1001:1001 /bitnami
# volumes:
# - ./postgresql:/bitnami/postgresql
postgresql:
// exporting *
declare module "a" {
const a: number
export = a
}
// exporting default
declare module "b" {
const a: number
export default a
"scripts": {
"build:ts": "tsc",
"start": "node index.js",
"start:watch": "nodemon index.js",
"start:debug": "node --inspect index.js",
"start:debug:brk": "node --inspect-brk index.js",
"start:debug:ts": "node --inspect --require ts-node/register index.ts",
"start:debug:ts:brk": "node --inspect-brk --require ts-node/register index.ts"
}
@andrerpena
andrerpena / medium-node-attach.json
Created April 16, 2018 04:53
VS Code launch.json for attaching to the Node assuming there is only 1 debugging session
{
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
}
]
}
@andrerpena
andrerpena / medium-ts-npm.json
Created April 16, 2018 04:48
VS Code launch.json for debugging the start:debug:ts NPM script
{
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"start:debug:ts"
@andrerpena
andrerpena / medium-ts-node.json
Last active April 16, 2018 04:47
VS Code launch.json for debugging the current TypeScript file
{
"configurations": [
{
"name": "Current TS File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/ts-node",
"args": ["${relativeFile}"],
"protocol": "inspector"
}
import * as React from "react";
import * as ReduxForm from "redux-form";
interface MarkdownEditorProps extends ReduxForm.WrappedFieldProps {
}
interface MarkdownEditorState {
}

Appointment or task

{  
	"StartDate":"2016-12-15T19:00:00-02:00",
	"EndDate":"2016-12-15T19:30:00-02:00",
	"Description":"Ir no médico",
	"Status":"Pendente",
	"Location":null,

"Private":false,

Product name

Matterspace

aaaa

export horseman from ''node-horseman' // no ES2015
// é equivalente a
module.exports = { horseman: require('node-horseman'); };
// que é equivalente a
module.exports.horseman = require('node-horseman');