This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <RTClib.h> | |
#include <SD.h> | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'RMagick' | |
include Magick | |
img = Image.new(1000,1000) | |
def fib_arr(num) | |
return [1] if num == 1 | |
return [1,1] if num == 2 | |
nums = fib_arr(num-1) | |
return nums + [nums[-1] + nums[-2]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reverse(num) | |
return num if num < 10 | |
return (num % 10) * 10 ** Math.log10(num).floor + reverse(num/10) | |
end |
NewerOlder