Skip to content

Instantly share code, notes, and snippets.

#pragma strict
// Objects to drag in
public var motor : MovementMotor;
public var character : Transform;
public var cursorPrefab : GameObject;
public var joystickPrefab : GameObject;
// Settings
public var cameraSmoothing : float = 0.01;
using UnityEngine;
using System.Collections;
public class PlayerControl : MonoBehaviour
{
[HideInInspector]
public bool facingRight = true; // For determining which way the player is currently facing.
[HideInInspector]
public bool jump = false; // Condition for whether the player should jump.
{
tracks:{
house:[
{
title:"Swimming Pools (Jesse Rose Re-Fix)",
artist:[
"Kendrick Lamar"
],
albumartist:[
var tpl = new Ext.XTemplate(
'<p>Name: {name}</p>',
'<p>Kids: ',
'<tpl for="kids">',
'<tpl if="this.isGirl(name)">',
'<p>Girl: {name} - {age}</p>',
'<tpl else>',
'<p>Boy: {name} - {age}</p>',
'</tpl>',
'<tpl if="this.isBaby(age)">',
@stan229
stan229 / Viewport.js
Last active December 11, 2015 13:58 — forked from dmackerman/Viewport.js
/**
* @class McAfee.view.main.Viewport
* @extends Ext.container.Container
* @author Crysfel Villa <crysfel@moduscreate.com>
*
* Description
*/
Ext.define('McAfee.view.main.Viewport',{
extend : 'Ext.container.Container',
<div class="accordion">
<div class="section">
<div class="header">Header1</div>
<div class="inner">lorem ipsum...</div>
</div>
<div class="section">
<div class="header">Header2</div>
<div class="inner">lorem ipsum 2...</div>
</div>
</div>
@stan229
stan229 / Main.js
Last active December 10, 2015 23:59 — forked from dmackerman/Main.js
Ext.define('Workout.controller.Main', {
extend : 'Ext.app.Controller',
config : {
models: [
'Workout'
],
stores: [
'Workouts'
],
views: [
@stan229
stan229 / gist:4254053
Created December 10, 2012 22:49
preEQ
this.gainNode = this.ac.createGainNode();
this.lowEQ = this.ac.createBiquadFilter();
this.midEQ = this.ac.createBiquadFilter();
this.highEQ = this.ac.createBiquadFilter();
this.lowEQ.type = 3;
this.midEQ.type = 5;
this.highEQ.type = 4;
{
"resultDescription":"Menu result",
"statusCode":0,
"layoutRoot":{
"id":"aef6bfeb-009d-4879-a892-9626c534c8f0",
"root":{
"id":"afbed326-7177-4d6e-a293-d289318012a8",
"storyboardId":"73ffd717-5492-4e46-b397-7556957f25e5_aef6bfeb-009d-4879-a892-9626c534c8f0_afbed326-7177-4d6e-a293-d289318012a8",
"elems":[
{
@stan229
stan229 / Stan B - 7 22 12 TL
Created July 24, 2012 14:08
Stan B - 7 22 12 TL
1) Joris Voorn - Untitled DUB Vol 1
2) Acumen vs Timid Boy - Chicago Story (Oxia reinterpretation mix) (5:40)
3) Christian Smith - NYC (11:40)
4) Depeche Mode - Behind the Wheel (Aril Brikha Edit) (17:20)
5) Markus Mehta, Alec Chizhik - Chaos Theory (Rino Cerrone remix) (25:00)
6) Cirez D - The Tumble (Original Mix) (29:00)
7) Fedde le Grand & Nicky Romero - Slacking (35:00)
8) Wolfgang Gartner vs Axwell - I Found Illmerica (Tom Buster Bootleg) (39:00)
9) Hard Rock Sofa & St. Brothers - Blow Up (Original Mix) (45:00)
10) Michael Woods - Bullet (Original Mix) (50:00)