- & - run a program (path may contain spaces)
- man
- ls
- cd
- pushd/popd
- mkdir
- cp
- mv
- rm
- cat
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
import scala.math.{round, ceil, random} | |
//val pattern = """(\d*)d(%|\d+)(([*/])(\d+))?([+-]\d+)?""".r | |
val fullPattern = """(\d*d(%|\d+))(r[hl<>]?\d+)?(k[hl<>]?\d+)?(s[hl<>]?\d+)?([*/]\d+)?([+-]\d+)?""".r | |
val dicePattern = """(\d*)d(%|\d+)""".r | |
val rerollPattern = """r([hl<>]?)(\d+)""".r | |
val keepPattern = """k([hl<>]?)(\d+)""".r | |
val scrapPattern = """s([hl<>]?)(\d+)""".r | |
val multiplierPattern = """([*/])(\d+)""".r | |
val bonusPattern = """([+-]\d+)""".r |
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
apply plugin: 'scala' | |
apply plugin: 'application' | |
mainClassName = 'App' | |
version = 'alpha' | |
repositories { | |
jcenter() | |
} | |
dependencies { |
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
#!/bin/bash | |
function extract { | |
cmd=$1 | |
filename=$2 | |
fullname=$3 | |
echo "$fullname" | |
mkdir "$filename" | |
cd "$filename" |
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
#include <fstream> | |
#include <iostream> | |
#include <cmath> | |
const int WIDTH = 300; | |
const int HEIGHT = 300; | |
void save_img(int *red[], int *green[], int *blue[]); | |
void create_img(float *red[], float *green[], float *blue[], int pixelsPerUnit); | |
void print_img(float *red[], float *green[], float *blue[]); |
OlderNewer