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
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
# 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
$ 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
$ lspci -nnk | egrep -i '3d|aphics|display|nouveau|nvidia|radeon|trident|vesa|vga'; uname -a; Xorg -version; sudo apt-get update; sudo apt-get install mesa-utils hardinfo fbset nux-tools inxi; inxi -F; sudo fbset -i; apt-cache show xserver-xorg | grep Version; xrandr; fglrxinfo; nvidia-settings -g |head -n 30 ; sudo lshw -short; sudo lshw -C display; dpkg -l | egrep -i 'fgl|intel|mesa|mesa-utils|nvidia|nouveau|radeon|trident|video-ati'; cat /etc/lsb-release; dmesg | egrep -i 'abort|ailed|bug|error|fail|fgl|GLX|GPU|intel|missing|nouveau|NVIDIA|radeon|segment|trident|VESA|VGA|wfb|\(EE\)|\(WW\)'; cat /proc/cpuinfo | grep -I model; cat /var/log/Xorg.0.log | egrep -i 'abort|ailed|bug|display|error|fail|fgl|GLX|GPU|intel|issing|nouveau|nvidia|radeon|segment|trident|VESA|VGA|wfb|\(EE\)|\(WW\)'; sudo dmidecode|egrep 'anufact|roduct|erial|elease'; cat /etc/X11/xorg.conf; /usr/lib/nux/unity_support_test -p; ubuntu-support-status || ubuntu-security-status ; sudo lsmod | |
00:02.0 VGA compatible controller [0300]: Intel C |
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
$ lspci -nnk | egrep -i '3d|aphics|display|nouveau|nvidia|radeon|trident|vesa|vga'; uname -a; Xorg -version; sudo apt-get update; sudo apt-get install mesa-utils hardinfo fbset nux-tools inxi; inxi -F; sudo fbset -i; apt-cache show xserver-xorg | grep Version; xrandr; fglrxinfo; nvidia-settings -g |head -n 30 ; sudo lshw -short; sudo lshw -C display; dpkg -l | egrep -i 'fgl|intel|mesa|mesa-utils|nvidia|nouveau|radeon|trident|video-ati'; cat /etc/lsb-release; dmesg | egrep -i 'abort|ailed|bug|error|fail|fgl|GLX|GPU|intel|missing|nouveau|NVIDIA|radeon|segment|trident|VESA|VGA|wfb|\(EE\)|\(WW\)'; cat /proc/cpuinfo | grep -I model; cat /var/log/Xorg.0.log | egrep -i 'abort|ailed|bug|display|error|fail|fgl|GLX|GPU|intel|issing|nouveau|nvidia|radeon|segment|trident|VESA|VGA|wfb|\(EE\)|\(WW\)'; sudo dmidecode|egrep 'anufact|roduct|erial|elease'; cat /etc/X11/xorg.conf; /usr/lib/nux/unity_support_test -p; ubuntu-support-status || ubuntu-security-status ; sudo lsmod | |
00:02.0 VGA compatible controller [0300]: Intel C |
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
cnt = 0; | |
for i in range(1,7): | |
for j in range(1,7): | |
for k in range(1,7): | |
##(i,j,kがサイコロ3つの組み合わせだからこれが条件に合致してるかを見る) | |
sum = i+j+k | |
if(sum >12 and sum < 18): | |
cnt = cnt + 1 | |
print(cnt) | |
## 55 |
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
body { | |
background-color: #000000; | |
color: #e0e0e0; | |
font-family: "Lucida Console", "Lucida Sans Typewriter", monaco, "Bitstream Vera Sans Mono"} | |
h1 { | |
font-size: 15px; | |
color: #c9c9c9; | |
font-family: "Lucida Console", "Lucida Sans Typewriter", monaco, "Bitstream Vera Sans Mono"; | |
margin-left: 15px; |
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
<!DOCTYPE html> | |
<html lang="ja" dir="ltr"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Reversi</title> | |
</head> | |
<body> | |
<canvas id="canvas" width="500" height="500"></canvas> | |
<input type="button" /> | |
<script src="final.js" charset="utf-8"></script> |
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 Reversi = function() { | |
var canvas = document.getElementById('canvas') | |
var ctx = canvas.getContext('2d') //canvas作製 | |
var column = 8 //盤面横マス数 | |
var row = 8 //盤面縦マス数 | |
var cellWidth = 500 / column | |
var stoneRadius = (cellWidth * 0.8) / 2 //コマの直径 | |
var board = []; |