Jest is a really nice testing framework, but sometimes figuring out the right way to mock a function can be tricky. This guide attempts to define the approaches one should use.
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
const generate = (d, topLeftColor, bottomRightColor) => { | |
// Layers from bottom to top | |
const values = [ | |
[d, -d, topLeftColor], | |
[-d, d, bottomRightColor], | |
[-d, d-1, topLeftColor], | |
[d, -d+1, bottomRightColor], | |
[-d, -d, topLeftColor], | |
[d, d, bottomRightColor], | |
]; |
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
#333333 | #3F3F3F | #007AD2 | #FFFFFF | #1E1E1E | #FFFFFF | #23D18B | #F14C4C | #252526 | #969696 |
---|
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
The Java environment consists of several parts, and every part has multiple implementations, both proprietary and open source.
This document aims to give a short and simple explanation of the important parts. Misconceptions are possible, so please do not take this as legal advice.
The Java platform was created by Sun Microsystems, which has since been acquired by Oracle.
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
VGA palettes for GIMP | |
* VGA, 16 colors | |
* VGA, 256 colors |
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
{ | |
"name": "Dark (Visual Studio)", | |
"background": "#1E1E1E", | |
"foreground": "#BBBBBB", | |
"black": "#000000", | |
"red": "#cd3131", | |
"green": "#0DBC79", | |
"yellow": "#e5e510", | |
"blue": "#2472c8", | |
"purple": "#bc3fbc", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
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
#!/usr/bin/env python | |
import gi | |
import os | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
class AppWindow(Gtk.Window): | |
def __init__(self): |