- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
<hash> with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
| from sys import argv | |
| import re | |
| # open the file and get read to read data | |
| file = open(argv[1], "r"); | |
| p = re.compile("\d+"); | |
| # initialize the graph | |
| vertices, edges = map(int, p.findall(file.readline())) | |
| graph = [[0]*vertices for _ in range(vertices)] |
| #define __ASSERT_USE_STDERR | |
| #include <assert.h> | |
| // Pin 13 has an LED connected on most Arduino boards. | |
| // give it a name: | |
| int led = 13; | |
| // the setup routine runs once when you press reset: | |
| void setup() { |
| ;; outlet code for implementing traditional macro expansion | |
| ;; macros | |
| (define (expand form) | |
| (cond | |
| ((variable? form) form) | |
| ((literal? form) form) | |
| ((macro? (car form)) | |
| (expand ((macro-function (car form)) form))) |