Skip to content

Instantly share code, notes, and snippets.

View Sposito's full-sized avatar

Sposito Sposito

View GitHub Profile
public void Step()
{
float dx2 = position.x - orbitParent.position.x;
dx2 *= dx2;
var time = Time.deltaTime;
float dy2 = position.y - orbitParent.position.y;
dy2 *= dy2;
var r2 = dx2 + dy2;
@Sposito
Sposito / sentences-list
Last active July 28, 2017 13:10
given under cc0
I can't assure you such things.
Caramels are the best.
Hasn't your sister asked you that?
Peter's boyfriend just got a new job.
My dream is to see a polar bear.
There were monkeys all over the temple.
Last time I was in Australia Anne was in diapers.
My uncle is from Brazil and he is a data scientist.
Your favorite band has a female singer.
Grocery shops have never been so expensive.
// >>>>>>>>>>>>Player Controller.cs<<<<<<<<<<
//...
public void BoostSpeed(float duration, float factor){
StartCoroutine (BoostCoroutine(duration,factor));
}
private IEnumerator BoostCoroutine(float duration, float factor){
boostFactor *= factor;
//FreeCodeCamp solution by Thiago Sposito
/// ###################### STEAMROLER #####################################
function steamrollArray(arr) {
// I'm a steamroller, baby
var result = [];
recursiveDigger(arr);
return result;
@Sposito
Sposito / CheckWord.cs
Last active January 6, 2016 02:34
using a for instead
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CheckWord : MonoBehaviour {
public string testSpeach = "Gire para a direita"; // texto de teste
public List<string> actions; //lista com as ações que podem ser usadas
void Update () {