Skip to content

Instantly share code, notes, and snippets.

View georgelima's full-sized avatar
:shipit:
hey bro, what's up?

George Lima georgelima

:shipit:
hey bro, what's up?
View GitHub Profile
@georgelima
georgelima / gist.js
Last active September 4, 2020 03:59
Cielo QRCode Parser Rec
const barcode = "00020101021226410005Cielo0116123456789012000102082009130352040000530398654120000000001005802BR5905CIELO6014SANTO ANDRE SP801010033”https://www.cielo.com.br/qrcode”011613050329197F190A0212150518113349030410000404000105020006020163049872"
const ID_SIZE = 2
const LENGTH_SIZE = 2
const TRANSACTION_INFO_LENGTH_SIZE = 3
const MERCHANT_ACCOUNT_INFORMATION_ID = '26'
const TRANSACTION_INFORMATION_ID = '80'
const parseQRCode = (barcode, cursor = 0, items = []) => {
#! /bin/bash
set -e
if [ -z "$1" ]; then
echo "Usage: docker-machine-import.sh MACHINE_NAME.zip"
echo ""
echo "Imports an exported machine from a MACHINE_NAME.zip file"
echo "Note: This script requires you to have the same \$MACHINE_STORAGE_PATH/certs available on all host systems"
exit 0
#include <bits/stdc++.h>
#define MAXN 10000009
typedef long long int ll;
using namespace std;
// Função utilitária para inverter um número
int reverse(int n) {
int reversedNumber = 0, remainder;
while(n != 0) {
{ _events: [Function],
_eventsCount: [Function],
_maxListeners: [Function],
setMaxListeners: [Function],
getMaxListeners: [Function],
emit: [Function],
addListener: [Function],
on: [Function],
prependListener: [Function],
once: [Function],
Cisco Internetwork Operating System Software
IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
.
@georgelima
georgelima / side.re
Created November 22, 2018 21:13
side-menu-reducer
reducer: (action, state) =>
switch (action) {
| Open =>
ReasonReact.UpdateWithSideEffects(
{...state, isVisible: true},
(
self => {
Animated.Value.setValue(
self.state.animation,
self.state.direction == Right ? menuWidth : -. menuWidth,
@georgelima
georgelima / action_sheet.re
Last active November 19, 2018 22:31
action sheet
open BsReactNative;
type state = {
isOpen: bool,
animation: Animated.Value.t,
};
type action =
| ChangeVisibility(bool);
@georgelima
georgelima / keybase.md
Created October 30, 2018 14:10
keybase.md

Keybase proof

I hereby claim:

  • I am georgelima on github.
  • I am georgelima (https://keybase.io/georgelima) on keybase.
  • I have a public key ASDS8-WZvI-1Jl9W2cCaq3BNHvr9u9OjytcxNDKxCvcrhwo

To claim this, I am signing this object:

#include <stdio.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <math.h>
#define t 640
#define sz 4
#define l 20
@georgelima
georgelima / gg.cpp
Created April 18, 2018 13:41
OpenGL
#include <GL/glut.h>
#include <stdlib.h>
void init(void);
void display(void);
void keyboard(unsigned char key, int x, int y);
int main(int argc, char** argv){
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);