Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
გით კონფიგურაცია
მას შემდეგ რაც git-ს დავაყენებთ ლოკალურ მანქანაზე საჭიროა მისი კონფიგურაცია ჩვენი მონაცემებით, რომელიც გითის კომიტში მოახდენს ჩვენს იდენტიფიკაციას გავხსნათ ტერმინალი და ჩავწეროთ შემდეგი ბრძენებები
git config --global user.name "სახელი გვარი"
მოცემული ბრძანებით მივუთითებთ ჩვენს სახელს და გვარს
git config --global user.email "MY_NAME@example.com"
მოცემული ბრძანებით მივუთითებთ ჩვენს ელფოსტას
git config --list
მოცემული ბრძანებით გვიჩვენებს კონფიგურაციის ყველა პარამეტრს
by ვაჟა ტყემალაძე
2 years ago
0
Git
git
0
ინიციალიზაცია
იმისათვის რომ გიტმა დაიწყოს მუშაობა კონკრეტულ დირექტორიაში საჭიროა მისი ინიციალიზაცია შემდეგი ბრძანებით:
git init
დირექტორიაში გადასასვლელად ვიყენებთ
cd (ფაილის დასახელებას ვწერთ)
იმისათვის რომ ვნახოთ ფაილების ჩამონათვალი გარკვეულ დირექტორიაში ვიყენებთ ამ ბრძანებას:
ls
და
ls -la
by ვაჟა ტყემალაძე
2 years ago
0
Git
git
0
ფაილის დამატება
ფაილის შესაქმნელად ვიყენებთ ამ ბრძანებას:Touch touch .gitignore შეიქმნება ფაილი gitignore, რომელშიც შეგვიძლია მივუთითოთ რა ტიპის ფაილები უნდა დააიგნოროს გიტმა. მაგალითად, ჩავწერთ gitignore ფაილში *.html -ს და ყველა ფაილი რომელიც დაბოლოვდება html-ით გიტი არ გამოაჩენს.
by ვაჟა ტყემალაძე
2 years ago
0
Git
git
0
ფაილების დაქომითება
git add (ფაილის სახელი)
მოცემული ბრძანება მოამზადებს ჩვენს მიერ მოდიფიცირებულ/დამატებულ/წაშლილ ფაილებს კომიტისთვის.
git add -A
და
git add .
მოამზადებს ყველა ფაილს დასაკომიტებლად
by ვაჟა ტყემალაძე
2 years ago
0
Git
git
0
Create TRIGGER after INSERT
Creates trigger that runs
after
insert
and logs into
log
table
DROP TRIGGER IF EXISTS after_student_insert;

DELIMITER $$

    CREATE TRIGGER after_student_insert BEFORE INSERT 
    ON students
    FOR EACH ROW 
    BEGIN

    INSERT INTO log (description)
    VALUES ('One student inserted');

    END$$

DELIMITER ;
by Valeri Tandilashvili
4 years ago
0
0
Function
LAST_DAY
takes date and returns the last date of the month. In the example the result is
28
because the year is not leap year
SELECT 
    LAST_DAY('2021-02-15')
by Valeri Tandilashvili
4 years ago
0
MySQL
Datetime functions
Full MySQL Course for Beginners
0
localStorage and sessionStorage
The localStorage and sessionStorage properties allow to save key/value pairs in a web browser. 
localStorage:
localStorage object stores data with no expiration date.The data will not be deleted when the browser is closed, and will be available the next day, week, or year.
sessionStorage:
The 
Session storage
— Session storage uses the sessionStorage object to store data on a temporary basis, for a single browser window or tab.
Difference between localStorage and sessionStorage:
Session storage is destroyed once the user closes the browser whereas, Local storage stores data with no expiration date. 
by Luka Tatarishvili
4 years ago
0
JavaScript
0
Json stringify / parse
While sending ajax we can convert object into a string with
JSON.stringify()
function...
$.ajax({
            url: '/api/page/delete',
            type: 'DELETE',
            data: JSON.stringify({
                'id': id,                   
                 '_token': ' {{ csrf_token() }} '
             }),
Then parse the result to reach data item:

success: function(result) {
                    parsed_result = JSON.parse(result)
                    items = parsed_result.data.items
}
by Luka Tatarishvili
4 years ago
0
JavaScript
json
0
The
json
method creates a
JSON
equivalent column. We can use
 $table->json('options');
to store json data in database
by Luka Tatarishvili
4 years ago
0
Laravel
database
migrations
laravel official doc
0
Object creation in Javascript
1)Literal Notation It's comma delimited list of 0 or more pairs of property names and values enclosed in curly braces
let car = {
    mark: 'Toyota',
    model: 'AE86',
    drift: function(place){ //method
        return 'car is drifting on the ' + place;
    }

};
--------------------------------------------------------------------------------------------------------------------------------------------------- 2)Object() constructor The Object constructor creates an object wrapper for the given value
let car = new Object();

car.mark = 'Toyota';
car.model = 'AE86';
car.drift = function(place){
    return this.mark+ ' is drifting on the ' + place;
}
new Object('text')
gives us String object,
new Object(123)
gives us Number object and so on, anything other than null/undefined given to this constructor will create wrapper for that value___________ 3)Constructor functions Blueprint function to create any number of objects that are the same type and inherit the same functionality
function Car(mark, model, speed){
    this.mark = mark;
    this.model = model;
    this.speed = speed;
}
Car.prototype.drift = function(place){
    return this.mark+ ' is drifting on the ' + place;
}

let car1 = new Car('Toyota', 'AE86', 240);
let car2 = new Car('Subaru', 'Impreza', 200);
this keyword is an object that owns the code but in this context it is meant to be the newly created object by this constructor --------------------------------------------------------------------------------------------------------------------------------------------------- 4)Object.create() method
let car = Object.create({});

car.mark = 'Toyota';
car.model = 'AE86';
car.drift = function(place){
    return this.mark+ ' is drifting on the ' + place;
}
giving null/undefined to
create
method will cause newly created object to have no prototype, which by default should be
Object.prototype
, or alternatively you can use prototype of another constructor function
let car = Object.create(Car.prototype)
or object itself to set a new prototype of an object
let car = Object.create({prototype_property1: 'value1'})
you can also use
property descriptor
to assign properties more precisely as you desire
let car2 = Object.create({}, {
    mark: {
        value: 'Toyota'
        writable: true  // false by default
        enumerable: true  // false by default
        configurable: true  // false by default
    },
    model: {
        value: 'AE86'
    },
    speed: {
        value: 240
    },
    drift: {
        value: function(place){
            return this.mark+ ' is drifting on the ' + place;
        }
    },
})
--------------------------------------------------------------------------------------------------------------------------------------------------- 5)ES6 class syntax WARNING: ES6 features might not be available for older version of some browsers
class Car{
    constructor(mark, model, speed){
        this.mark = mark;
        this.model = model;
        this.speed = speed;
    }
    drift(place){
        return this.mark+ ' is drifting on the ' + place;
    }
}
this is basically the same as constructor function but the different syntax --------------------------------------------------------------------------------------------------------------------------------------------------- 6)singleton pattern downside of this is that you can't create many instances and methods will repeat
let car = new function(){
    this.mark = 'Toyota';
    this.model = 'AE86';
    this.speed = 240;
    this.drift = function(place){
        return this.mark+ ' is drifting on the ' + place;
    }
}
by გიორგი უზნაძე
4 years ago
0
JavaScript
Beginner
Object
0
Results: 1578