Skip to content

Instantly share code, notes, and snippets.

/**
* 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
*
@KOMON
KOMON / elevator.js
Created October 13, 2021 22:44
Remitly Take Home assignment
"use strict";
/* eslint-disable */
/*
/*
You are implementing an elevator.
The elevator has 4 actions:
UP_ONE
DOWN_ONE
@KOMON
KOMON / orders.php
Created April 30, 2020 21:51
Research Square exercise
<?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.
//
@KOMON
KOMON / dwm-6.1-xft-statuscolors.diff
Created March 24, 2015 17:19
a DWM patch to make the statuscolors patch work with the latest commit to HEAD
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)
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
@KOMON
KOMON / gist:266dadaf7f07f6b0c031
Created December 16, 2014 07:20
emacs lisp return nil
(let ((x (foo))
(when x
(- x 3)))
or
(when (foo)
(- (foo) 3))