Skip to content
View jittdev's full-sized avatar

Block or report jittdev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. gist Table of Contents gist Table of Contents
    1
    
                  
    2
    # jittdev's Gists
    3
    ## Table of Contents
    4
    ### Categories: [#ALGORITHMS](#ALGORITHMS-9) | [#Angular](#Angular-8) | [#api](#api-12) | [#Bootstrap5](#Bootstrap5-1) | [#C](#C-25) | [#CRON](#CRON-2) | [#DataGrip](#DataGrip-1) | [#DataScience](#DataScience-1) | [#DOCKER](#DOCKER-2) | [#error](#error-2) | [#error_reporting](#error_reporting-1) | [#git](#git-4) | [#HTML](#HTML-1) | [#Javascript](#Javascript-24) | [#Objective](#Objective-4) | [#PostgreSQL](#PostgreSQL-3) | [#Python](#Python-63) | [#REACT](#REACT-1) | [#React](#React-3) | [#REST](#REST-2) | [#RSpec](#RSpec-10) | [#Ruby](#Ruby-36) | [#shell](#shell-17) | [#SSL](#SSL-2) | [#USEFUL](#USEFUL-1) | [#VS](#VS-16) | [#VUE](#VUE-2) | [#Wordpress](#Wordpress-4) | [#XXXNoWork](#XXXNoWork-1) | [#Uncategorized](#Uncategorized-4)
    5
    ### ALGORITHMS (*9*)
  2. Copy Constructor :: #C++ Copy Constructor :: #C++
    1
    // Automatic Copy Constructor provides an automatic copy constructor for our class if we do not provide a custom one.
    2
    
                  
    3
    // The automatic copy constructor will copy the contents of all member variables.
    4
    
                  
    5
    /* Custom Copy Constructor must:
  3. i/o files :: #Python Advanced i/o files :: #Python Advanced
    1
    my_file = open('test.txt')
    2
    
                  
    3
    print(my_file.read()) #reads last line once
    4
    my_file.seek(0)  #puts the file cursor back to start (at last line)
    5
    
                  
  4. Recursion II Arrays and Objects :: #... Recursion II Arrays and Objects :: #Javascript
    1
    // adding all the elements of a limitless nested array
    2
    function arraySum(anArr) {
    3
      let sum = 0;
    4
      for (let i = 0; i < anArr.length; i++) {
    5
        let element = anArr[i];
  5. new rails 7 with bootstrap 5 :: #Rub... new rails 7 with bootstrap 5 :: #Ruby / Rails
    1
    rails new my_app_name -j esbuild -css bootstrap -d mysql #-O for no db/activerecord
    2
    cd my_app_name
    3
    rails javascript:install:webpack
    4
    rails css:install:bootstrap
    5
    rails assets:clobber
  6. RUBY Example of using JSON response ... RUBY Example of using JSON response :: #REST
    1
    # put this in a ruby_file.rb
    2
    #!/usr/bin/env ruby
    3
    require 'rest-client'
    4
    require 'awesome_print'
    5
    require 'json'