Skip to content

Instantly share code, notes, and snippets.

View wellingtonpgp's full-sized avatar
🎯
Focusing

Wellington Pereira Gonçalves wellingtonpgp

🎯
Focusing
View GitHub Profile
import{bootstrap} form "angular2/platfrom/browser";
import{Component} form "angular2/core";
@Component({
selector: 'app',
template: `<div>Olá Mundo</div>`
})
class App{}
bootstrap(App);
Arquivos
Ctrl + Shift + N New Project
Shift + Alt + N New Web Site
Ctrl + Shift + O Open Project
Shift + Alt + O Open Web Site
Ctrl + Shift + A Add New Item
Shift + Alt + A Add Existing Item
Ctrl+N New File
Ctrl+O Open File
Ctrl+], Ctrl+N Add New Diagram
//Comando para configura nome do usuário
git config --global user.name "Seu nome aqui"
//Comando para configurar email do usuário
git config --global user.email "Seu email aqui"
//Para ver o nome do usuário configurado no git
git config --get user.name
//Para ver o e-mail do usuário configurado no git
@wellingtonpgp
wellingtonpgp / clear.sh
Last active April 4, 2017 19:51
Shell script básico de limpeza
#!/bin/bash
# limpeza de arquivos inuteis no sistema
# Criado por Wellington P. Gonçalves (Wellington Geek)
# email: [email protected], [email protected]
# Para executar o script basta localizar a pasta e digitar chmod +x clear.sh
echo "Limpando a lixeira"
sudo rm -rf /home/$USER/.local/share/Trash/files/*
echo ""
@wellingtonpgp
wellingtonpgp / Node.js v6
Last active May 1, 2016 16:29
Install Node.js v6 terminal Ubuntu
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var jscs = require('gulp-jscs');
var nodemon = require('gulp-nodemon');
var jsFiles = ['*.js', 'src/**/*.js'];
gulp.task('style', function () {
return gulp.src(jsFiles)
.pipe(jshint())
var express = require('express');
var app = express();
app.use(express.static('public'));
app.set('views','./src/views');
app.set('view engine','ejs');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>handerlerbars</title>
</head>
<body>
<h1>
{{title}}
</h1>
//-var list = ['1', '2', '3']
html
head
//- bower:css
link(rel='stylesheet', href='/lib/bootstrap/dist/css/bootstrap.css')
link(rel='stylesheet', href='/lib/font-awesome/css/font-awesome.min.css')
//- endbower
//- bower:js
script(src='/lib/jquery/dist/jquery.js')