Skip to content

Instantly share code, notes, and snippets.

View faustofjunqueira's full-sized avatar
💭
I may be slow to respond.

Fausto Junqueira faustofjunqueira

💭
I may be slow to respond.
  • Universidade Federal do Rio de Janeiro
  • Rio de Janeiro
View GitHub Profile
package maybe
type Maybe[U any] interface {
Has() bool
Map(func(U) U) Maybe[U]
FlatMap(func(U) Maybe[U]) Maybe[U]
OrElse(U) U
OrElseGet(func() U) U
Get() (U, error)
}
/* TheoSystem AntCheat
* Sistema de prevencao a alteracao do stats, feats e skill do arquivo .2da
* Fausto Ferreira Junqueira
* 01/08/2012
* Configurado para check em level 1
* File Name :theo_an_stats
*/
int Anticheat_GetBaseScoreSTR(int iRace) {
if (iRace == RACIAL_TYPE_HALFORC) {
// APLICAÇÂO EM NODEJS
const http = require('http');
const APIKey = <YOURAPIKEY como string>
const hostExterno = 'redmine.radixeng.com.br';
const hostInterno = '192.168.7.55';
const host = hostInterno;
// APLICAÇÂO EM NODEJS
const http = require('http');
const APIKey = "072c7dec10dd993bb47b5d7ffe9f5a60418b635a"
const datas = [
['2018-06-20', 39127],
['2018-06-21', 39127],
['2018-06-22', 39127],
taskkill /IM WebDev.WebServer20.EXE
taskkill /IM WebDev.WebServer40.EXE
@faustofjunqueira
faustofjunqueira / horario_ponto.js
Last active October 28, 2019 15:04
adicionado ferias
//https://pontoweb.nasajon.com.br/radix/colaborador/ajustes/criar
// TODO, verificar se esta na tela correta!
///////// Util
function addHour(originalHour, minutesToAdd) {
let [hour, minute] = originalHour.split(':');
minute = Number(minute);
hour = Number(hour);
DROP TABLE IF EXISTS iris;
CREATE TABLE iris(
sepal_l FLOAT,
sepal_w FLOAT,
petal_l FLOAT,
petal_w FLOAT,
class VARCHAR(20)
);
insert into iris(sepal_l, sepal_w, petal_l, petal_w, class) values (5.1,3.5,1.4,0.2,'Iris-setosa');