A Pen by Valeri Hristov on CodePen.
A Pen by Valeri Hristov on CodePen.
A simple header. Took me a long time to position the Search box
A Pen by Valeri Hristov on CodePen.
A Pen by Vallerious on CodePen.
A Pen by Vallerious on CodePen.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
; Small interpreter | |
; (Const (Add 1 (Add-v 2 3))) = 6 | |
(define (Const? x) (eq? x `Const)) | |
(define (Add? x) (eq? x `Add)) | |
(define (eval_expr exp) | |
(cond [(Const? (car exp)) | |
(if (number? (cdr exp)) | |
(cdr exp) |
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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
public class ThreadPool implements IThreadPool { | |
private List<PoolThread> threads; | |
private BlockingQueue<ITask> tasks; | |
private boolean isStopped = false; |
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
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
ITask summator1 = new Summator((byte) 90); | |
ITask summator2 = new Summator((byte) 9); | |
ITask summator3 = new Summator((byte) 30); | |
ITask summator4 = new Summator((byte) 65); | |
ITask summator5 = new Summator((byte) 100); | |
IThreadPool myThreadPool = new ThreadPool(4, 4); |
OlderNewer