User: Read this issue, download the images, understand the game design, and make a tool for designing levels: https://linear.app/notabot/issue/GDD-345/game-for-work-energy-and-force
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
| React={Component:function(e){this.props=e},[C="createElement"]:(t,s,...a)=>t.bind?new t(s):(e=document[C](t),(()=>{for(n in s)e[n]=s[n]})(),g(a).map(t=>e[A](t.props?t.render():t.part?t:new Text(t))),e)},g=(e=>(e=e||[],e.map?e.flatMap(g):[e])),A="appendChild" |
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
| @s | |
| --- dir/bla/yo.py | |
| print("yo") | |
| --- | |
| --- dir/blado.py | |
| print("bla") | |
| --- |
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
| const fs = require('fs'); | |
| function tree(dir, shortName = dir, prefix = '') { | |
| const ls = fs.readdirSync(dir); | |
| const isDir = ls.map(item => fs.statSync(`${dir}/${item}`).isDirectory()); | |
| const files = ls.filter((item, index) => !isDir[index]); | |
| const dirs = ls.filter((item, index) => isDir[index]); | |
| const filesPrefix = prefix + ' '; | |
| console.log(); | |
| console.log(`${prefix}${shortName || '.'}/`); | |
| if (files.length) { |
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
| <style id="jsbin-css"> | |
| body { | |
| font: 14px "Century Gothic", Futura, sans-serif; | |
| margin: 20px; | |
| } | |
| ol, ul { | |
| padding-left: 30px; | |
| } |
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
| var fs = require('fs'), | |
| UglifyJS = require('uglify-js'); | |
| var express = require('express'), | |
| app = express(); | |
| var repo = process.argv[2]; | |
| var html = fs.readFileSync(__dirname + '/' + repo + '/build/index.html').toString(); | |
| var js = UglifyJS.minify(__dirname + '/' + repo + '/build/' + repo + '.bundle.js').code; | |
| //js = fs.readFileSync(__dirname + '/' + repo + '/build/' + repo + '.bundle.js').toString(); | |
| html = html.replace('<script src="' + repo + '.bundle.js"></script>', '<script>' + js + '</script>'); |
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
| #!/usr/bin/env coffee | |
| fs = require 'fs' | |
| sh = require 'execSync' | |
| config = require './package.json' | |
| name = config.name = "#{config.name}-semver" | |
| version = config.version = config.version.replace(/\./g, '') + '.0.0' |
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
| var assert = require('assert'), | |
| http = require('http'), | |
| sockets = require('socket.io'), | |
| socketClient = require('socket.io-client'); | |
| describe('Socket.io', function () { | |
| it('should take / as the default namespace', function (done) { | |
| var port = 5001, | |
| io = sockets.listen(port); | |