Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Pittman jsonpittman

View GitHub Profile
View ORELSE.bas
10 N=1:S=1
20 TM=TIMER
30 FOR X = 1 TO 1000
40 N=N+S
50 IF S > 100 OR S < 1 THEN S=-S
60 NEXT X
70 T=TIMER:PRINT:PRINT (T-TM)/60;"SECONDS":REM RESULT = 16.15
80 TM=TIMER
90 FOR X = 1 TO 1000
100 N=N+S
@jsonpittman
jsonpittman / cmoc.bat
Last active Dec 26, 2019
Easily install Cygwin, LWTOOLS, and CMOC in Windows
View cmoc.bat
1) open an elevated command prompt (right click on Command Prompt and "Run as Administrator")
2) enter command: mkdir c:\Cygwin
3) enter command: cd c:\Cygwin
4) Paste the text below into notepad. Save in c:\Cygwin as "cmoc.bat":
bitsadmin /transfer wcb /priority high https://www.cygwin.com/setup-x86_64.exe c:\Cygwin\setup-x86_64.exe
setup-x86_64.exe -q --site http://cygwin.osuosl.org/ --root c:\Cygwin -P bison -P flex -P make -P gcc-c++ -P perl -P wget -P cygport
cd c:\Cygwin\bin
bash --login -c "cd /home; wget http://www.lwtools.ca/releases/lwtools/lwtools-4.17.tar.gz; tar zxvf lwtools-4.17.tar.gz"
bash --login -c "cd /home/lwtools-4.17; make; make install"
@jsonpittman
jsonpittman / CMOC.txt
Created Jul 15, 2019
CMOC and LWTOOLS on Fedora
View CMOC.txt
// **********************************************************************
//** Steps to install CMOC and LWTOOLS on Fedora workstation **
//** CMOC and LWTOOLS versions are current versions as of 7/14/19 **
// **********************************************************************
// First, install updates and reboot:
sudo yum -y update
sudo yum -y install bison flex make gcc-c++
View vimrc
"
" .vimrc
"
" Vim configuration resource file. Specifies desired
" behavior for the vim editor. Place this file at
" ~/.vimrc
"
:set showmode " Tell us when we're in insert mode.
:set tabstop=4 " Set the tabstop to 4 spaces
:set shiftwidth=4 " Shiftwidth should match tabstop
View InstallBoxstarter.txt
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
Install-BoxstarterPackage -PackageName [filepath] -DisableReboots
View BoxStarter_pl.txt
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
Set-StartScreenOptions -EnableBootToDesktop
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
cinst chocolatey
cinst googlechrome
cinst firefox
cinst 7zip.install
cinst notepadplusplus.install
View BoxStarter_Dev.txt
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
Set-StartScreenOptions -EnableBootToDesktop
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
cinst chocolatey
cinst googlechrome
cinst firefox
cinst 7zip.install
cinst notepadplusplus.install
View hwork.asm
;*******************************************************************************
;* *
;* long branch never - Episode 03 Homework *
;* https://www.youtube.com/watch?v=6DldT2rH63c *
;* *
;* Jason Pittman *
;* *
;*******************************************************************************
org $4000