Skip to content

Instantly share code, notes, and snippets.

Horácio Dias Baptista Neto nenodias

Block or report user

Report or block nenodias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nenodias
nenodias / index.html
Created Jun 25, 2019
Exemplo Backbone
View index.html
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
<div id="app"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
@nenodias
nenodias / index.html
Created Jun 7, 2019
Blog with Metho UI?
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>As Dev I'll</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- For initialized after mounted -->
<!-- <meta name="metro4:init" content="false"> -->
View ajustado.py
import sys
ALPHABET = ' abcdefghijklmnopqrstuvwxyz'
ROOT = '3'
def decrypt(message):
m = ''
@nenodias
nenodias / main.rs
Created May 31, 2019
Example Rust Input data on terminal
View main.rs
use std::io;
fn input(mensagem: &'static str) -> String {
println!("{}", mensagem);
let mut input: String = "".to_string();
io::stdin().read_line(&mut input).unwrap();
input.truncate(input.len() - 1);//Remove \n
input
}
View ExemploSemVetor.pas
Program Pzim ;
var
nota1, nota2, nota3, nota4: integer;
nome: string;
Begin
writeln('Digite seu nome:');
read(nome);
writeln('Digite a 1ª nota:');
read(nota1);
writeln('Digite a 2ª nota:');
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Canvas</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
View index.js
'use strict';
const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const basename = path.basename(__filename);
const env = process.env.NODE_ENV || 'development';
const config = require(__dirname + '/../config/config.json')[env];
const db = {};
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css" />
@nenodias
nenodias / main.py
Created Mar 2, 2019
AceleraDev Python para Web - Processe dados dos jogadores do FIFA© 2017 usando Python
View main.py
# coding: utf-8
import csv
import collections
import functools
# Todas as perguntas são referentes ao arquivo `data.csv`
# Você ** não ** pode utilizar o pandas e nem o numpy para este desafio.
def gen_csv():
def fn():
with open('data.csv', 'r') as f:
View verify-token.resolver-errado.ts
import * as jwt from 'jsonwebtoken';
import { GraphQLFieldResolver } from "graphql";
import { ComposableResolver } from "./composable.resolver";
import { ResolverContext } from "../../interfaces/ResolverContextInterface";
import { JWT_SECRET } from '../../utils/utils';
export const verifyTokenResolver: ComposableResolver<any, ResolverContext> =
(resolver: GraphQLFieldResolver<any, ResolverContext>): GraphQLFieldResolver<any, ResolverContext> => {
You can’t perform that action at this time.