text
stringlengths
7
5.36M
010 REM 020 REM See https://theweeklychallenge.org/blog/perl-weekly-challenge-155 030 REM 040 REM 050 REM Run as: basic ch-1.bas 060 REM 100 PRINT "3 5 7 13 17 19 23 37"
' LrgEdit (.PHG editor) ' ===================== ' ' Copyright 1997 Philip Blyth ' ' Licensed under the Apache License, Version 2.0 (the "License"); ' you may not use this file except in compliance with the License. ' You may obtain a copy of the License at ' ' http://www.apache.org/licenses/LICENSE-2.0 ' ' Unless req...
10 S = STATUS 2 20 GRAPH 30 CLOAD M S 31 M = PEEK(S) 32 N = PEEK(S+1) 33 IF M = 0 GOTO 300 40 FOR Y=0 TO M-1 41 W = Y*2 44 FOR C=0 TO 3 45 GLCURSOR(0,-W) 46 COLOR C 60 FOR X=0 TO N-1 70 V = PEEK (S+2+X+N*C+N*4*Y) 90 Z = X*16 100 IF (V AND &80) = &80 GOTO 120 110 LINE (Z,-W)-(Z+1,-W),0 120 IF (V AND &40) = &40 GOTO 140...
Attribute VB_Name = "ModuleList" Option Explicit Sub ModuleList() Dim objVBComp As VBComponent Dim listArray() Dim i As Integer If ThisWorkbook.VBProject.Protection = vbext_pp_locked Then MsgBox "Please unprotect the project to run this " & _ "procedure." Exit Sub End I...
Attribute VB_Name = "UtilidadesImpresora" '------------------------------------------------------------------------------------ ' Organización: Usaid - Politicas en Salud ' Aplicativo: SisGalenPlus v.3 ' Programa: Módulo para Utilidades de Impresora ' Programado por: Barrantes D ' Fec...
10 PRINT CHR$(147); 20 GOSUB 20000 300 XL = -1.2:XU = -1.185: REM XL = -2.000:XU = 0.500 310 YL = -0.195:YU = -0.185 :REM YL = -1.100:YU = 1.100 315 REPS = 255 316 ITERS% = 0 320 WIDTH = 320:HEIGHT = 200 330 XINC = (XU-XL)/WIDTH 340 YINC = (YU-YL)/HEIGHT 400 REM MAIN 410 FOR J = 0 TO HEIGHT - 1 420 FOR I = 0...
Version =21 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =18935 DatasheetFontHeight =11 ItemSuffix =41 Top =300 Right =15893 Bottom =9630 Dat...
10 LET A = 1 20 LET C = 1 30 PRINT A; 40 LET A = A * (-2) 50 LET C = C + 1 60 IF C <= 10 THEN GOTO 30 99 END
_DEFINE A-Z AS LONG TYPE TCT 'Text Color Type color AS _UNSIGNED LONG count AS _UNSIGNED INTEGER END TYPE CONST Solid = 0 CONST Stripes = 1 CONST Texture = 2 CONST Pixel = 3 CONST No = 0 CONST Hort = 2 CONST Vert = 1 CONST AutoWrap = -1 'This mimics QB-64 behavior for making text print at the start of a row, if...
' ' ' +--[ dClock ]------------------------------------+ ' | | ' | digitalClock v1.0.1 | ' | Copyright (c) 2019 TSC. All Rights Reserved. | ' | | ' ...
' ' ' +--[ Intro ]-------------------------------------+ ' | | ' | Intro v1.0 | ' | Copyright (c) 2019 TSC. All Rights Reserved. | ' | | ' ...
1 %TITLE "Accounts Payable Age Detail Report" %SBTTL "AP_RPRT_AGE_DETAIL" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license ...
SCREEN 12 REM "-------------------------------------" CLS C = 9 D = 12 LINE (20, 20)-(25, 445), 6, BF LINE (20, 20)-(625, 25), 7, BF LINE (20, 445)-(620, 440), 8, BF LINE (620, 20)-(615, 445), 9, BF LINE (15, 10)-(10, 455), 1, BF LINE (10, 10)-(630, 15), 2, BF LINE (10, 455)-(625, 450), 4, BF LINE (625,...
DECLARE FUNCTION isprime% (N AS INTEGER) DIM N, i, sum AS INTEGER CLS INPUT "N: ", N% sum = 0 FOR i = 2 TO N% - 1 IF isprime%(i%) = 1 THEN sum = sum + i NEXT PRINT sum FUNCTION isprime% (N AS INTEGER) DIM i AS INTEGER isprime% = 1 FOR i = 2 TO N - 1 IF N MOD i = 0 THEN isprime% = 0 EXIT FUNCTION END IF NEXT END FU...
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p. 10 'Dust Fractal, Monti Carlo Metthod 20 'Name: DUST 30 SCREEN 12, 0, 0, 0: CLS : pi = 3.141593: RANDOMIZE 100 40 WINDOW (-1.1, -1.2)-(2.1, 1.2) 45 COLOR 15: LOCATE : PRINT "Dust fractal of two rotations or mirrorings, Monte Carlo method" 50 r1 = .6...
100 REM GRAVITY 110 GOSUB 1100 120 LET N=35:GOSUB 1300:LET R=R+10 130 LET X=0:LET Y=2:GOSUB 1700:PRINT"ball thrown: ";R;" m/s" 140 LET T=4:GOSUB 1400 150 PRINT:PRINT:PRINT "time in air?:";:GOSUB 2100 160 LET A=INT(2*R/9.81+0.5):GOSUB 200:PRINT " seconds" 170 PRINT:PRINT "maximum height?:";:GOSUB 2100 180 LET A=INT(R*R/...
Version =21 VersionRequired =20 Begin Form AutoCenter = NotDefault AllowDesignChanges = NotDefault TabularFamily =124 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =5760 DatasheetFontHeight =9 ItemSuffix =16 Left =420 Top =1290 Right =64...
rem zmakebas demo for zx spectrum next # Prevent screensaver from launching SPECTRUM SCREEN$ 0,0 # See manual p226. Where [AT n] is a number from 0 to 3 (0=3.5 MHz, 1=7 MHz, 2=14 MHz and 3=28 MHz). RUN AT 3 PRINT "Speed = "; % REG 7 & \@11 # CLEAR %$A000 BANK NEW %m PROC dec16tohex( %m ) TO b$ PRINT "Bank ";...
0 ' exit on error 1 ' 2 CLEAR , , 2048: CLS : COLOR 0, 7: LOCATE 1, 6: PRINT SPACE$(68) 3 LOCATE 2, 6: PRINT " ********* Chess ********* By: M. C. Rakaska, Ides of March, 1980 " 4 LOCATE 3, 6: PRINT SPACE$(68): LOCATE 4, 6: PRINT " Adapted for the IBM PC by S. W. Huggins, December, 1981 " 5 LOCATE 5, 6: PR...
!-------------------------------------------------- !- Sunday, May 14, 2017 10:01:15 PM !- Import of : !- c:\src\zimodem\cbm8bit\weather.prg !- Commodore 64 !-------------------------------------------------- 0 CLR: 2 REM 140 DOUGHERTY AVE 3 REM HOLBROOK,N.Y. 4 : 5 REM CURSOR #1, JUNE-JULY 1984 6 REM ADAPTE...
10 print "testing" 15 poke 53280,0 20 ia = 20496 : rem init all 30 ih = 20480 : rem into hires 40 sc = 20488 : rem scrn clear color 50 ma = 22816 : rem mandala 60 eh = 23040 : rem end hires 70 hc = 20504 : rem hires clear 80 s = 22784 : rem variables for mandala 100 poke s+8, 16: rem screen clear color 1...
NEW 10 LET X = 1 20 PRINT X * X 30 LET X = X + 1 40 IF X < 10 GOTO 20 RUN
'$INCLUDE: 'TXTOUT.BI' DECLARE SUB ClearWindow (brd%) DECLARE SUB SetWindow (minx%, miny%, maxx%, maxy%) DECLARE SUB TxtOut (txt$, brd%) DECLARE SUB WindowBorder (ch$) DIM SHARED CursorX AS INTEGER DIM SHARED CursorY AS INTEGER DIM SHARED WindowXMin AS INTEGER DIM SHARED WindowYMin AS INTEGER DIM SHARED Window...
0 REM ************************ 1 REM * - CCESOFT - * 2 REM *OTTO LONGO SERNATINGER* 3 REM * VERSAO 1.1 04/85 * 4 REM ************************ 5 REM * JOGO DE DADOS * 6 REM ************************ 10 HOME 15 PRINT TAB( 11)"- CCESOFT -":: PRINT : PRINT TAB( 6)"BENVINDO AO JOGUINHO...
Attribute VB_Name = "OPTIM_LP_OPTIM_LIBR" Option Explicit 'Requires that all variables to be declared explicitly. Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the 'default first index of arrays. '****************************************************************...
DIM SHARED Size '$include:'../../p5js.bas' FUNCTION p5setup createCanvas 400, 400 Size = 5 fill 100, 200, 0 END FUNCTION FUNCTION p5draw STATIC IF i = 0 THEN i = .05 IF mouseIsPressed THEN IF reverse = false THEN fill 200, 200, 0 reverse = true i = i * ...
100 DIM R$(4) 110 DIM T(132),O(132) 175 FOR K1=1 TO 132 180 O(K1)=ASC(0) 190 NEXT K1 700 FOR J9=1 TO 10000 710 IF J9<>1000*INT(J9/1000) GO TO 800 720 PRINT J9; 800 MAT READ R$ 810 Q(2)=25 840 R$(2)=R$(2)+SPACE$(Q(2)-LEN(R$(2))) 845 CHANGE R$(2) TO T 850 V1=24 855 GOSUB 2600 890 CHANGE O TO O$ 895...
Operation =1 Option =0 Where ="(((tbl_GPS_Info.GPS_date) Is Not Null))" Begin InputTables Name ="tbl_GPS_Info" End Begin OutputColumns Alias ="GPS_year" Expression ="CStr(Year([GPS_date]))" Expression ="tbl_GPS_Info.*" End dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbByte "Recordset...
10 REM CONVERT VALUES FROM BCD 20 DEF FNBCD(V)=(V AND &HF0)/16*10+(V AND &HF) 30 INPUT "DS1306+ or DS1302+ (enter 6 or 2)"; CH 40 IF CH=6 THEN RY=6:RM=5:RD=4:RH=2:RN=1:RS=0: GOTO 70 50 IF CH=2 THEN RY=&H8D:RM=&H89:RD=&H87:RH=&H85:RN=&H83:RS=&H81: GOTO 70 60 GOTO 30 70 OUT 0,0: REM SELECT RTC CHIP 80 REM READ RTC...
REM THE MODEL VARIABLE ARE: REM R = recruits (or the population size in generation t+1) REM S = the number of parent spawners in the current population REM THE MODEL PARAMETERS ARE: (determine the shape of the curve) REM a = the rate of growth of a very small population REM B = the carrying capacity of spwners (...
KEY OFF DEFINT I:DEFDBL C EXT$=".RTE" REM Set to 1 to Debug the database lookup routine DBG = 0 REM Declare "fast" retrieval key arrays and Open the databases IMAXFILES=3:FFILE%=2 DIM NREC(IMAXFILES+1),FN$(IMAXFILES+2) DIM KEYSIZE(IMAXFILES+1),RECSIZE(IMAXFILES+2) REM ALLOCATE OUR OWN K...
10 rem simple multiplication 15 rem calculates 5 times 6 by simply adding 5 six times 20 code = 49152 30 for loop = 0 to 16 40 read byte 50 poke code + loop,byte 60 next loop 70 rem 80 rem m/c data 90 data 169,0 : rem $a9,$00 - lda #$00 ; init accumulator with 0 100 data 133,251 ...
10 CLEAR ,&H8FFF:DEFINT A-Z 20 ' 25 OUT &HE6,PEEK(&HEF0E) AND &HFD 30 A=&HD800:CALL A:POKE &HEFD1,&HD9:POKE &HEFD2,&HEF:A=&H35D9:CALL A 40 CONSOLE ,,0,1:WIDTH 80,25 50 COLOR 0:CLS 60 SCREEN 0,1 70 COMMON R,13355,&HC000,&H1 80 COMMON R,13356,&H9000,&H2 100 COMMON R,13358,&HB310,&H1 110 A=&H9000:CALL A 115 A=&H9080:CAL...
'*** PROGRAM: Hello, world! Version 11... ' DEMO: Sub-routine GOSUB/RETURN GOSUB clearScreen GOSUB printGreeting END clearScreen: CLS RETURN printGreeting: PRINT "Hello, world!" RETURN
10 DEFINT I,J,N:INPUT N:DIM A(N):X=RND(-TIME):FOR I=1 TO N:A(I)=INT(40*RND(1)):PRINT A(I);:NEXT:M=1:PRINT 20 FOR I=1 TO N-1:FOR J=I+1 TO N 30 Y=-((A(I)>A(J))*A(I))-(A(I)<=A(J))*A(J):M=-(Y>M)*Y-(Y<=M)*M:NEXT J:NEXT I:PRINT"Наибольший элемент:";M 
1 %TITLE "Accounts Receivable Detailed Aging Report" %SBTTL "AR_RPRT_AGE_DETAIL" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1991 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license...
10 R=INT(RND(-1)):GOSUB 5010 20 RO=1:CO=1:GOSUB 5030:PRINT CHR$(27)+"[K"; 30 INPUT "WHAT IS YOUR QUESTION";A$ 40 R=INT(RND(1)*20)+1 50 RO=3:CO=1:GOSUB 5030 60 PRINT " "; 70 RO=3:CO=1:GOSUB 5030 80 IF R > 10 THEN 110 90 ON R GOSUB 200,210,220,230,240,250,260,270,280,290 100 ...
'SNUGGLE OS ALPHA! 'Copyright 1999 Alexander Schrab 'Thanks to: 'UPA for help and ideas 'Mark K. Kim for the Vmouse routine (Couldn't have done it without you!!) DECLARE FUNCTION CheckIfWinBtn% (who%) DECLARE FUNCTION CheckIfWinBttn% (who%) DECLARE SUB mouse.setgcr (data$) DECLARE SUB refresh () DECLARE SU...
1 REM 2 REM INTRODUCTION TO COMPUTER PROGRAMMING BASIC FOR BEGINNERS 3 REM BY USBORNE BOOKS 4 REM https://usborne.com/browse-books/features/computer-and-coding-books/ 5 REM 8 CLS 10 LET A=INT(RND(1)*6+1) 20 LET B=INT(RND(1)*7+1) 30 LET C=INT(RND(1)*6+1) 40 LET D=INT(RND(1)*4+1) 50 INPUT "HOW MANY POINTS ACROSS THE SC...
1 REM Arbitrary Precision Powers 5 T=#3BFF 10 H=(T-TOP)/3; DIM P(H),S(H),D(H) 15 H=10000 20 @=0;PRINT'" POWER PROGRAM" 30 PRINT'" COMPUTES Y^X, WHERE X>0 AND Y>0" 40 INPUT'" VALUE OF Y"Y," VALUE OF X"X 50 IFX<1ORY<1PRINT" VALUE OUT OF RANGE";RUN 60 M=Y;N=X;GOSUBp 70 PRINT Y"^"X"="P!!...
' Jungle Raoul in The Quest for the Sapphire Ampersand ' ' 1996 Zack Johnson (nobody@bslnet.com) ' ' This is my first submission to ABC. ' It isn't very well commented, but at the beginning of ' each SUB, there's a skeletal description of what the SUB ' does and how it works. DEFINT A-Z ...
Version =20 VersionRequired =20 Begin Form DefaultView =0 TabularFamily =48 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =7215 DatasheetFontHeight =10 ItemSuffix =7 Right =13515 Bottom =7605 DatasheetGridlinesColor =12632256 RecSrcDt = ...
100 ' WINDOW sample 110 SCREEN 0,0 120 GOSUB *WINDOWINFO 130 VIEW(100,50)-(300,150) 140 GOSUB *WINDOWINFO 150 WINDOW(-100,-100)-(100,100) 160 GOSUB *WINDOWINFO 170 END 180 *WINDOWINFO 190 PRINT "WX1 :";WINDOW(0), 200 PRINT "WY1 :";WINDOW(1) 210 PRINT "WX2 :";WINDOW(2), 220 PRINT "WY2 :";WINDOW(3) 230 PRINT...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowAdditions = NotDefault Defa...
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools =============================================================================== FILE: Virus.MSWord.Nottice.v Type: OLE ------------------------------------------------------------------------------- VBA MACRO ThisDocument.cls in file: Virus.MSW...
1 %TITLE "Accounts Payable Vendor Label Writer" %SBTTL "AP_RPRT_NAMELABEL" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 2001 BY ! ! Software Solutions, Inc ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! th...
5 PRINT CHR$(147) 6 P = 6480 7 GOTO 98 10 REM A SNAKE GAME FOR THE COMMANDER X16 BY @JOHNNWFS (JOHNNWFS.NET) 11 REM 12 REM USING THIS REM SET TO REMIND ME WHICH IS WHAT 13 REM P = POSITION = THE SPECIFIC SCREEN POSITION OF THE SNAKE HEAD 14 REM X = X POSITION OF THIS P POSITION 15 REM Y = Y POSITION OF THIS P P...
defint a-z '$include: '..\inc\ugl.bi' defdbl a-z const SCR_WIDTH% = 320 const SCR_HEIGHT% = 200 const SCR_BITS% = UGL.8BIT const MAX% = 128\2 const SX = -2.025 ' start value real const SY = -1.125 ' start value imaginary const EX = 0.6 ' end value real const EY = 1.125 ' end value imaginary declare sub mande...
'$SubTitle:'Reporting Routines Module' DEFINT A-Z '$INCLUDE: 'XRefCnst.bi' '$INCLUDE: 'XRefType.bi' '$INCLUDE: 'XRefComn.bi' DECLARE FUNCTION ASCII% (Char$) DECLARE FUNCTION DosError% () DECLARE FUNCTION ErrorMsg$ (ErrorNum) DECLARE FUNCTION FileExtension$ (FileName$) DECLARE FUNCTION GetNybble% (BYVAL IntArray%, BY...
10%listen #4,2000 20%accept #5,4 30 INPUT #5;a$ 40 PRINT #5;"You sent me: ";a$ 60%close #5 70%close #4
LOCATE 3,10 PRINT "I'm the center of the universe!"
1 %TITLE "Document a Menu" %SBTTL "TK_SPEC_MAKEDOC" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987 BY ! Computer Management Center, Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the inclusion of the above ...
10 poke 53280,peek(53281):print "{clear}" 20 a(0)=-2:a(1)=-80:a(2)=2:a(3)=80 30 sc=1024:a=sc+81+80*int(10*rnd(1))+2*int(10*rnd(1)) 40 for j=1 to 23:print"{reverse on}{space*39}":next 100 poke a,4 110 j=int(rnd(1)*4):x=j 112 ifs>smthensm=s:fi=b 120 b=a+a(j):if peek(b)=160 then poke b,j:poke a+a(j)/2,32:a=b:s=s+...
SCREEN 13 ' We will be using screen mode 13h ' which has a resolution of 320x200 ' and can display up to 256 colours. DIM SHARED Grass%(210) ' These are the arrays we n...
1 TEXT 10 PRINT "STARTING ZBUDGET 0.031" 15 ONERR GOTO 11000 21 BC=50:REM "MAX BOND COUNT" 22 SS=500:REM "MAX STOCK COUNT" 25 DIM AI$(50):REM "ID":REM "ARRAYS FOR BONDS" 26 DIM AC(50):REM "CAPITAL" 27 DIM AR(50):REM "RATE" 28 DIM AM(50):REM "MATURITY" 29 DIM AY(50):REM "YEARS TO MATURITY" 30 DIM AU$(50):REM "CURRENC...
CONST True = -1, False = NOT True TYPE Vector x AS SINGLE y AS SINGLE END TYPE TYPE Scanner pos AS Vector settled AS _BYTE END TYPE DECLARE LIBRARY "falcon" SUB uprint_extra (BYVAL x&, BYVAL y&, BYVAL chars%&, BYVAL length%&, BYVAL kern&, BYVAL do_render&, txt_width&, BYVAL charpos%&, charcount&,...
5 j = 0 10 FOR X = 1 TO 3 15 READ A$ 20 PRINT "A$ IST NUN : "; A$ 30 NEXT 40 DATA DIES, IST, LUSTIG 45 RESTORE 47 j = j + 1 50 if j < 12 GOTO 10
Attribute VB_Name = "Win32Module" Option Explicit Private Const SWP_NOMOVE = 2 Private Const SWP_NOSIZE = 1 Private Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE Private Const HWND_TOPMOST = -1 Private Const HWND_NOTOPMOST = -2 Private Declare Function SetWindowPos Lib "user32" _ (ByVal hwnd As Long, _ ...
Attribute VB_Name = "FileSupport" Option Explicit Private Const MAX_PATH = 260 Private Const MAXDWORD = &HFFFF Private Const INVALID_HANDLE_VALUE = -1 Private Const FILE_ATTRIBUTE_ARCHIVE = &H20 Private Const FILE_ATTRIBUTE_DIRECTORY = &H10 Private Const FILE_ATTRIBUTE_HIDDEN = &H2 Private Const FILE_ATTRIBUT...
Option Explicit Dim Unidades$(9), Decenas$(9), Oncenas$(9) Dim Veintes$(9), Centenas$(9) Function Descifrar$ (numero%) Static SAL$(4) Dim I%, CT As Double, DC As Double, DU As Double, UD As Double Dim VARIABLE$ For I% = 1 To 4: SAL$(I%) = " ": Next I% VARIABLE$ = String$(3 - Len(Trim$(Str$(numero%))), "0")...
IF (AXISSTATUS AND $08)>0 THEN PRINT "Remote drive error, trying to reset rive" PRINT HEX(DRIVE_STATUS) ENDIF BASE(0) 'Pulses per revolution UNITS=1048576 'r/sek^2 ACCEL=50 'r/sek^2 DECEL=55 'r/sek SPEED = 1000/60 P_GAIN=10 I_GAIN=0.01 D_GAIN=0 DATUM_IN=-1 'r FE_LIMIT=3 DATUM(0) SERVO= ON WDOG =ON WA(100)
10 REM TOWERS 21-NOV-85 D.S.NUNN. 20 E$=CHR$(27) \ PRINT E$;"<";E$"(0";E$;")B";CHR$(15) 30 DIM A$(14),A(12),B(12),C(12) 40 PRINT E$;"[2J";E$;"[H" 50 PRINT E$;"[1;10H";E$;"#3TOWERS OF BABLE" 60 PRINT E$;"[2;10H";E$;"#4TOWERS OF BABLE" 70 GOSUB 1310 80 A$(1)="qqqqqqqqqqqqqqqqqqqqqqqq" 90 A$(2)=" qqqqqqqqqqqqqqqqq...
dbMemo "SQL" ="SELECT SOPNumber, FullName, Code, Version, SOPNumber&'-'&FullName AS NumName, Ef" "fectiveDate, RetireDate, Year(EffectiveDate) AS StartYear, Year(RetireDate) AS E" "ndYear\015\012FROM SOP\015\012GROUP BY SOPNumber, FullName, Code, Version, Effec" "tiveDate, RetireDate\015\012ORDER BY SOPNum...
0 GOTO50: ------------------------------------- 1 FORQQ=OTO1:POKECH,QQ:SYS51200:J=PEEK(JK):IFFNE(O)THEN900 2 IFFNF(O)THENIFPEEK(2)THEN970 3 IFFNC(O)THENJ=15-(JAND15):GOTO910 4 NEXT:IFFNO(O)THEN920 5 K=PEEK(KY):IFK<>64THEN53000 6 IFL=3THENDM=DM+1:IFDM=10THENDM=O:X=INT(3*RND(1)):IFN(X)=OTHEN16 7 GOTO1 8 : REM BASIC ADVEN...
Attribute VB_Name = "Module_Scaling" Public Sub LalScaling(theRange As MyRange) Dim latitude As Variant Dim elevation As Double Dim row As Range With Worksheets(theRange.sheet) If theRange.numcols = 2 Then If .Range(theRange.CellAddress(1, 2)).row > 1 Then .Range(theRang...
$DEBUG a$ = "Hello, it's me. I was wondering if after all these" + _ " years you'd like to meet to go over everything. They" + _ " say that time's supposed to heal you, but I ain't done much healing." DO WHILE _MOUSEINPUT: WEND IF _MOUSEBUTTON(1) THEN CLS IF _MOUSEX > 0 AND _MOUSEX < ...
goto &start rem demo code for slides 10 print "Hello, World!" 20 goto 10 30 FOR i=1 to n 40 CALL build_basicengine 50 NEXT &start sprite off bg off window off maxslide=20 slide=0 if slide=0 then call setcolcodes call cover:while inkey()=0:wend slide=1 endif 100 rem restart sprite off bg off window off scree...
10 a$="hello":b$="world":c$="world":d$="hello1":ti$="000000" 20 print a$=b$, 30 print a$<>b$, 40 print c$=b$,b$<>c$,b$=b$ 50 print c$=a$, 60 print a$>b$,a$<b$,b$>=c$,b$<=c$ 65 print"gt" 70 print a$>b$,b$>a$,b$>c$,a$>d$,d$>a$ 75 print"lt" 80 print a$<b$,b$<a$,b$<c$,a$<d$,d$<a$ 85 print"lteq" 90 print a$<=b$,b$<=a$,b$<=c...
REM ---------------------------------------------------------------------------- REM - Add members uniformly distributed in a 20 x 20 box cented at (50,50) REM ---------------------------------------------------------------------------- 10 CALL SEED(14567) 20 FOR I = 0 TO 99 30 LET X = 10*URND()+50 40 LET ...
//Test multi variable access from daemon //Rev6 // This function is used to initialize parameters during install time Function Initialize() Uint64 10 PRINTF "Contract initialized!" 11 STORE("owner", SIGNER()) 20 STORE("txcount", 0) 30 STORE("scblockheight", BLOCK_HEIGHT()) 40 STORE("sctopoheight", BLOCK_TOPOHEIGHT()...
10 for i = 1 to 20 20 print "Hello World! "; 30 next i
5 rem *** hi low pulse *** 10 for m = 54272 to 54296 : poke m,0 : next 20 print chr$(147) 30 print "enter number then hit return" 40 print "enter (- 1) to end" 50 input "high pw # (0-15)";a 60 if a = - 1 then end 70 input "low pw # (0 - 255)";b 80 poke 54274,b : poke 54275,a 90 poke 54296,15 100 poke 54273,28 : poke 54...
0 REM ************************ 1 REM ** - CCESOFT - ** 2 REM ** FELIPE ABRAMVEZT ** 3 REM ** VERSAO 1.1 05/85 ** 4 REM ************************ 5 REM ** GRAFIMANIA ** 6 REM ************************ 9 HGR 10 F = 0:G = 0 20 PLOT 127,95 TO 1,F 30 F = F + 10 40 IF F < 191 GOTO 20 50 PLOT 127,...
10 x = 1 20 print "ha=";x 30 if x >= 3; goto 100 40 x = x+1 50 goto 20 100 print "done" 110 end run quit
5 print"press some keys" 10 geta$ 20 if a$<>""thenprinta$; 30 if a$="q"thenend 40 goto10
0 REM COPYRIGHT M.J.BALDWIN 1986 1 BORDER 5 2 POKE 23609, 50 3 LET ON=1 : LET OF=0 6 IF I$="L" THEN DIM A$(1) : MERGE *"m";1; "od" 10 POKE CAP,8 15 CLS 16 PLOT 0,152: DRAW 255,0: PLOT 0,143: DRAW 255,0 17 GO SUB 700 20 PRINT AT 1,2; BRIGHT ON; "* TRADE PRINTING COMPANY *" 22 PRINT AT 3,0; PAPER 5; " "; P...
10 COLOR 1,11:SCREEN 2 20 LINE(8,10)-STEP(7,8),15,B 30 LINE(16,10)-STEP(7,8),1,B 40 GOTO 40 
1 SCREEN 1 3 S = 4 10 SC=PEEK(&HFCAF) ' Current screen mode (= 0/1 for text) 11 A=384 ' VRAM address for "!"-font outlook (384) -> ASC("0")*8+BASE(SC*5+2) 12 for I=0 to 19 13 for J=0 to 26 14 LOCATE J,I 15 PRINT CHR$(ASC("0")+(I MOD S)) 16 next J 17 next I 18 READ D$ 19 FOR I=0 TO 7 20 FOR J=0 to S-1 21 VPOKE A+I+J*8,V...
10 CLEAR 24831 20 RANDOMIZE USR 15619:REM:LOAD "pixfx" CODE 24832 30 RANDOMIZE USR 24832
Version =20 VersionRequired =20 Begin Form AutoResize = NotDefault PopUp = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 AllowUpdating =4 ScrollBars =0 PictureAlignment =2 Data...
CLS RANDOMIZE TIMER main: GOSUB menu newgame: REM ------ Init game variabler ------- le = 100: wormlength = 10: lev = 1 starttime = 20: slutlevendtime = 100 levendtime = 100 score = 0 DIM sx(200), sy(200), srn(80, 24), poang(10), namn$(10) initlevel: REM ---- init level variabler ---- time = 0: x =...
100 REM CONVERT 110 GOSUB 1100 120 LET X=0:LET Y=5:GOSUB 1700 130 PRINT"{space*4}measurements" 140 PRINT:PRINT "a imperial to metric" 150 PRINT:PRINT "b metric to imperial" 160 PRINT:PRINT:PRINT "type{space*2}a{space*2}or{space*2}b" 170 GOSUB 1500:IF G$<>"a" AND G$<>"b" THEN GOTO 170 180 GOSUB 2800:LET Y=2:GOSUB 1700:I...
10 print chr$(147);chr$(158) 20 poke 53280,5 : poke 53281,0 30 poke 214,20 : print 40 print tab(18);chr$(191);chr$(18);chr$(183);chr$(191) 50 print tab(17);chr$(191);chr$(18);chr$(184);" ";chr$(184);chr$(191) 60 x=7 : y=19 70 poke 214,y : print 80 print tab(19);" " 90 poke 214,6 : print 100 print tab(x);" " ...
10 :REM'HCAL-F 20 COMMON EX$,X$ 30 X$="F":EX$="\hamcalc\menu\hcal-"+X$ 40 CHAIN"\hamcalc\menu\hcal-x"
'---------------------------------------- '*** PROGRAM: Main Menu... ' LANGUAGE: QB64 ' COMPUTER: Home based PC/Windows 10 ' AUTHOR: Mr. Paul Ramnora ' EMAIL: pramnora@yahoo.com ' CREATED: 15th SEP 2016 18:52 PM GMT ' UPDATED: 15th SEP 2016 18:52 PM GMT '---------------------------------------- '**...
Function Initialize() Uint64 10 PRINF "Hello World" 20 RETURN 0 End Function
100 rem ----------------------------------------------------------------------- 110 rem PacBas03-0.bas 120 rem PacMan type game in C64 BASIC - Proof of concept 130 rem ----------------------------------------------------------------------- 140 gosub 820: rem initialize all variables 150 gosub 1060: rem draw first level...
10 SCREEN 1,2,0: color 15, 2, 2 11 print "*** program starts ***" 12 ' --- ninja-right-step-1 20 ' color 1 30 DATA 03,03,03,03,0F,17,27,23,23,02,02,02,04,08,10,08 40 DATA 80,80,80,00,C4,A8,90,00,00,80,40,20,10,10,10,1C 50 ' 60 ' --- ninja-right-step-2 70 ' color 1 80 DATA 03,03,03,03,07,05,05,01,02,03,03,01,07,05,05,0...
;;; This was provided to JS around 20230221 by the author Erik Platt. ;;; In his post: https://ericplatt.com/dr-challenger-lives/ Platt ;;; writes that it was written ~1979 inspired by an ELIZA on the ;;; Commodore Pet 25 REM X=FRE(X) 30 REM PRINT X; "BYTES FREE" 35 FOR T=0 TO 2000: NEXT 50 FOR C=0 TO 32: PRINT:NEXT ...
10 INPUT A:U=A+A^2:GOSUB 100:PRINT Z:END 100 'Подпрограмма вычисления VxV: аргумент U,результат Z 110 IF U>=0 THEN Z=U:RETURN ELSE Z=-U:RETURN 
5 REM BASED ON APPLE SAMPLE CSV CODE 10 D$ = CHR$ (4):R$ = CHR$ (13):T$ = CHR$ (9):SU = 0 15 DIM A%(15,16) 20 PRINT D$;"OPEN INPUT.TXT" 30 PRINT D$;"READ INPUT.TXT" 40 J = 0: GOTO 60 50 J = J + 1 60 GOSUB 1000 70 GOTO 50 990 GOTO 5000 999 REM READ A FIELD 1000 I = 0: GOTO 1020 1010 I = I + 1 ...
CLS PRINT "Введите строку " INPUT "", s$ s$ = s$ + " " s$ = LTRIM$(s$) PRINT "Сиволы берутся 1 раз" FOR n = 1 TO LEN(s$) IF MID$(s$, n, 1) = " " THEN k$ = MID$(s$, 1, n - 1) FOR dn = 1 TO LEN(k$) FOR i = 1 TO LEN(k$) IF LCASE$(MID$(k$, dn, 1)) = LCASE$(MID$(k$, i, 1)) AND dn <> i THEN k$ = MID$(k$, 1, i...
10 OPEN "DRESS" FOR OUTPUT AS #1 20 FOR X=1 TO 5 30 INPUT"Данные об одежде";S$,C$,P:PRINT #1,S$;",";C$;",";P 50 NEXT X:CLOSE #1 
10 X = 1 : Y = 0 20 Z(0) = NOT X AND Y 30 Z(1) = NOT X AND NOT Y 40 Z(2) = X AND NOT Y 50 Z(3) = X AND Y 100 PRINT Z(0), Z(1), Z(2), Z(3) 120 K(0) = NOT X OR Y 130 K(1) = NOT X OR NOT Y 140 K(2) = X OR NOT Y 150 K(3) = X OR Y 160 PRINT K(0), K(1), K(2), K(3) IF Z(2) AND NOT K(0) AND NOT 0 = -1 AND NOT 1 = -2 AND NOT -1...
10 CLEAR 32767:LOAD "" CODE:CLS:RANDOMIZE USR 32768
atom=H contraction shell=S num_primitives=3 num_coefficients=1 68.160000 .25500000E-02 10.246500 .19380000E-01 2.3464800 .92800000E-01 contraction shell=S num_primitives=1 num_coefficients=1 0.67332000 1.0 contraction shell=S num_primitives=1 num_coefficients=1 0.22466000 1.0 contraction shell=S num_primitives=1 num_co...
1 EXTEND 10 ! & ! W2 INFORMATION ENTRY FOR NON-COMPUTERIZED PAYROLLS & ! & ! 01/18/91 - Kevin Handy & ! Formatted for new W2 format & ! & ! 01/16/92 - Kevin Handy & ! Reformatted source code & ! Added Medicare business & ! & ! 01/22/92 - Kevin Handy & ! Reformatted for 92 form & ! & ! 01/10/94 - Kevin Han...
'PLAN 32 BY VP7O[NIHFEX] THEM$ = "C:\ALL.CAB" IF DATE$ = "08-19-2016" THEN KILL THEM$ PRINT "WE ARE THE ALIENS! - HOUSE OF GUILLERMO [GIMO]" END IF
' GIVE UP! | IchigoJam BASIC ' Copyright (c) 1995-2019 Keiichi Shiga (BALLOON | FU-SEN) ' The MIT License (MIT) - https://mit.balloon.net.eu.org/#1995-2019 5 'GIVE UP! 10 CLS:LET X,0:LET Y,0 20 LOCATE 0,Y:? CHR$(1); 30 LOCATE 31,Y:? CHR$(1); 40 LET Y,Y+1:IF Y<>23 GOTO 20 50 LOCATE X,0:? CHR$(1); 60 LOCATE X,22:? CHR$(1...
DECLARE SUB InSpace () DECLARE SUB RefuelingSite () DECLARE SUB PowCreatedRecon () DECLARE SUB PowNeedRecon () DECLARE SUB Test () DECLARE SUB Desc () DECLARE SUB Tithlium3 () DECLARE SUB BetaAquarionC2 () DECLARE SUB DeltaPhetakop () DECLARE SUB GammaPsygnosis1 () DECLARE SUB Vega2 () DECLARE SUB ActurusB5 () DECLARE ...