This file contains hidden or 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
$ cat /var/log/Xorg.0.log | |
[ 4.974] | |
X.Org X Server 1.20.8 | |
X Protocol Version 11, Revision 0 | |
[ 4.974] Build Operating System: Linux 4.15.0-124-generic x86_64 Ubuntu | |
[ 4.974] Current Operating System: Linux ulap1 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 | |
[ 4.974] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-58-generic root=UUID=7f2ab20f-c4bd-42fa-8110-95d0cd844432 ro quiet splash | |
[ 4.974] Build Date: 30 November 2020 05:56:33PM | |
[ 4.974] xorg-server 2:1.20.8-2ubuntu2.6 (For technical support please see http://www.ubuntu.com/support) | |
[ 4.974] Current version of pixman: 0.38.4 |
This file contains hidden or 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
# If you change this file, run 'update-grub' afterwards to update | |
# /boot/grub/grub.cfg. | |
# For full documentation of the options in this file, see: | |
# info -f grub -n 'Simple configuration' | |
GRUB_DEFAULT=0 | |
GRUB_TIMEOUT_STYLE=menu | |
GRUB_TIMEOUT=-1 | |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" |
This file contains hidden or 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
name of display: :0.0 | |
display: :0 screen: 0 | |
direct rendering: Yes | |
Extended renderer info (GLX_MESA_query_renderer): | |
Vendor: Intel Open Source Technology Center (0x8086) | |
Device: Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1) (0x106) | |
Version: 20.0.8 | |
Accelerated: yes | |
Video memory: 1536MB | |
Unified memory: yes |
This file contains hidden or 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
// # include <stdio.h> | |
# include <stdlib.h> | |
# include <unistd.h> | |
int main(int argc, char *argv[]){ | |
// printf("%d\n", STDIN_FILENO); | |
// printf("%d\n", STDOUT_FILENO); | |
char buff[2];// 2 in case I want to printf | |
while(1){ | |
read(0, buff, 1); |
This file contains hidden or 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
//# include <stdio.h> | |
// for testing purposes only | |
# include <stdlib.h> | |
# include <unistd.h> | |
# include <sys/time.h> | |
# include <time.h> | |
int lengthUntilNull(char * str){ | |
int i = 0; | |
while(str[i] != 0){ |
This file contains hidden or 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
var primes = []; | |
var cond = [1]; | |
for(var i = 2; i < 335; i++){ | |
var flag = true; | |
var primeFlag = true; | |
for(var j = 0; j < primes.length; j++){ | |
var prime = primes[j]; | |
if(prime*prime > i)break; | |
primeFlag = primeFlag && (i%prime !== 0) | |
// flag === true if not divisible by any prime |
This file contains hidden or 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 txt = | |
`bwbwbwbwbwbwbwbwbrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr | |
bbbwbwbwbwbwbwbwbbsssssssssssssssssssssssssssssssssss | |
bwbwbwbwbwbwbwbwbrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr | |
bbbwbwbwbwbwbwbwbbsssssssssssssssssssssssssssssssssss | |
bwbwbwbwbwbwbwbwbrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr | |
bbbwbwbwbwbwbwbwbbsssssssssssssssssssssssssssssssssss | |
bwbwbwbwbwbwbwbwbrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr | |
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss | |
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr |
This file contains hidden or 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
Array(6).fill(0).map(a=>("00"+Math.floor(Math.random()*256).toString(16)).substr(-2).toUpperCase()).join(":") |
This file contains hidden or 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
//array of the object | |
let Arrayobject=[ | |
{ | |
section:'Dynamic Table', | |
marks:10 | |
}, | |
{ | |
section:'Intellij Usage', | |
marks:10 | |
}, |
This file contains hidden or 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
function range_include(a,b){ | |
let arr = []; | |
for(; a <= b; a++){ | |
arr.push(a); | |
} | |
return arr; | |
} | |
//array of the object | |
let Arrayobject = range_include(1,10).map((i)=>{ |