This file contains hidden or 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
#!/usr/bin/env bash | |
FILE='/etc/hosts' | |
printf "Name your project (lowercase, no-spaces): \n" | |
read NAME | |
function setup_namespace { | |
sed -i .bak -e "s/project/$NAME/g" config/nginx.conf && rm config/*.bak |
This file contains hidden or 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
#!/usr/bin/env bash | |
## | |
# bin/run | |
# author: Ian Golden <[email protected]> | |
# | |
# | |
# Simple bash script to wrap the docker-compose run | |
# prefix for running commands in a dockerized rails | |
# setup. prefixes with docker-compose run bundle |
This file contains hidden or 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
%userprofile%\AppData\Local\Lxss |
This file contains hidden or 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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# |
This file contains hidden or 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; | |
public class ExampleClass : MonoBehaviour { | |
public Rigidbody rb; | |
void Start() { | |
rb = GetComponent<Rigidbody>(); | |
} | |
void OpenParachute() { | |
rb.drag = 20; |
This file contains hidden or 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; | |
public class ExampleClass : MonoBehaviour { | |
public float smooth = 2.0F; | |
public float tiltAngle = 30.0F; | |
void Update() { | |
float tiltAroundZ = Input.GetAxis("Horizontal") * tiltAngle; | |
float tiltAroundX = Input.GetAxis("Vertical") * tiltAngle; | |
Quaternion target = Quaternion.Euler(tiltAroundX, 0, tiltAroundZ); |
This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraHandler : MonoBehaviour { | |
// Represents the main camera | |
GameObject mainCamera; | |
// Update is called once per frame | |
void Update () { | |
if (Input.GetKeyDown(KeyCode.Space)) |
This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class Timer : MonoBehaviour { | |
public Text timerLabel; | |
private float time; |
This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BoxController : MonoBehaviour { | |
public float speed = 10.0F; | |
public float rotationSpeed = 100.0F; | |
void Update() | |
{ |
This file contains hidden or 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
#!/bin/bash | |
apt-get update && apt-get upgrade -y | |
apt-get install git-core build-essential \ | |
pkg-config libtool libevent-dev \ | |
libncurses-dev zlib1g-dev \ | |
automake libssh-dev cmake \ | |
ruby | |
# clone repo, change WORKDIR |