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 matcher = (description =~ /Tam\.: (\d+) a (\d+)/) | |
if (matcher.size()) { | |
matcher.getAt(0) // <- this is required... without it, first = -1 always... | |
println(matcher.group(1)) |
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
using UnityEngine; | |
public class OrbitalCamera : MonoBehaviour { | |
public GameObject lookAt; | |
public float followSpeed = 3.5f; | |
public float minAngle = -45.0f; | |
public float maxAngle = 60.0f; |
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
using UnityEngine; | |
public class PlayerMovement : MonoBehaviour { | |
public Camera playerCamera = null; | |
public Animator animator = null; | |
public float moveSpeed = 5.0f; | |
public float crouchedMoveSpeed = 2.5f; | |
public float rotationSpeed = 5.0f; |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Generator : MonoBehaviour { | |
public int height = 1000; | |
public int width = 1000; | |
public float noiseScale = 500.0f; |
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
using UnityEngine; | |
public class CarMovement : MonoBehaviour { | |
public WheelCollider rl = null; | |
public WheelCollider rr = null; | |
public WheelCollider fl = null; | |
public WheelCollider fr = null; | |
public float torque = 10.0f; |
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
package com.cgbros.silkhub.activity.listener | |
import android.widget.TextView | |
import com.cgbros.silkhub.R | |
import com.cgbros.silkhub.activity.LoginActivity | |
import com.google.firebase.database.FirebaseDatabase | |
import org.junit.After | |
import org.junit.Assert.assertEquals | |
import org.junit.Before | |
import org.junit.Test |
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
#pragma strict | |
var focus: GameObject; | |
private var orbitVector: Vector3; | |
private var moveX = 0; | |
private var moveY = 0; | |
function Update () { |
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 helloHandler = { Message message -> | |
def thread = Thread.currentThread() | |
println "HelloVerticle.helloHandler: $thread.id" | |
def name = message.body() | |
def now = new SimpleDateFormat().format(new Date()) | |
def task = new TimerTask() { | |
@Override | |
void run() { |