This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo su | |
apt-get --purge remove linux-sound-base alsa-base alsa-utils | |
apt-get install linux-sound-base alsa-base alsa-utils | |
apt-get install gdm ubuntu-desktop | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const helloGuest = function(nameGuest) { | |
const dt = new Date(); | |
const hour = dt.getHours(); | |
return function(){ | |
if(hour >= 0 && hour <6 ) { | |
console.log(`Good Night ${nameGuest}`); | |
} | |
else if (hour > 6 && hour < 12) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function calcAge(birthYear) { | |
const date = new Date().getFullYear(); | |
const res = date - birthYear; | |
if (date !== birthYear) { | |
return res; | |
} else { | |
return console.log(`Год рождения не должен быть равен текушему ${date} году!`); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Online Javascript Editor for free | |
// Write, Edit and Run your Javascript code using JS Online Compiler | |
const obj = { | |
name: 'Iacov', | |
age: function(yearOfBirth) { | |
const date = new Date().getFullYear(); | |
const res = date - yearOfBirth; | |
return console.log(`I'm ${res} years old`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util. *; | |
public class MyClass { | |
public static void main(String args[]) { | |
class User { | |
int age; | |
String name; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util. *; | |
public class MyClass { | |
public static void main(String args[]) { | |
class Customer { | |
int amountOfPurchases; | |
String name; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'androidx.legacy:legacy-support-v4:1.0.0' | |
def room_version = "2.3.0" | |
def lifecycle_version = "2.3.1" | |
def arch_version = "2.1.0" | |
def coroutines_version = "1.5.0" | |
implementation "androidx.room:room-runtime:$room_version" | |
kapt "androidx.room:room-compiler:$room_version" | |
implementation "androidx.room:room-ktx:$room_version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = ['html', 'css', 'javascript']; | |
let nameLengths = arr.map((name) => name.length); | |
console.log(nameLengths); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = ['html', 'css', 'javascript']; | |
let nameLengths = arr.map((name) => name.length); | |
console.log(nameLengths); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [1, 2, 3, 4]; | |
let arg = prompt("input your number", "0"); | |
if (arg != null) { | |
searchElem(arg); | |
} else { | |
console.log("Cancel was pressed"); | |
} | |
function searchElem(arg){ |
NewerOlder