Skip to content

Instantly share code, notes, and snippets.

View wsricardo's full-sized avatar
🏠
Working from home in Rural City.

Wandeson Ricardo wsricardo

🏠
Working from home in Rural City.
View GitHub Profile
@wsricardo
wsricardo / imagergb.py
Last active July 10, 2017 16:20
Python Image RGB Matrix
#!/usr/bin/env python
# Python 2
image = lambda m,n: map(lambda k:
map(lambda i: {'r':0,'g':0,'b':0}, range(n)),
range(m))
@wsricardo
wsricardo / m.c
Last active April 6, 2017 14:21
switch comandos
/*
* Author: Wandeson Ricardo
* Blog: wanartsci.blogspot.com
* gaenos.wordpress.com
* Correções feitas no código de acordo com comentários e linhas de comando comentadas
* Links (fonte para correções):
* https://www.ime.usp.br/~pf/algoritmos/aulas/io.html
* https://programacaodescomplicada.wordpress.com/2013/01/08/aula-81-limpar-o-buffer/
* http://www.cprogressivo.net/2012/12/Buffer--o-que-e-como-limpar-e-as-funcoes-fflush-e-fpurge.html
*
@wsricardo
wsricardo / Readme.MD
Last active July 12, 2017 15:49
RPG Esquema - Esqueleto & Molde para Criar Game

#Descrição do RPG estrutura

@wsricardo
wsricardo / README.md
Last active June 27, 2017 02:14
EXAMPLE - Work Structs, Typedef Dinamic Allocation And Pointers For Structs

EXAMPLES C
Pointers, structs, typedef and memory allocations.

@wsricardo
wsricardo / PyCodes.md
Last active June 29, 2017 01:27
PyCodes

PyCodes
Snnipets of python codes. Pequenos códigos python.

@wsricardo
wsricardo / flambdadic.py
Created July 3, 2017 15:18
Function lambda and dicts + list
(lambda chave: [dict(key='Conhecimento', value=chave), [i for i in 'Conhecimento Além Da Janela'] ])('progresson humano')
@wsricardo
wsricardo / versosmix.py
Created July 4, 2017 00:56
Manipulando textos Exemplo 01- Trecho de música de Luis Gonzaga
#!/usr/bin/python3 -tt
#-*- coding: utf-8 -*-
# Author: Wandeson Ricardo
# Page: wsricardo.github.io
# Blog: wanartsci.blogspot.com
import re
import pprint
from pprint import *
@wsricardo
wsricardo / indMatrix.py
Last active July 10, 2017 16:19
Indentity Matrix in Python
m, n = 3 , 3
# Create matrix
# B = [ [ 0 for i in range(m)] for j in range(n) ]
A = [ [ 1 if i==j else 0 for i in range(m)] for j in range(n)]
# Output: >>> [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
print('\n',A[0],'\n',A[1],'\n',A[2],'\n')
#!/usr/bin/python3
import sys
import time
import pprint
import requests
# Tutotrial biblioteca 'requests' do Python
# http://docs.python-requests.org/en/master/user/quickstart/
# Video tutoriais https://www.youtube.com/watch?v=2Co4cjPMTnk&index=12&list=PLp95aw034Wn_WtEmlepaDrw8FU8R5azcm
# Tutorial (inglês) http://zetcode.com/web/pythonrequests/
@wsricardo
wsricardo / EstudosSamplesPy.md
Last active August 13, 2017 21:35
Estudos de linguagem python e Snippets Codes

Estudos de Python - Exemplo e Snippets