View AVL
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
SeqFromAVL(avl) | |
{ | |
if (empty(avl)) | |
{ | |
return [] | |
} | |
else | |
{ | |
left = SeqFromAVL(avl->left) | |
right = SeqFromAVL(avl->right) |
View Jenkinsfile
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
pipeline | |
{ | |
agent any; | |
parameters | |
{ | |
choice(name: 'resolution', choices: ['a', 'b'], description: '') | |
booleanParam(name: 'debug', defaultValue: true, description: '') | |
} | |
stages | |
{ |
View gist:c31afb351b92193e7c478560985dbeed
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
#lang racket | |
; Implementations and examples are inspired by Matt Might's blog posts: | |
; http://matt.might.net/articles/programming-with-continuations--exceptions-backtracking-search-threads-generators-coroutines/ | |
; Note I didn't just copy the code. I implemented it independently, so it looks a lot different from Matt's code. | |
(define (current-continuation) | |
(call/cc (lambda (k) | |
(k k)))) | |
(define (exception) |