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
/** | |
* Prompt: | |
* | |
* A customer has reported a bug in one of our APIs. The `/applicants` endpoint | |
* is designed to respond to search queries for applicants according to query | |
* parameters that are sent along with the request. | |
* | |
* For example, this request: | |
* GET /applicants?resume=1 | |
* |
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
"use strict"; | |
/* eslint-disable */ | |
/* | |
/* | |
You are implementing an elevator. | |
The elevator has 4 actions: | |
UP_ONE | |
DOWN_ONE |
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
<?php | |
/////////////////////////////////////////////////////////////////////////////// | |
// | |
// RESEARCH SQUARE CODING EXERCISE | |
// | |
// In this exercise, we would like you to write PHP code capable of solving the | |
// problems below. To begin, please make a local copy of this file and open it | |
// using your favorite code editor. | |
// |
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
diff -up dwm/drw.c dwm_git_colors/drw.c | |
--- dwm/drw.c 2015-03-24 10:00:33.865796838 -0700 | |
+++ dwm_git_colors/drw.c 2015-03-24 09:56:59.542647284 -0700 | |
@@ -202,13 +202,38 @@ drw_setscheme(Drw *drw, ClrScheme *schem | |
drw->scheme = scheme; | |
} | |
+int | |
+drw_colored_text(Drw *drw, ClrScheme *scheme, int numcolors, int x, int y, unsigned int w, unsigned int h, char *text) { | |
+ if(!drw || !drw->fontcount || !drw->scheme) |
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
rgr rbr ryr rfr | |
rbg ryg rfg | |
rgb ryb rfb | |
rgy rby rfy | |
rgf rbf ryf | |
gbr gyr gfr | |
grg gbg gyg gfg | |
grb gyb gfb | |
gry gby gfy |
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
(let ((x (foo)) | |
(when x | |
(- x 3))) | |
or | |
(when (foo) | |
(- (foo) 3)) |