Try https://docs.microsoft.com/en-us/windows/wsl/install
wsl --install
Else https://docs.microsoft.com/en-us/windows/wsl/install-manual
| (function(window,document,undefined){ | |
| var Dimmer = function(options){ | |
| this.options = Object.assign({}, Dimmer.defaults, options) | |
| if(!this.isDomNode(this.options.parent)) this.options.parent = Dimmer.defaults.parent | |
| if(this.options.opacity > 1 && this.options.opacity <= 100) this.options.opacity = this.options.opacity/100 | |
| else if(this.options.opacity > 1 && this.options.opacity <= 255) this.options.opacity = this.options.opacity/255 | |
| else if(this.options.opacity < 0 || (this.options.opacity > 1 && this.options.opacity > 255)) this.options.opacity = Dimmer.defaults.opacity |
| /** | |
| * Overwrite `Common.isElement` to allow for SVG elements also | |
| */ | |
| Matter.Common.isElement = function(obj) { | |
| try { | |
| return obj instanceof HTMLElement || obj instanceof SVGElement; | |
| } catch (e) { | |
| return (typeof obj === "object") && | |
| (obj.nodeType === 1) && (typeof obj.style === "object") && | |
| (typeof obj.ownerDocument === "object"); |
| // Postinstall script to ensure jQuery loads in the window object when using in Electron (not in module.exports) | |
| // See https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined | |
| const fs = require('fs'); | |
| const f_jquery = 'node_modules/jquery/dist/jquery.min.js'; | |
| fs.readFile(f_jquery, 'utf8', function (err, contents) { | |
| if (err) { | |
| return console.log(err); | |
| } | |
| var result = contents.replace('"use strict";"object"==typeof module&&"object"==typeof module.exports?', '"use strict";false?'); | |
| fs.writeFile(f_jquery, result, 'utf8', function (err) { |
| /** | |
| * A jQuery plugin to enable full width containers in limited width parents | |
| * @external "jQuery.fn" | |
| * @see {@link http://docs.jquery.com/Plugins/Authoring The jQuery Plugin Guide} | |
| * @example | |
| * $('img.full-width').fullWidth('.container'); | |
| * $('img.full-width').each(function(){ $(this).data('fullWidth').removeFullWidth() }); | |
| */ | |
| // Closure - BEGIN |
| #!python3 | |
| # coding: utf-8 | |
| ''' | |
| A "Conway's Game Of Life" implementation for use with (Pythonista for iOS)[http://omz-software.com/pythonista/] (v3). | |
| Features include: | |
| * Start menu with ability to choose from a selection of intial states | |
| * Pause button | |
| * Tap the screen to bring cells to life | |
| * Tap with two fingers to pause the game (without the menu) to allow you to draw cells. Tap again with two fingers to play. | |
| Roadmap / Needed / To do: |