Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 a = new Set([1, 2, 3, 4, 4, 4]) | |
const b = new Set([3, 4, 5, 6]) | |
const intersect = (set1, set2) => [...set1].filter(num => set2.has(num)) | |
const differ = (set1, set2) => [...set1].filter(num => !set2.has(num)) | |
const joinSet = (set1, set2) => [...set1, ...set2] | |
const myIntersectedSet = new Set(intersect(a, b)) | |
console.log('myIntersectedSet', myIntersectedSet) |
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
Date: 12 Sep 89 17:44:43 GMT | |
From: [email protected] (Skip Montanaro) | |
Organization: GE Corporate Research & Development, Schenectady, NY | |
Subject: XTerm Escape Sequences (X11 Version) | |
To: [email protected] | |
I rummaged around through the xterm code and came up with the following | |
stuff. No guarantees. I'm headed out of town for a couple days and thought | |
it better to get it out than let it get stale. Comments, bugs, and other | |
notes are welcome. Somebody else can convert it to troff. I prefer LaTeX. |
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
# sudo /sbin/rcvboxdrv -h | |
# Unloading modules: | |
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH | |
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH | |
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH | |
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH | |
# Solution | |
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4 |
This is an adaptation for the RubyQuiz #108 Word Blender, lots of spoilers there so best to look after!
The task for this month is to build a game based on the popular game TextTwist (and many other variations there are). It can be built as sophisticaded as you want, ranging from a command line game to a full featured GUI game if you want.
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=foo | |
version=1.0 | |
source=(...) | |
build() { | |
OLD_SRC = $SRC | |
make | |
SRC = $OLD_SRC |
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
#define tile_width 56 | |
#define tile_height 32 | |
static unsigned char tile_bits[] = { | |
0x01, 0x40, 0x20, 0x10, 0x08, 0x04, 0x00, 0x06, 0x40, 0x20, 0x10, 0x08, | |
0x04, 0xc0, 0x18, 0x40, 0x20, 0x10, 0x08, 0x04, 0x30, 0x60, 0x40, 0x20, | |
0x10, 0x08, 0x04, 0x0c, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0xe0, | |
0x43, 0x18, 0x10, 0x30, 0x84, 0x0f, 0x98, 0x4c, 0x06, 0x10, 0xc0, 0x64, | |
0x32, 0x86, 0xf0, 0x01, 0x10, 0x00, 0x1f, 0xc2, 0x81, 0x70, 0x00, 0x10, | |
0x00, 0x0c, 0x02, 0x81, 0x08, 0x00, 0x6c, 0x00, 0x18, 0x02, 0x81, 0x04, | |
0x00, 0x83, 0x01, 0x60, 0x02, 0x81, 0x03, 0xc0, 0x00, 0x06, 0x80, 0x03, |
NewerOlder