You will need the libcurses-dev packet which can be installed with:
APT: (Debian, Ubuntu)
sudo apt-get install libncurses-dev -y
YUM/DNF: (Fedora)
sudo yum intall libncurses-dev -y
@ECHO OFF | |
REM Game2, an extract from LittleHelper, a script I made to | |
REM aid myself. | |
SET /A X=2 | |
SET /A Y=2 | |
:GAME2_START | |
CLS | |
IF %X%==0 ( |
@ECHO OFF | |
REM Written by DD~! | |
REM Loop within the files, current directory | |
FOR %%A IN (*) DO ( | |
REM If the file isn't the script file (filename) | |
IF NOT "%%A"=="%~nx0" ( | |
REM If the file is under 1 MB, delete it | |
IF %%~zA LEQ 2097152 DEL /Q "%%~A" | |
) |
REM Oh hi. I didn't documented my script. :V | |
REM TODO/THINGS/ETC: | |
REM - Nothing. | |
@ECHO OFF | |
:reset | |
CLS | |
SET VER=r0.8.4dev1 | |
IF "%SESSIONNAME%"=="" ( | |
SET ISADMIN=TRUE |
@ECHO OFF | |
REM Version 1.3.6 | |
TITLE Welcome to DATA_Tools. | |
IF /I "%CD:~0,2%"=="%SYSTEMDRIVE%" ( | |
ECHO This script must be on the USB drive! | |
ECHO Canceled operation. | |
ECHO. | |
PAUSE |
You will need the libcurses-dev packet which can be installed with:
APT: (Debian, Ubuntu)
sudo apt-get install libncurses-dev -y
YUM/DNF: (Fedora)
sudo yum intall libncurses-dev -y
@ECHO OFF | |
WHERE /R .\ Thumbs.db > TEMP | |
IF ERRORLEVEL 1 GOTO L1 | |
GOTO L0 | |
:L0 | |
FOR /F %%B IN (TEMP) DO ( | |
DEL /Q /S %%B |
fn main() { | |
generate_box(10, 4, 5, 4); | |
} | |
// ┌┐└┘─│ | |
fn generate_box(x: i32, y: i32, width: i32, height: i32) { | |
let mut nwidth = width - 2; // Corners included | |
let mut nheight = height - 2; | |
if nwidth < 2 { nwidth = 0; } |
Language | First appeared |
---|---|
Assembly | 1949 |
Speedcoding | 1953 |
Fortran | 1957 |
Lisp | 1958 |
ALGOL 58 | 1958 |
COBOL | 1959 |
ALGOL 60 | 1960 |
CPL | 1963 |
using static System.Console; | |
namespace FizzBuzz | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
for (int i = 0; i < 100; i++) { WriteLine(i % 15 == 0 ? "FizzBuzz" : (i % 5 == 0 ? "Buzz" : (i % 3 == 0 ? "Fizz" : i.ToString()))); } | |
} |