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
| /* Heap based virtual machine described in section 3.4 of Three Implementation Models for Scheme, Dybvig | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <assert.h> | |
| char token[128][32]; |
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
| require 'io/console' | |
| # Reads keypresses from the user including 2 and 3 escape character sequences. | |
| def read_char | |
| STDIN.echo = false | |
| STDIN.raw! | |
| input = STDIN.getc.chr | |
| if input == "\e" then | |
| input << STDIN.read_nonblock(3) rescue nil |
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
| (function() { | |
| if( !( 'Notification' in window ) ) { | |
| return console.error( | |
| 'This browser does not support desktop notifications' | |
| ) | |
| } | |
| var icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABiCAYAAACrpQYOAAAMF2lDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU8kax+eWFEJCC0RASuhNkF6l9yIgHWyEJEAoMQSCih1ZVHAtqIiiqOgKiKJrAWStWLCwCNjrgojKyrpYsKHyJgX0+d6ed96cM/f+7jff993/zJ25ZwYARXuWQJCFKgGQzc8TRgX6MBMSk5ikPwAKlAEBGAI9FjtX4B0ZGQb+sby7BRDx/bqlONc/+/3Xoszh5rIBQCIhp3By2dmQjwKAa7IFwjwACJ3QbjA3TyDmt5BVhVAgAESymNOkrCXmFClbS3xionwh+wFAprJYwjQAFMT5mfnsNJhHQQDZms/h8SHvhOzBTmdxIPdAnpSdPQeyIhWyacp3edL+LWfKeE4WK22cpX2RFLIfL1eQxZr/fw7H/y7ZWaKxd+jDSk0XBkWJ+wzHrTZzTqiYoXbkBD8lPAKyCuRLPI7EX8z30kVBsTL/QXauLxwzwADwc3NYfqGQ4ViiDFFmrLeMbVlCSSz0R8N5ecExMk4RzomS5Ufzubn+0WOczg0Ok+Vcyc8KH+OqVF5AMGQ409CjBekx8VKd6Pl8Xlw4ZAXInbmZ0aEy/0cF6b7hYz5CUZRYsyHkt6nCgCipD6aenTvWL8yKzZJoUIfslZceEySNxRK4uQlhY9o4XD9/qQaMw+XHyjRjcHb5RMliiwVZkTJ/rIqbFRglHWfsUG5+9Fhsdx6cYNJxwB5nsEIipfqxd4K8yBipNhwHYcAX+AEmEMGaAuaADMDrGGwahE/SlgDAAkKQBrjAUmYZi4iX |