Initializes the canvas element and fires up the render loop.
Default canvas size is 600x600, you can override it by calling init(true) to make it fill the screen or init(w,h) for a custom width (w) and height (h).
// Smooth Follow from Standard Assets | |
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
using UnityEngine; | |
using System.Collections; | |
public class SmoothFollow : MonoBehaviour { | |
// The target we are following | |
public Transform target; |
using UnityEngine; | |
using System.Collections; | |
public class Sprite2D : MonoBehaviour { | |
public Camera gameCamera; | |
private float initialRotation; | |
void Start() | |
{ |
package main | |
import ( | |
"io/ioutil" | |
"net/http" | |
"html/template" | |
) | |
type ChatLog struct { | |
Content string |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class CameraTracking : MonoBehaviour | |
{ | |
public struct CameraObject | |
{ | |
public GameObject Object; | |
public float Weight; |
/* Global */ | |
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic); | |
* { | |
color: #333; | |
} | |
#logo, .forum-image, .headerbar, .servizi img { | |
display: none; |
// http://events.ccc.de/congress/2011/Fahrplan/attachments/2007_28C3_Effective_DoS_on_web_application_platforms.pdf | |
// Original by pedrox (https://gist.github.com/pedrox/eb8d674bf2b8be63da0f) | |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"strconv" | |
) |
-- If you have Haskell -> ghc money.hs && ./money | |
module Main where | |
-- We use Decimal because it provides us with decent floating point arithmetic. | |
-- Using IEEE 754 (Float) math is bad when we're talking money! | |
import Data.Decimal | |
-- All the kinds of notes and coins we have at our disposal |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
SERVER_USER=<<your ssh user>> | |
SERVER_HOST=<<your ssh server address>> | |
PUBLIC_PATH="<<public url (ie https://myhost/pastes/)>>" | |
SERVER_PATH="<<server path (ie /var/www/pastes/)>>" | |
SERVER_FLAGS="<<additional flags (ex. custom ssh port)>>" |