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 | |
| ### BEGIN INIT INFO | |
| # Provides: APPLICATION | |
| # Required-Start: $all | |
| # Required-Stop: $network $local_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start the APPLICATION unicorns at boot | |
| # Description: Enable APPLICATION at boot time. | |
| ### END INIT INFO |
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
| #include <windows.h> | |
| #include <stdio.h> | |
| #define DIRECTINPUT_VERSION 0x0800 | |
| #include <dinput.h> | |
| #pragma comment(lib, "dinput8.lib") | |
| #pragma comment(lib, "dxguid.lib") | |
| class DiJoyStick { | |
| public: |
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 UnityEditor; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class EditorWindowExample : EditorWindow | |
| { | |
| List<Node> nodes = new List<Node> (); |
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
| require 'active_record' | |
| require 'activerecord-import' | |
| require 'benchmark' | |
| require 'pg' | |
| include ActiveRecord | |
| Base.establish_connection adapter: 'postgresql', | |
| encoding: 'unicode', | |
| pool: 5, |
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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Scroller | |
| { | |
| public float maxDragSpeed = 20.0f; //maximum drag speed | |
| public float edgeSquish = 60.0f; //how far to go past the end | |
| public float edgeBounce = 0.19f; //how much force to use to bounce back | |
| public float strongFriction = 0.75f; //used to bring it to a stop quicker |
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; | |
| using System.Collections.Generic; | |
| [RequireComponent( typeof( ParticleSystem ) )] | |
| public class ParticleFlock : MonoBehaviour | |
| { | |
| public Vector3 targetPosition; | |
| public int totalBoids = 15; |
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
| // Usage: | |
| // - stick the Vector3Editor.cs file in the Editor folder of your project | |
| // - create a class with a Vector3 or Vector3[] property (you probably already have plenty of them. The WarpZone class below is a simple example) | |
| // - create an editor script for any the class that you want to be able to edit extending Vector3Editor (see WarpZoneEditor below) | |
| // - in OnEnable simply call setup() with your property names and optional labels | |
| using UnityEngine; | |
| using UnityEditor; |
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.Linq; | |
| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| using Debug = UnityEngine.Debug; | |
| using Object = UnityEngine.Object; | |
| using Random = UnityEngine.Random; | |
| using UnityEngine.EventSystems; | |
| using UnityEngine.Events; |
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
| Shader "Custom/WaveExplo" { | |
| Properties { | |
| _MainTex ("", 2D) = "white" {} | |
| _CenterX ("CenterX", Range(-1,2)) = 0.5 | |
| _CenterY ("CenterY", Range(-1,2)) = 0.5 | |
| _Radius ("Radius", Range(-1,1)) = 0.2 | |
| _Amplitude ("Amplitude", Range(-10,10)) = 0.05 | |
| } | |
| SubShader { |
OlderNewer