Skip to content

Instantly share code, notes, and snippets.

View camisetags's full-sized avatar
🎱
playing around with code

Gabriel Seixas camisetags

🎱
playing around with code
View GitHub Profile
/**
* Metodo de resolução de sistemas de gauss
* */
var inputMatrix = [
[ 0.5, -1, 1, 6],
[ 3, 2, 1, 8],
[ 5, -1, -3, -1]
];
@camisetags
camisetags / gauss_jacobi.js
Last active August 29, 2015 14:08
gauss_jacobi.js
/**
* Algoritmo de jacobi e gauss boladao
*/
// metodo para trabalhar melhor com Arrays multidimensional
Array.prototype.makeMatrix = function (d1, d2) {
var arr = [];
for(i = 0; i < d2; i++) {
arr.push(new Array(d1));
}
@camisetags
camisetags / gauss_seidel_newton.js
Last active August 29, 2015 14:09
gauss_seidel_newton.js
var gaussSeidel = function (matrix) {
var array = new Array;
var count = new Array;
length = matrix.length;
for (var i = 0; i < length; i++) {
array.push(0);
count.push(0);
}
@camisetags
camisetags / euler.html
Created March 10, 2015 21:27
euler.js
<!DOCTYPE html>
<html>
<head>
<title>25.6</title>
<script>
var xi = 0,
xf = 4,
x = xi,
y = 1;
@camisetags
camisetags / cafeteira.c
Last active August 29, 2015 14:17
Cafeteira arduino
#define RED 33
#define GREEN 32
#define echoPin 40
#define trigPin 41
int maximumRange = 200;
int minimumRange = 50;
long duration, distance;
@camisetags
camisetags / packages_list.txt
Last active October 28, 2020 19:42
Atom packages list
KeyCount@0.1.1
Lucario@1.0.2
MagicPython@0.5.15
Stylus@3.0.0
an-old-hope-syntax@0.5.0
atom-autocomplete-php@0.19.4
atom-beautify@0.29.12
atom-ctags@5.0.0
atom-django@0.3.2
atom-material-syntax@0.4.6
# coding=utf-8
extense = [{ '0': ' ', '1': 'cento', '2': 'duzentos', '3': 'trezentos',
'4': 'quatrocentos', '5': 'quinhentos ', '6': 'seiscentos', '7': 'setecentos',
'8': 'oitocentos', '9': 'novecentos', '': ' ', ' ': ' '
}, {
'0': ' ', '2': 'vinte', '3': 'trinta', '4': 'quarenta', '5': 'cinquenta',
'6': 'sessenta', '7': 'setenta', '8': 'oitenta', '9': 'noventa',
'': ' ', ' ': ' '
}, {
@camisetags
camisetags / README.md
Created February 16, 2017 01:06 — forked from erichrobinson/README.md
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
@camisetags
camisetags / cloudSettings
Last active July 7, 2021 23:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-07T23:43:49.149Z","extensionVersion":"v3.4.3"}
@camisetags
camisetags / produce_consumer.py
Created May 23, 2018 14:42
producer-consumer-asyncio
import asyncio
import random
async def produce(queue, n):
for x in range(n):
# produce an item
print('producing {}/{}'.format(x, n))
# simulate i/o operation using sleep
await asyncio.sleep(random.random())