Skip to content

Instantly share code, notes, and snippets.

View expalmer's full-sized avatar

Palmer Oliveira expalmer

View GitHub Profile
@expalmer
expalmer / script.js
Last active January 21, 2020 17:14
Horas Mensais
(function() {
function timeDiff(start, end) {
var diff = end - start;
var units = [
1000 * 60 * 60 *24,
1000 * 60 * 60,
1000 * 60,
1000
];
@expalmer
expalmer / cloudSettings
Last active March 12, 2020 02:04
VSCode Mac Air
{"lastUpload":"2020-03-12T02:04:08.348Z","extensionVersion":"v3.4.3"}
@expalmer
expalmer / Default%20%28OSX%29.sublime-keymap
Last active December 31, 2019 21:00
SublimeText3 Globo Personal
{
// The Nodejs installation path
"node_path": {
"windows": "node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
// The location to search for a locally installed eslint package.
// These are all relative paths to a project's directory.
@expalmer
expalmer / Default%20%28OSX%29.sublime-keymap
Last active December 30, 2019 20:24
SublimeText3 Globo
{
// The Nodejs installation path
"node_path": {
"windows": "node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
// The location to search for a locally installed eslint package.
// These are all relative paths to a project's directory.
@expalmer
expalmer / cloudSettings
Last active December 30, 2019 20:28
VSCode Globo
{"lastUpload":"2019-12-30T18:07:06.125Z","extensionVersion":"v3.4.3"}
@expalmer
expalmer / t11.c
Last active March 14, 2019 13:53
Sistemas Distribuidos
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int nEp = 1;
int tam = 12;
int n = 4;
int *vA = (int *)malloc(tam * sizeof(int));
import java.io.*;
%%
%byaccj
%{
// Armazena uma referencia para o parser
private Parser yyparser;
@expalmer
expalmer / arquivo.txt
Last active October 3, 2017 15:35
Analisador Léxico
a
a
int
asd
as123
99
99.
99.999
float
real a
@expalmer
expalmer / index.html
Last active August 4, 2017 18:17
Budo + React + ES6 + Babel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>App</title>
</head>
<body>
<div id="app"></div>
<script src="index.js"></script>
</body>
const Box = x => (
{
map: f => Box(f(x)),
fold: f => f(x)
}
);
const splitEvery = (list, n) => {
const result = [];
let idx = 0;