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
// https://unicode.org/emoji/charts/full-emoji-list.html | |
// var list = Array.from(document.querySelectorAll('.chars')).map(t => t.textContent); | |
const ctx = document.createElement('canvas').getContext('2d'); | |
const CANVAS_HEIGHT = 25; | |
const CANVAS_WIDTH = 30; | |
/** | |
* @var {Object} cache |
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>Hacking Javascript2img.com</title> | |
<style type="text/css"> | |
body { font-family:Arial; } | |
textarea { width:100%; height:300px; } | |
button { padding:20px; width:150px; height:50px; margin-top:20px; margin-bottom:20px; } | |
</style> | |
</head> |
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
/// Hack it ? | |
function sandbox(code) { | |
// Disable private functions not listed in window object | |
var blackList = [ | |
'Function', // avoid using (new Function("code"))(); to get window access | |
'eval', // ... | |
'self', // return window object | |
'window', // ... | |
]; |
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
// Dependencies | |
var glMatrix = require('Vendors/gl-matrix'); | |
var Camera = require('Renderer/Camera'); | |
var vec2 = glMatrix.vec2; | |
var mat2 = glMatrix.mat2; | |
// Object to initialize | |
var direction = vec2.create(); | |
var rotate = mat2.create(); |