semvec/pypi-packages huggingface dataset:
shrug-lang 0.1.0
Interpreter for the Shrug Programming Language

# ShrugProgrammingLanguage [![Build Status](https://travis-ci.org/Ben-Wu/ShrugProgrammingLanguage.svg?branch=master)](https://travis-ci.org/Ben-Wu/ShrugProgrammingLanguage) [![Coverage Status](https://coveralls.io/repos/github/Ben-Wu/ShrugProgrammingLanguage/badge.svg)](https://coveralls.io/github/Ben-Wu/ShrugProgrammingLanguage)

Interpreter for the Shrug Programming Language

Shrug is a imperative, dynamically-typed, very very high-level, general-purpose programming language

## Example

```sh
>> a 10
>> b 11
>>
>> # Arithmetic operations
>> ¯\_(ツ)_/¯ a 3
13
>> ¯\_(ツ)_/¯ "str" "ing"
string
>> ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ 3
7
>> ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ b
110
>> ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ 3
3
>> ¯\_(ツ)_/¯ b ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ 4
3
>>
>> # Comparisons
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ a b
False
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ b
False
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ b
True
>>
>> # Conditional statements
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ True
>>  "printed"
printed
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ False
>>  "not printed"
>> ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ a ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ ¯\_(ツ)_/¯ b
>>  "a is less than b"
a is less than b
```

## Usage

##### Requires Python 3.6+

#### Install

```sh
pip install shrug-lang
```

#### Start interpreter

```sh
shruglang
```

To run a file:

```sh
cat program.shrug | shruglang
```

## Language spec

Language spec can be found [here](language_spec)

## Syntax highlighting

Syntax highlighting for sublime can be found [here](syntax_highlighting/shrug.sublime-syntax)

![Shrug sublime syntax highlighting](images/shrug_sublime_syntax.png)
imginit 1.0a1
CLI application for bulk image instantiation with basic feature support

# imginit
`imginit` is a CLI (Command-Line Interface) application made in Python that creates images and allows customisation for what they contain. You can customise the size, colour and the output directory (what folder the images will be placed in after creation). 

`imginit` also comes with built-in default argument values, making the creation of test material more efficient when using `imginit`.


## Installation
### Requirements
* **Python 3.7.1** or later

#### Python
You can get the latest version of Python 3 for your OS (Operating System) by clicking [here](https://wiki.python.org/moin/BeginnersGuide/Download), However, if you would like the exact version that `imginit` was made in, you can download the set-up files for that version [here](https://www.python.org/downloads/release/python-371/).

After installation, or if you already have Python installed, you can use `pip` to install `imginit` like so:

```python
pip install imginit
```

## Usage

```
imginit n [--size/-s width height] [--colour/-c rg b] [--dir/-d path] 
```

Using `imginit` on its own creates 10 white, 800x600, .PNG images within the directory the command was run in. This can be helpful for creating images made for testing purposes both quickly and efficiently.

#### n
Using the `n` argument defines how many images will be made. It cannot be less than or equal to 0 and must be an integer, otherwise the program will not work accordingly.

```
imginit 100
```

Creates 100 of the same images as described above.

#### size
Using `imginit --size` enables size manipulation for all of the images being generated. The parameter requires 2 arguments: the width and the height.

```
imginit 100 --size 1920 1080 
```

You can also use the shortened alias `-s` for faster queries.

```
imginit 100 -s 1920 1080
```

#### colour
To change the colour of the image, you can use the `--colour` parameter followed by 3 numbers, all of which must be a number between 0 - 255. The colour mode used is RGB, so if you would like the image to be red then you would do

```
imginit 50 --colour 255 0 0
```

Colour is spelled this way due to my being in the UK, but it also supports US spelling so you can do `--color` instead and `imginit` will still work accordingly.

The shortened alias  `-c` can also be used as a replacement.

```
imginit 50 -c 255 0 0
```

#### directory
`imginit` uses the CLI's current working directory as the output directory. This can be changed by using the `--dir` parameter and supplying a path to a directory that exists.

```
imginit 25 --dir C:\Users\Me\Pictures
```

You can always use `-d` as the shortened alias for `--dir`.

```
imginit 25 -d C:\Users\Me\Pictures
```

## Note
Currently the only OS I have tested `imginit` on is Windows 7, so if there are any issues then feel free to report the issue [here](https://github.com/issuemeaname/imginit/issues).

## License

`imginit` goes by the MIT License as shown in [LICENSE](LICENSE).