This file contains 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
-sass: { | |
- files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'], | |
- tasks: ['sass:server', 'autoprefixer'] | |
-} | |
+compass: { | |
+ files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'], | |
+ tasks: ['compass:server', 'autoprefixer'] | |
+} | |
... |
This file contains 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
Regular expression cheat sheet for Varnish | |
Varnish regular expressions are NOT case sensitive. Varnish uses POSIX | |
regular expressions, for a complete guide, see: "man 7 regex" | |
Basic matching: | |
req.url ~ "searchterm" | |
True if req.url contains "searchterm" anywhere. | |
req.url == "searchterm" |
This file contains 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
; Register Style Plugin directory | |
plugins[panels][styles] = panels/styles |
This file contains 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
var grunt = require('grunt'); | |
/** | |
* Prompt, utility to configure and run grunt-prompt. | |
* @see https://github.com/dylang/grunt-prompt | |
* | |
* @example | |
* var prompt = require('prompt'); | |
* prompt('create-component') | |
* .addQuestion({ |
This file contains 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
(function (window) { | |
var controller = window.controller = new Leap.Controller(); | |
console.log('controller made', controller); | |
controller.on('error', function (err) { | |
console.log('leap error: ', err); | |
}) | |
controller.on('connect', function () { | |
console.log('connection made'); | |
}); | |
var errr = false; |
This file contains 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; | |
public class LeapManagerWeb : MonoBehaviour | |
{ | |
public GameObject cursor; | |
private static LeapManagerWeb manager; | |
private static LightedPodium lockedPodium = null; | |
public GameObject ceilingLight, fillLight, topLight; |
This file contains 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
@import "retina.less"; | |
.body-text { | |
.retina-font-weight(); | |
} |
This file contains 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
@mixin retina($ratio: 1.5) { | |
$dpi: $ratio * 96; | |
$opera-ratio: $ratio * 100; | |
@media only screen and (-webkit-min-device-pixel-ratio: #{$ratio}), | |
only screen and ( -o-min-device-pixel-ratio: '#{$opera-ratio}/100'), | |
only screen and ( min-resolution: #{$dpi}dpi), | |
only screen and ( min-resolution: #{$ratio}dppx) { | |
@content; | |
} |
This file contains 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
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement | |
// for using the mouse displacement for calculating the amount of camera movement and panning code. | |
using UnityEngine; | |
using System.Collections; | |
public class MoveCamera : MonoBehaviour | |
{ | |
// | |
// VARIABLES |