Skip to content

Instantly share code, notes, and snippets.

View fellipec's full-sized avatar
👨‍💻
Coding for fun.

Luiz Fellipe Carneiro fellipec

👨‍💻
Coding for fun.
View GitHub Profile
@fellipec
fellipec / Fibonacci.cs
Created July 21, 2018 16:30
Fibonacci C#
using System;
using System.Numerics;
namespace Fibonacci
{
class Program
{
static void Main(string[] args)
{
BigInteger a = 1;
@fellipec
fellipec / FibonacciPython.py
Created July 21, 2018 16:27
Fibonacci Python
import datetime
a = 1
b = 1
c = 0
i = 0
inicio = datetime.datetime.now()
print("Inicio: " + str(inicio))
@fellipec
fellipec / rover.ks
Last active November 8, 2017 15:03
kOS Rover Cruise Control
// rover.ks
// Written by KK4TEE
// License: GPLv3
//
// This program provides stability assistance
// for manually driven rovers
// GUI, Stability control and other improvements by FellipeC 2017
parameter turnfactor is 8. // Allow for passing the turnfactor for different rovers.
@fellipec
fellipec / fly.ks
Last active November 7, 2017 20:29
kOS Autopilot
// FLY.KS
// Usage: Type 'RUN FLY.' in kOS console for piloting planes.
// For shuttle reentry type 'RUN FLY("SHUTTLE").' in console when shuttle is about 20000 and about over the mountains. Your mileage may vary.
// 2017 FellipeC - Released under https://creativecommons.org/licenses/by-nc/4.0/
PARAMETER KindOfCraft IS "Plane".
CLEARSCREEN.
@fellipec
fellipec / offsetsteering.ks
Last active August 18, 2019 22:13
KOS Offset Steering
FUNCTION OffsetSteering {
// This function is intended to use with shuttles and spaceplanes that have engines not in line with CoM.
// Usage: LOCK STEERING TO OffsetSteering(THEDIRECTIONYOUWANTTOSTEER).
// Example: LOCK STEERING TO OffsetSteering(PROGRADE).
// 2017 FellipeC - Released under https://creativecommons.org/licenses/by-nc/4.0/
PARAMETER DIRTOSTEER. // The direction you want the ship to steer to
LOCAL NEWDIRTOSTEER IS DIRTOSTEER. // Return value. Defaults to original direction.