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 / Jacobi.java
Last active June 24, 2017 01:41
Jacobi method
import java.util.Scanner;
class Jacobi {
public static void main(String args[]) {
double []solucao = new double[10];
double [][]matriz = new double[10][10];
double []resultados = new double[10];
double diagonalDominante = 0;
double soma;
int cont = 0;
#include <iostream>
#include <stdio.h>
#include <string>
#include <cmath>
using namespace std;
// Helpers
int isDivisibleBy3(const string& str) {
int sum = 0;
@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);
#include <stdio.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <math.h>
#define t 640
#define sz 4
#define l 20
@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:

@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 / 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,
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
.
{ _events: [Function],
_eventsCount: [Function],
_maxListeners: [Function],
setMaxListeners: [Function],
getMaxListeners: [Function],
emit: [Function],
addListener: [Function],
on: [Function],
prependListener: [Function],
once: [Function],
#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) {