Skip to content

Instantly share code, notes, and snippets.

View OpnSrcConstruction's full-sized avatar
:octocat:
Working from home

Open Source Construction OpnSrcConstruction

:octocat:
Working from home
View GitHub Profile
@OpnSrcConstruction
OpnSrcConstruction / .vimrc
Created May 19, 2021 20:07
My current .vimrc as of Wednesday, May 19, 2021 4:06 PM
"" created from scratch on Friday, July 27 2018 @ 09:04:56 PM by kjlw99
"" Zim. I wanted a completely from scratch .vimrc, so I knew which options
"" from none to all were set to what I wanted. And all of this before I
"" ever added any plugins.
"#########################
"# Vim-settings section: #
"#########################
set t_Co=256 " enable 256color support
@OpnSrcConstruction
OpnSrcConstruction / Catting the muggle string.
Created April 9, 2019 21:13
Python example: string con-catting #python #cat #string
'''
@author: kjlw99
'''
# String Concatonation Example.
var_1 = 'Hello Harry'
var_2 = var1 + ' Potter!!'
@OpnSrcConstruction
OpnSrcConstruction / Cat the string.
Created April 9, 2019 21:08
Python Example: string concatenation #python #string #concatenation
'''
@author: kjlw99
'''
toy = 'string'
print("My cat loves playing with his " + toy + ".")
Output:
@OpnSrcConstruction
OpnSrcConstruction / convert tuple2list
Created April 9, 2019 21:01
Python example: convert tuple2list #python #tuple #list #convert
'''
@author: kjlw99
'''
aTuple = (123, 'xyz', 'zulu', 'abc');
aList = list(aTuple)
print "The List elements are: ", aList
@OpnSrcConstruction
OpnSrcConstruction / Basic index calling and quoting.
Created April 9, 2019 20:57
Python beginer examples: string Trix #python #string #indexing
'''
@author: OpnSrcConstruction
'''
# A string is just a list of string objects in Python.
# This is much simpler, than all those strict languages like C.
string_greeting = "Hello World!"
programming_community = "Python Programming"
@OpnSrcConstruction
OpnSrcConstruction / Print variable as loop iteration.
Created April 9, 2019 20:53
Python example: while loopin #python #while #loop
'''
@author: kjlw99
'''
@OpnSrcConstruction
OpnSrcConstruction / Python hello world statement.
Created April 9, 2019 20:49
Python statement example: #python #statement #hello-world
'''
@author: CreativeCub
'''
@OpnSrcConstruction
OpnSrcConstruction / Example while looping.
Created April 9, 2019 20:47
Python Example: while loopin #python #while #loop
# future while loop
'''
@author: OpnSrcConstruction
'''
x = 5
if x == 1:
print('x is equal to 1')
elif x == 3:
'''
@author: OpnSrcConstruction
'''
x = 1
if x == 1:
print('x is equal to 1')