Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Being Happy

Jonathan Cardoso Machado JCMais

🚀
Being Happy
View GitHub Profile
View RainbowLeds.ino
#include <SPI.h>
#include <Adafruit_WS2801.h>
#include <FastLED.h>
#define ADAFRUIT 1
#define NUM_LEDS 17
#define DATA_PIN 11
#define CLOCK_PIN 13
View keybase.md

Keybase proof

I hereby claim:

  • I am JCMais on github.
  • I am jonathancardoso (https://keybase.io/jonathancardoso) on keybase.
  • I have a public key whose fingerprint is BA38 640E FD59 598A 5ACB F22D A1D2 A6FA 4FD5 02D8

To claim this, I am signing this object:

View gist:1606497
Array.prototype.duplicates = function ( ) {
return this.filter ( function ( x , y , k ) {
return y !== k.lastIndexOf ( x );
});
};
Array.prototype.hasDuplicates = function ( ) {
var me = this;
return me.some ( function ( idx ) {
return me.indexOf( idx ) !== me.lastIndexOf ( idx );
@JCMais
JCMais / README
Created Feb 22, 2012 — forked from joelambert/README
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
View README
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@JCMais
JCMais / LICENSE.txt
Created Jul 7, 2012 — forked from LeverOne/LICENSE.txt
generate random v4 UUIDs (107 bytes)
View LICENSE.txt
DO WTF YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WTF YOU WANT TO PUBLIC LICENSE
@JCMais
JCMais / iteratedLog.js
Created Aug 29, 2012
Javascript implementation of the Itearated Logarithm, just for fun
View iteratedLog.js
/**
* Javascript implementation of the Itearated Logarithm {@link http://en.wikipedia.org/wiki/Iterated_logarithm}
* @author Jonathan Cardoso
*
* @param {Number} n The number to get the iterated logarithm.
* @return {Number}
*/
var iteratedLog = function( n ) {
var result = 0;
View tools-and-blocks.json
{
"tools":{
"axe" : {
"toollist": [
"abyssalcraft:aaxe",
"abyssalcraft:coraxe",
"abyssalcraft:dreadiumaxe",
"abyssalcraft:daxe",
"abyssalcraft:daxe",
"abyssalcraft:ethaxiumaxe",
@JCMais
JCMais / learning.md
Last active Apr 26, 2017 — forked from sibelius/learning.md
Learning Path React Native
View learning.md

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation

@JCMais
JCMais / watchman.js
Created Aug 4, 2017
Fixing https://github.com/facebook/watchman/issues/479, edit jest-haste-map/build/crawlers/watchman.js
View watchman.js
'use strict'; /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
View User.js
// @flow
type User = {
id: string,
name: string,
tags: Tag[],
}
You can’t perform that action at this time.