Code Monkey home page Code Monkey logo

no's Introduction

No

An alternative to the GNU program, yes. For when you're having a bad day.

Installing

None of these programs have any dependencies outside of their respective compilers or interpreters.

Instructions per-language

C

gcc -o no src/no.c
sudo mv no /usr/local/bin/no

C++

g++ -o no src/no.cpp
sudo mv no /usr/local/bin/no

C#

# Install dotnet-sdk-8.0
# apt install dotnet-sdk-8.0
# pacman -S dotnet-sdk
# dnf install dotnet
cd src
dotnet build
mv bin/Debug/net8.0/src /usr/local/bin/no

Dart

# There's multiple ways to get dart - see https://dart.dev/get-dart
# I used docker here.
docker run -it --rm -v ./src/:/root/ dart dart compile exe no.dart
mv src/no.exe /usr/local/bin/no

Go

# Install Go
# https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04
# pacman -S go
# dnf install go
go build src/no.go
sudo mv no /usr/local/bin/no

Java

# Install Java (written on Java 17, but it should run on any java in theory)
java src/no.java

JavaScript

node src/no.js

Kotlin

# Download Kotlin's native compiler
wget -O kotlin-1.9.23.tar.gz https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-native-linux-x86_64-1.9.23.tar.gz
tar xzvf kotlin-1.9.23.tar.gz
kotlin-native-linux-x86_64-1.9.23/bin/kotlinc-native src/no.kt
mv no.kexe /usr/local/bin/no

lisp

I have no idea. This no is untested.

lua

# After installing lua
lua src/no.lua

PHP

# After installing PHP
cd src
php -S localhost:8080
# Open your browser to localhost:8080

PowerShell

# Install powershell: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.4
pwsh src/no.ps1

Python

python3 src/no.py

Ruby

ruby src/no.rb

Rust

rustc src/no.rs
sudo mv no /usr/local/bin/no

Shell/Bash

sudo mv src/no.sh /usr/bin/local/no

TypeScript

npm i -g typescript
tsc src/no.ts
# node no.js

Why?

Because saying no is an important part of life, and it should be included in your day-to-day operating system too. I also just found it funny.

no's People

Contributors

nexy7574 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.