- JavaScript
- The language
- Data structures
- [Array/stack/queue][Array]
- [Object/map][Object]
- Loops
- [
for
][for]/[while
][while]
- [
- Data structures
- The language
- [
for in
][for in]
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>less.js bug #843: minimal case to produce error</title> | |
</head> | |
<body> | |
<link rel="stylesheet/less" type="text/css" href="styles_bug843.less"> | |
<script src="http://lesscss.googlecode.com/files/less-1.3.0.min.js" type="text/javascript"></script> | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>less.js bug #843: working at2x mixin</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
</head> | |
<body> | |
<link rel="stylesheet/less" type="text/css" href="styles.less"> | |
<script src="http://lesscss.googlecode.com/files/less-1.3.0.min.js" type="text/javascript"></script> |
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// External tasks | |
grunt.loadNpmTasks('grunt-mocha'); | |
grunt.initConfig({ | |
// Configure | |
mocha: { | |
cui: { |
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
/* | |
* Hammer.JS | |
* version 0.6.3 | |
* author: Eight Media | |
* https://github.com/EightMedia/hammer.js | |
* Licensed under the MIT license. | |
*/ | |
function Hammer(element, options, undefined) | |
{ | |
var self = this; |
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 xRot = gamepad.y; | |
var yRot = gamepad.x; | |
// Rotate X relative to model axis | |
object.matrix.rotateX(xRot); | |
// Rotate Y relative to world axis | |
var axis = new THREE.Vector3(0,1,0); | |
var rotWorldMatrix = new THREE.Matrix4(); | |
rotWorldMatrix.makeRotationAxis(axis.normalize(), yRot); |
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 gulp = require('gulp'); | |
var es = require('event-stream'); | |
function plugalug() { | |
function queue(file) { | |
if (typeof file === 'undefined') { | |
throw new Error('File was undefined!'); | |
} | |
} | |
function end() { |
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 gulp = require('gulp'); | |
var es = require('event-stream'); | |
function plugalug() { | |
return es.map(function(file) { | |
if (typeof file === 'undefined') { | |
throw new Error('File was undefined!'); | |
} | |
}); | |
} |
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 gulp = require('gulp'); | |
var es = require('event-stream'); | |
function plugalug() { | |
return es.map(function(file) { | |
if (typeof file === 'undefined') { | |
console.trace(); | |
throw new Error('File was undefined!'); | |
} | |
}); |
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 gulp = require('gulp'); | |
var es = require('event-stream'); | |
var path = require('path'); | |
var filePath = path.join(__dirname, 'gulpfile.js'); | |
var expectedFile; | |
function plugalug() { | |
return es.map(function(file, cb) { | |
if (typeof file === 'undefined') { |
OlderNewer