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 SlowTimeOnClick : MonoBehaviour { | |
void Update() { | |
if (Input.GetButtonDown("Fire1")) { | |
if (Time.timeScale == 1.0F) | |
Time.timeScale = 0.7F; | |
else | |
Time.timeScale = 1.0F; |
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 Spectrum : MonoBehaviour { | |
public AudioSource song; | |
public GameObject cube; | |
float[] historyBuffer = new float[43]; | |
// Use this for initialization |
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
http://wiki.unity3d.com/index.php/CameraGradientBackground | |
http://wiki.unity3d.com/index.php/ScreenWipes | |
http://wiki.unity3d.com/index.php/SmoothLookFrame | |
http://wiki.unity3d.com/index.php/SmoothMouseLook |
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
# First, ignore everything | |
* | |
# Now, whitelist anything that's a directory | |
!*/ | |
# And all the file types you're interested in. | |
!angular.min.js | |
!angular-animate.min.js | |
!angular-aria.min.js | |
!angular-material.min.js | |
!angular-touch.min.js |
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
// see what you have installed globally | |
npm ls -g --depth 0 | |
//quickly scss compile files | |
$ node-sass site.scss site.css | |
//or | |
$ node-sass /dir /out |
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
INSTALL | |
electron-reload | |
electron-packager | |
aurelia-cli | |
FROM https://github.com/MeirionHughes/aurelia-cli-electron-app | |
======================================================================= | |
git clone <...> |
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
.animate { | |
-webkit-transition: all 1s ease-in-out; | |
-moz-transition: all 1s ease-in-out; | |
transition: all 1s ease-in-out; | |
} | |
.animate-opacity { | |
-webkit-transition: opacity 0.1s ease-out; | |
-moz-transition: opacity 0.1s ease-out; | |
transition: opacity 0.1s ease-out; |
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
'use strict'; | |
angular.module('someApp').directive('simpleAffix', ['$window',function ($window) { | |
return { | |
scope: { | |
onAffix: "&", | |
onUnaffix: "&", | |
affixHeight:"=" | |
}, | |
restrict: 'A', | |
link: function (scope, element, attrs) |
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
'use strict'; | |
angular.module('someApp').directive('bindHtml', ['$window', function () { | |
return function(scope, element, attr) { | |
element.addClass('ng-binding').data('$binding', attr.bindHtml); | |
scope.$watch(attr.bindHtml, function bindHtmlWatchHandler(value) { | |
element.html(value || ''); | |
}); | |
} | |
}]); |
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
angular.module('someApp') | |
.service('JsonDataService', function () { | |
return { | |
init: function () { | |
var thisService = this; | |
var xobj = new XMLHttpRequest(); | |
xobj.overrideMimeType("application/json"); | |
xobj.open('GET', './app/data/cm-ux-guide-data.json', true); | |
xobj.onreadystatechange = function () { |
OlderNewer