Skip to content

Instantly share code, notes, and snippets.

View stewones's full-sized avatar
🐠
Ship! Ship! Ship!

Stewan Silva stewones

🐠
Ship! Ship! Ship!
View GitHub Profile
let _ = require('lodash');
let games = [
{
name: 'Street Fighter',
year: 1990
},
{
name: 'Mortal Kombat' ,
@stewones
stewones / vscode.md
Created July 17, 2017 12:55
visual studo extensions

formato author.nome-pacote-version

  • HookyQR.beautify-1.1.1/
  • Thavarajan.ionic2-2.4.0/
  • dbaikov.vscode-angular2-component-generator-0.0.3/
  • jgw9617.ionic2-vscode-1.0.0/
  • joelday.docthis-0.4.7/
  • johnpapa.angular2-2.3.3/
  • michelemelluso.code-beautifier-1.7.2/
@stewones
stewones / search.js
Last active July 27, 2017 13:33
search sda 17
const _ = require('lodash');
var games = [{
name: 'Street Fighter',
year: 1990
},
{
name: 'Top Gear',
year: 1992
$breakpoint-alpha: 800px;
.table-search {
display: flex;
padding: 1.3em 1.6em;
input {
font-size: 14px;
flex: 1 1 100%;
box-sizing: border-box;
-webkit-box-flex: 1;
border: none;
::-webkit-scrollbar {
height: 16px;
overflow: visible;
width: 12px;
}
::-webkit-scrollbar-button {
height: 0;
width: 0;
}
@stewones
stewones / gist:6ef7dadac7480faf18395979d5f469fc
Created September 11, 2017 18:52
stewan-io-crawler-log
@SUCCESS: S3 cache cleaned
@SUCCESS: https://stewan.io/?_escaped_fragment_=
@SUCCESS: https://stewan.io/blog?_escaped_fragment_=
@SUCCESS: https://stewan.io/cursos?_escaped_fragment_=
@SUCCESS: https://stewan.io/about?_escaped_fragment_=
@SUCCESS: https://stewan.io/contact?_escaped_fragment_=
@SUCCESS: https://stewan.io/ebooks/guia-definitivo-do-angular?_escaped_fragment_=
@SUCCESS: https://stewan.io/blog/boas-praticas/5-erros-de-padrao-ao-desenvolver-com-angular-js-dicas-para-iniciantes-em-angular/9c9d38ab?_escaped_fragment_=
@SUCCESS: https://stewan.io/blog/tutorial/como-realizar-teste-unitario-de-servico-com-mocha-js-e-angular-js-guia-simples-para-entendimento-sobre-testes-unitarios/a1e01180?_escaped_fragment_=
@SUCCESS: https://stewan.io/blog/comunidade/angular-morris-charts-conquista-100-estrelas-no-github/a865bc0f?_escaped_fragment_=
@stewones
stewones / app.routes.ts
Created October 24, 2017 17:34
aula-8 sda 17
import { RouterModule, Routes } from '@angular/router';
import { HomePageComponent } from "app/pages/home-page/home-page.component";
import { ProductsPageComponent } from "app/pages/products-page/products-page.component";
import { ProductPageComponent } from "app/pages/product-page/product-page.component";
import { Error404PageComponent } from "app/pages/error-404-page/error-404-page.component";
const routes: Routes = [
// home
{
path: '',
@stewones
stewones / distanceTo.ts
Created October 26, 2017 14:19
calc distances
public distanceTo = function(endLat, endLon, startLat, startLon){
endLat = Number(endLat);
endLon = Number(endLon);
startLat = Number(startLat);
startLon = Number(startLon);
var R = 6371e3; // metres
var φ1 = startLat * Math.PI / 180;
{message: "", exception: "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException",…}
exception
:
"Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException"
file
:
"/var/app/current/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
line
:
255
{
"_id" : ObjectId("5ab57fee3a8c50989a1d806b"),
"currency" : "BTC",
"amount" : 0.00281219,
"type" : "buy",
"subtype" : "limited",
"unit_price" : 29500,
"variance" : {
"price" : 29500,
"percent" : 1.03,