Skip to content

Instantly share code, notes, and snippets.

@beeblebrox3
beeblebrox3 / file.ts
Last active August 22, 2018 20:51
tscp
interface Usuario {
id?: number;
name: String;
}
interface SUsuario {
idUsuario: number;
}
const x: Usuario[] = [{ name: "x" }, { id: 1, name: "y" }];
#!/usr/bin/env bash
# This script was made to facilitate debug tests and other cli running on docker
# on your editor/ide
#
# For vscode, you just have to configure the `serverSourceRoot` on your launch.json
# file.
# For phpstorm you have to create a server named `debug`.
#
# You can use this script as the php binary. Like this:
#!/bin/bash
### star_create_project project_name
ProjectName="$1"
wget -O "$ProjectName.zip" https://github.com/beeblebrox3/star/archive/master.zip
unzip "$ProjectName.zip"
mv star-master "$ProjectName"
rm "$ProjectName.zip"
cd "$ProjectName"
#!/bin/bash
### star_create_project project_name
ProjectName="$1"
wget -O "$ProjectName.zip" https://github.com/beeblebrox3/star/archive/master.zip
unzip "$ProjectName.zip"
mv star-master "$ProjectName"
rm "$ProjectName.zip"
cd "$ProjectName"
import App from "app";
const Pages = App.components.pages;
const Router = App.service("ROUTER");
Router.setDefaultLayout(App.components.Application);
Router.setDefaultTitle("Elydi");
Router.addRoute("/", Pages.Home);
Router.addRoute("/another-home", Pages.Home);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import App from "app";
const Router = App.ServicesContainer.get("ROUTER");
const Pages = App.components.pages;
Router.setDefaultLayout(App.components.Application);
Router.addResolver("movieID", (param, context, next) => {
App.ServicesContainer.get("Movies").get(param, (movie) => {
context.params.movie = movie;
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
let g:vim_bootstrap_langs = "html,javascript,php,python"

Keybase proof

I hereby claim:

  • I am beeblebrox3 on github.
  • I am luishenrique (https://keybase.io/luishenrique) on keybase.
  • I have a public key whose fingerprint is C00B 7210 BCBC 6E8C E9CE FA7D 44CB 7D0D E6E5 C48E

To claim this, I am signing this object:

<?php
class Xpto
{
private $data = array (
'a' => 'b',
);
public $b = '1';