Skip to content

Instantly share code, notes, and snippets.

View sombriks's full-sized avatar
🎧
discover new life, new galaxies, new civilizations -- [RUNNING]

Leonardo Silveira sombriks

🎧
discover new life, new galaxies, new civilizations -- [RUNNING]
View GitHub Profile
@sombriks
sombriks / foo.js
Created November 23, 2016 05:47
well it works. mocha + chai + chai-http
/*
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^3.1.2",
"chai-http": "^3.0.0"
}
*/
"use strict"
let chai = require('chai');
@sombriks
sombriks / bar.js
Last active March 30, 2017 16:07
mocha+chai+budo+nightmare
"use strict"
const Nightmare = require("nightmare");
const expect = require("chai").expect;
const budo = require("budo");
describe("\u263C basic tests \u263E", () => {
const b = budo("../src/main.js");
@sombriks
sombriks / main.js
Last active January 21, 2017 14:33
cordova bootstrapping vue
// boot the view-model
const Vue = require("vue");
const appcore = require("./components/appcore");
const appInit = () => new Vue({
router: appcore.router,
render: function (createElement) {
return createElement(require("./components/baserouter.vue"));
}
<!-- ol-map.vue -->
<template>
<div :style="style"></div>
</template>
<style scoped>
#themap {
width:100%;
height:100%;
margin:0px;
@sombriks
sombriks / NODE_ENV
Created March 29, 2017 01:19
pot-pourri da seleção de perfis através de variáveis de ambiente
// package.json
{
(...)
"scripts": {
"dev": "nodemon index.js",
"staging-dev": "NODE_ENV=staging nodemon index.js"
},
(...)
}
@sombriks
sombriks / atividades-treinamento.md
Last active November 22, 2018 01:59
ciclo básico de treinamento nas tecnologias a serem usadas no dia a dia

Treinamento TECHPAR V1.2.2

Este documento descreve o ciclo básico de treinamentos nas tecnologias hoje empregadas nas soluções desenvolvidas e mantidas pela TECHPAR

O propóstito dos treinamentos é tornar natural os jargões e procedimentos puramente técnicos, de modo que estes não afetem a compreensão e solução dos problemas diários de trabalho.

Espera-se que estes treinamentos tornem aptos para o trabalho os novos membros do time de desenvolvimento da TECHPAR.

O meio de entrega de cada exercício é um reposítório público no github na conta pessoal do colaborador.

<!-- needed by cordova and i-things -->
<meta http-equiv="Content-Security-Policy"
content="default-src * file: ws: wss: gap: 'unsafe-inline' 'unsafe-eval'; img-src * data: blob: http: https: file:">
<!-- better on mobile -->
<meta name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<!-- since cordova serves from file:// we shall help it on encoding isues -->
<meta charset="UTF-8">
@sombriks
sombriks / vscode-settings.json
Created May 30, 2017 03:07
my vscode settings on mustadio
// Place your settings in this file to overwrite the default settings
{
"files.autoSave": "onFocusChange",
"editor.tabSize": 2,
"editor.minimap.enabled": true,
"git.confirmSync": false,
"window.zoomLevel": -1,
"vetur.format.html.wrap_line_length": 80,
"html.format.wrapLineLength": 80,
"vetur.format.html.wrap_attributes": "force-aligned"
@sombriks
sombriks / ArquivoPGM.java
Last active May 30, 2017 23:24
muda a colunagem dum gpm
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Paths;
import java.util.Scanner;
public class ArquivoPGM {
private int altura;
private int largura;
<template>
<div class="pv-card-header">
<md-whiteframe class="row pv-row">
<div class="col-xs-2 start-xs">
<md-avatar>
<img
v-if="!idmedia"
src="img/icon.png"
alt="icon"
>