This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __Geometria_Alynva__ | |
#define __Geometria_Alynva__ | |
namespace GeoA { | |
const double TWO_PI = 6.28318530717958647693; | |
const double PI = 3.14159265358979323846; | |
const double HALF_PI = 1.57079632679489661923; | |
const double QUARTER_PI = 0.7853982; | |
double random(); // [0.0 .. 1.0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*My personal project of a library that includes different types of template container structures. | |
Basically a rework of C++'s STL. | |
It is an open source project and so if you feel like contributing to it(testing, fixing and/or adding new stuff) just send me an | |
email with the subject "data structures gist contribution" listing what you did or want to do and I'll have it added with due | |
credit (just check my profile for the email address). | |
Biblioteca criada para o uso de diferentes tipos abstratos de dados dinâmicos, | |
partindo do conceito de listas encadeadas para posterior reuso em projetos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main() { | |
// Declaração de variáveis | |
char *dado = NULL; | |
char tabuleiro[3][3]; | |
// Inicialização do tabuleiro | |
tabuleiro[0][0] = '-'; tabuleiro[0][1] = '-'; tabuleiro[0][2] = '-'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> // std::string | |
#include <iostream> // std::cout | |
#include <sstream> // std::ostringstream | |
using namespace std; | |
template <typename T> | |
string to_string ( T Number ) { | |
string Result; | |
ostringstream convert; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Autor: | |
Alisson Nunes V. A. (www.alynva.com) | |
Descrição: | |
Este algoritmo foi desenvolvido com | |
o propósito de analisar duas listas de | |
stings ORDENADAS e retornar outra lista | |
que contém as strings que pertence | |
simultaneamente às duas listas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Trabalho de Inteligência Artificial - Projeto 1 (BCC/UFSCar/2018) | |
% Autor: Alisson Nunes (R.A.: 725862) | |
:- write_ln('[MAPA 1 CARREGADO]'). | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
ladrao([10, 5]) :- !. | |
policial([10, 1]) :- !. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const keyCodes = { | |
0: 'That key has no keycode', | |
3: 'break', | |
8: 'backspace / delete', | |
9: 'tab', | |
12: 'clear', | |
13: 'enter', | |
16: 'shift', | |
17: 'ctrl', | |
18: 'alt', |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"substancia":"CITRATO DE CLOMIFENO","laboratorio":"MEDLEY FARMACÊUTICA LTDA","ean1":"7896422513098","produto":"CLOMID","apresentacao":"50 MG COM CT BL AL PLAS INC X 10","tipo":"Novo (Referência)","tarja":"Tarja Vermelha","nForma":"comprimido","nApresentacao":"50 MG","nQtd":"10"},{"substancia":"ESTRADIOL HEMI-HIDRATADO","laboratorio":"TEVA FARMACÊUTICA LTDA.","ean1":"7898919603138","produto":"ESTREVA","apresentacao":"0,1 PCC GEL CT CART FR PLAS OP X 50 G","tipo":"Novo (Referência)","tarja":"Tarja Vermelha"},{"substancia":"RISPERIDONA","laboratorio":"RANBAXY FARMACÊUTICA LTDA","ean1":"7897076920966","produto":"RISPERIDONA","apresentacao":"2 MG COM REV CT BL AL PLAS TRANS X 500","tipo":"Genérico","tarja":"Tarja Vermelha","nForma":"comprimido","nApresentacao":"2 MG","nQtd":"500"},{"substancia":"BESILATO DE LEVANLODIPINO","laboratorio":"EMS S/A","ean1":"7896004763255","produto":"ATELOP","apresentacao":"5 MG COM CT BL AL PLAS OPC X 30","tipo":"Similar","tarja":"Tarja Vermelha","nForma":"comprimido","nApresentacao |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from "react"; | |
import ReactDOM from 'react-dom'; | |
import { useRefCallback } from "../utils"; | |
export default function MasonryPage({children, numCols = 2}) { | |
const [masonryRef, setMasonryRef] = useRefCallback() | |
useEffect(() => { | |
const colHeights = Array(numCols).fill(0) | |
const container = ReactDOM.findDOMNode(masonryRef.current) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
var admin = require("firebase-admin"); | |
const cookieParser = require('cookie-parser'); | |
const crypto = require('crypto'); | |
var serviceAccount = require("./service-account.json"); | |
const APP_NAME = "twitch-playground"; | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), |