Skip to content

Instantly share code, notes, and snippets.

View jittdev's full-sized avatar

Subrosa Games LLC jittdev

View GitHub Profile
@jittdev
jittdev / PythonDataTypes1.py
Created March 14, 2023 13:58
Python Data Types :: #Python Basics
#Data Types
int
float
bool
str # not mutable
list # a form of array li = [1,2,3] li2 = ['a','b'] ARE MUTABLE
# if dont want to modify original list use new_cart = amazon_cart[:]
tuple
set
dict
@jittdev
jittdev / ModuleTemplate1.rb
Created March 14, 2023 13:58
Module Template :: #Ruby / Rails
module MODULENAME
def METHODNAME
end
end
@jittdev
jittdev / BuiltInMethods1.txt
Created March 14, 2023 13:58
built in methods :: #Javascript
.toUpperCase()
.toLowerCase()
.toString()
@jittdev
jittdev / Scp1.sh
Created March 14, 2023 13:58
scp :: #shell
scp -r * root@blah.com:/sites/websitename.com
@jittdev
jittdev / ForRubyOnlyFiles(NotWithRails)1.rb
Created March 14, 2023 13:58
for Ruby only files (not with Rails) :: #RSpec
require_relative('../controllers/articles_controller.rb')
RSpec.describe string_capitalize do
it 'should have every word capitalized' do
expect(string_capitalize).to eq "I Am Ironman"
end
end
@jittdev
jittdev / Plesk1.txt
Created March 14, 2023 13:58
Plesk :: #VS
https://216.250.127.41:8443/admin/home?context=home
@jittdev
jittdev / InstallMysqlServer1.txt
Created March 14, 2023 13:58
Install MySQL Server :: #VS
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-rocky-linux-8
@jittdev
jittdev / MigrateFromLocalhost1.txt
Created March 14, 2023 13:58
Migrate from localhost :: #Wordpress
https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/
@jittdev
jittdev / PassBy______1.cpp
Created March 14, 2023 13:58
Pass by ______ :: #C++
/* Identical to storage, arguments can be passed to functions in three different ways:
- Pass by value (default) makes a copy
- Pass by pointer (modified with *)
- Pass by reference (modified with &, acts as alias) */
// byValue
bool sendCube(Cube c) {
// ... logic to send a Cube somewhere ...
return true;
}
@jittdev
jittdev / NewReact-NativeApp1.txt
Created March 14, 2023 13:58
New React-Native App :: #React-Native
react-native init filename
## OR npx react-native init filename
## react-native is for mobile dev. only use react for web development
## Run instructions for Android:
##     • Have an Android emulator running (quickest way to get started), or a device connected.
##  • cd "/Volumes/MBAEXT/Development/react/learning" && npx react-native run-android
##   Run instructions for iOS: