Skip to content

Instantly share code, notes, and snippets.

View jeyziel's full-sized avatar

jeyziel gama jeyziel

View GitHub Profile
# include <stdlib.h>
# include <stdio.h>
# include <ctype.h>
# include <string.h>
# include <stdbool.h>
# include "valor.h"
# include <sys/stat.h>
FILE *arquivo, *escrita;
int partida = 0;
# include <stdlib.h>
# include <stdio.h>
# include <ctype.h>
# include <string.h>
FILE *arquivo, *escrita;
int partida = 0;
int estado = 0;
```
# coding: utf-8
import csv
from collections import Counter
# 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 reader_column(collumn):
data = []
{learn python}
https://www.quora.com/What-is-an-ideal-checklist-to-learn-Python-in-30-days
https://medium.freecodecamp.org/530-free-online-programming-computer-science-courses-you-can-start-in-may-5e82f5307867
{codechallanges}
https://checkio.org/
https://codewars.org
{videos}
https://www.youtube.com/user/schafer5/playlists
@jeyziel
jeyziel / gist:e9c0d18184be1b92c3b7be305f981653
Last active November 24, 2017 20:08
Expressoes regulares
https://medium.com/@felipemonobe/express%C3%B5es-regulares-em-javascript-libere-o-poder-oculto-na-pr%C3%A1tica-parte-1-2e22910f7af2
https://codeburst.io/javascript-learn-regular-expressions-for-beginners-bb6107015d91
https://medium.freecodecamp.org/regular-expressions-demystified-regex-isnt-as-hard-as-it-looks-617b55cf787
https://medium.com/@matthewmain/regex-javascript-edition-14c531ed572e
https://medium.com/trainingcenter/entendendo-de-uma-vez-por-todas-express%C3%B5es-regulares-parte-1-introdu%C3%A7%C3%A3o-dfe63e289dc3
https://medium.com/@osuissa/regex-para-intervalos-numericos-expressao-regular-c6bbf0c91a24
@jeyziel
jeyziel / exercicio1-3.2.js
Created October 22, 2017 22:36
filtrar apenas os números que sejam resultado de uma raíz cúbica onde o radicando seja ímpar
const pow = ( y ) => ( x ) => Math.pow( x, y )
const cube = pow(3)
const NOT = ( x ) => !x
const isDivisibleBy = ( y ) => ( x ) => NOT( x % y )
const isEven = isDivisibleBy(2)
const isOdd = ( x ) => NOT( isEven( x ) )
@jeyziel
jeyziel / exercicio-1-3.js
Last active October 22, 2017 22:35
filtrar apenas os números que sejam resultado de uma raíz quadrada onde o radicando seja maior que 20
const pow = ( y ) => ( x ) => Math.pow( x, y )
const square = pow(2)
const isGreatThan = ( y ) => ( x ) => x > y
const isGreatThan20 = isGreatThan(20)
const RadicandoGreatThan20 = ( value ) => isGreatThan20( square( value ) )
const list = [1,2,3,4,5,6,7,8,9,10]
@jeyziel
jeyziel / pitagoras.js
Created September 4, 2017 00:20
Teorema de pitagoras
const inverse = ( x ) => x *- 1
const add = ( y ) => ( x ) => x + y
const substract = ( y ) => ( x ) => add( inverse( y ) )( x )
const root = ( y ) => ( x ) => Math.pow( x , 1/y)
const squareRoot = root( 2 )
const multiply = ( y ) => ( x ) => {
@jeyziel
jeyziel / desafio.js
Created September 4, 2017 00:15
Desafio da divisão
const add = ( x ) => ( y ) => x + y
const divide = ( x ) => ( y ) => {
let multiplyfor10 = 0;
const multiply10 = add(10)
const decrement1 = add(-1)
const addFinal = add(0.1)
const decrementY = add(-y)
@jeyziel
jeyziel / divide.js
Created August 24, 2017 21:44
Curso-JavaScript-Super-Sayajin-Nível-1-Módulo-1-exercícios-aula1
const inverse = ( x ) => x *- 1
const add = ( y ) => ( x ) => x + y
const substract = ( y ) => ( x ) => add( inverse( y ) )( x )
const divide = ( y ) => ( x ) => {
let result = 0;
const subX = substract( x )
const add1 = add(1)