- Ore
- Gem (Miner + Shovel)
- Ring (Craftsman + Hammer)
- Metal (Miner + Container)
- Gear (Craftsman + Hammer)
- Pocket Watch (Craftsman + Hammer)
- Sewing Machine (Craftsman + Hook)
- Statue (Artist + Hammer)
- Compass (Fisherman + Hammer)
- Gear (Craftsman + Hammer)
- Gem (Miner + Shovel)
- Worm
- The first number is the number of black squares in the row/column
- The second number is the number of "groups" of black/white squares in the row/column (see screenshots below)
This file contains hidden or 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/php | |
| <?php | |
| // v v | |
| // \\O// | |
| $RED = 31; | |
| $GREEN = 32; | |
| $BLUE = 34; | |
| $MAGENTA = 35; | |
| $CYAN = 36; |
This file contains hidden or 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
| menu: | |
| CLS | |
| LOCATE 10, 30 | |
| PRINT "1) Try first two levels" | |
| LOCATE 12, 30 | |
| PRINT "2) See New Features" | |
| LOCATE 14, 30 | |
| PRINT "3) Quit" | |
| PRINT "Select your choice" |
gzg helps you use git, tar, and gpg to keep a folder of text files
synced across your devices using a server you have SSH access to. Each client
has a git repo containing the unencrypted text files. All the server has is the
encrypted, gzipped, tar'd, bare git repo in a single file called
gzg.git.tar.gz.gpg. There is also a gzg.git.tar.gz.gpg.sha1 file used for
the clients to check whether their version of the git repo is outdated.
Here's how you would set up a notes directory:
This file contains hidden or 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
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <termios.h> | |
| int main() { | |
| int i; | |
| struct termios t; | |
| tcgetattr(STDIN_FILENO, &t); |
- Create a new file named
kilo.c. - Write a
main()function that takes no arguments and returns0. - Create a
Makefilethat compileskilo.ctokilowhen you typemake.- Use
$(CC)for the compiler. - Turn on warnings using the
-Wall -Wextra -pedanticoptions. - Turn on C99 mode using the
-std=c99option.
- Use
- In
main(), Declare acharvariable namedc. - Include
<unistd.h>. - Read a single byte from standard input into
crepeatedly usingread(), untilread()returns an error or reaches the end of file.
This file contains hidden or 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 ruby | |
| # | |
| # Concatenates audio files together using avconv. | |
| # | |
| # Usage: avconcat -o <output> <inputs...> | |
| # | |
| output = nil | |
| output_arg = false |
This file contains hidden or 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/ruby | |
| # | |
| # Usage: ruby alarm.rb <time> | |
| # | |
| # <time> is either a number of seconds (e.g. "50"), minutes and seconds | |
| # (e.g. "5:30"), or hours minutes and seconds (e.g. "7:30:00"). After the | |
| # specified amount of time has passed, ring_alarm will be called and the | |
| # program will exit. | |
| # |
NewerOlder