Skip to content

Instantly share code, notes, and snippets.

View requeijaum's full-sized avatar

Rafael Requião requeijaum

  • Salvador, BA - Brazil
View GitHub Profile
@requeijaum
requeijaum / sheila_hapvida.c
Last active February 17, 2018 05:22
Rascunho de questão de CPD para ajudar Karen
//Rafael Requiao @ 16fev2018
//Questao que Karen enviou
//Nao usar acentos - pode cagar por conta da codificacao errada do texto
//includes gerais do C para Terminal de Texto
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
@requeijaum
requeijaum / md+tex_math.md
Last active February 20, 2018 00:04
Markdown + TeX Math

Se o suporte de TeX Math estiver ativado, esta é a equação quadrática:

$$ -b \pm \sqrt{b^2 - 4ac} \over 2a $$

rendered equation

CREATE TABLE student_grades (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
number_grade INTEGER,
fraction_completed REAL,
percent_completed INTEGER);
INSERT INTO student_grades (name, number_grade, fraction_completed, percent_completed)
VALUES ("Winston", 90, 0.805, 0);
CREATE TABLE student_grades (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
number_grade INTEGER,
fraction_completed REAL,
percent_completed INTEGER);
INSERT INTO student_grades (name, number_grade, fraction_completed, percent_completed)
VALUES ("Winston", 90, 0.805, 0);
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.IOException: Foi feita uma tentativa de mover o ponteiro do arquivo para antes do início do arquivo.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
#!/bin/sh
# https://gist.github.com/clayton/6196167#gistcomment-2369474
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-libass --with-librsvg --with-libsoxr --with-libssh --with-tesseract --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-tools --with-webp --with-x265 --with-xz --with-zeromq --with-zimg --with-libopus
@requeijaum
requeijaum / index.js
Created April 1, 2018 01:14 — forked from sergiopvilar/index.js
Script para baixar livros do site http://lelivros.li/
/*
* lelivros
* user/repo
*
* Copyright (c) 2014 Sérgio Vilar
* Licensed under the MIT license.
*/
'use strict';
Pfvr, me ajude a resumir os itens "Habilidades Simbólicas" e "orientações para uma comunicação verbal eficaz", são do cap 4 - vão da pagina 20 até a 26 no pdf.
E se possível foque nessas 2 perguntas pq ai ja adianta mais ainda meu lado
2 - Quais habilidades são possíveis graças à utilização de símbolos pelos seres humanos?
5 - Como você pode melhorar a sua comunicação verbal?
-------------------------------------------
CAPÍTULO 4
@requeijaum
requeijaum / uvc_cap.py
Created April 21, 2018 18:51 — forked from gretel/uvc_cap.py
hack to display video stream from usb connected camera (via libuvc, pyuvc, pygame)
# https://gist.github.com/gretel/73fb72ff48db4cfea71a650f4cc72ba7
# based on example at https://github.com/pupil-labs/pyuvc
# install libuvc and pyuvc - see https://github.com/pupil-labs/pyuvc/blob/master/README.md
# install pygame (pip install pygame)
import uvc
import sys
import logging
import pygame
from pygame.locals import *