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
// eslint-disable-next-line func-names, no-underscore-dangle | |
this.engine._readTexturePixelsSync = function (texture, width, height, faceIndex, level, buffer, flushRenderer, noDataConversion) { | |
if (texture._hardwareTexture | |
&& texture._hardwareTexture.underlyingResource | |
&& texture._hardwareTexture.underlyingResource.__SPECTOR_Object_CustomData) { | |
const t = texture._hardwareTexture.underlyingResource; | |
// eslint-disable-next-line | |
console.log(`Exporting texture id ${t.__SPECTOR_Object_TAG.id}, format ${t.__SPECTOR_Object_CustomData.format}, compressed ${t.__SPECTOR_Object_CustomData.isCompressed}`); | |
} |
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 s=document.createElement('script');s.src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js';document.head.appendChild(s); |
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
// Minimal nodejs dependency injection | |
// ----------------------------------- | |
// Basic module, still basic node/commonjs, some_module.js: | |
// | |
// module.exports = {}; | |
// | |
// Dependency registration, main.js: | |
// | |
// var deps = require('./deps'), |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |