Skip to content

Instantly share code, notes, and snippets.

Avatar

Palmer Oliveira expalmer

View GitHub Profile
@expalmer
expalmer / script.js
Last active Jan 21, 2020
Horas Mensais
View script.js
(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 Mar 12, 2020
VSCode Mac Air
View cloudSettings
{"lastUpload":"2020-03-12T02:04:08.348Z","extensionVersion":"v3.4.3"}
@expalmer
expalmer / Default%20%28OSX%29.sublime-keymap
Last active Dec 31, 2019
SublimeText3 Globo Personal
View Default%20%28OSX%29.sublime-keymap
{
// 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.
View Default%20%28OSX%29.sublime-keymap
{
// 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.
View cloudSettings
{"lastUpload":"2019-12-30T18:07:06.125Z","extensionVersion":"v3.4.3"}
@expalmer
expalmer / t11.c
Last active Mar 14, 2019
Sistemas Distribuidos
View t11.c
#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));
View parserLexico.jflex
import java.io.*;
%%
%byaccj
%{
// Armazena uma referencia para o parser
private Parser yyparser;
@expalmer
expalmer / arquivo.txt
Last active Oct 3, 2017
Analisador Léxico
View arquivo.txt
a
a
int
asd
as123
99
99.
99.999
float
real a
@expalmer
expalmer / index.html
Last active Aug 4, 2017
Budo + React + ES6 + Babel
View index.html
<!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>
View index.js
const Box = x => (
{
map: f => Box(f(x)),
fold: f => f(x)
}
);
const splitEvery = (list, n) => {
const result = [];
let idx = 0;
You can’t perform that action at this time.