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 | |
ROOTDIR=$(pwd) | |
echo "Installing front-end..." | |
cd $ROOTDIR/front-end | |
npm install | |
printf "Installed front-end.\nInstalling back-end...\n" | |
cd $ROOTDIR/back-end | |
npm install | |
echo "Installed back-end." |
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/sh | |
adb shell screencap -p /sdcard/screen.png | |
adb pull /sdcard/screen.png | |
adb shell rm /sdcard/screen.png | |
xdg-open 2>/dev/null screen.png |
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
// @author jvyden420 | |
// thing to make the hit pngs (50s, 100s) go by frame count and do it way easier | |
const blank = "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGtmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAxOC0xMi0yOFQyMDo0NTowMS0wODowMC |
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
diff --git a/rpcs3/Emu/Cell/lv2/sys_net.cpp b/rpcs3/Emu/Cell/lv2/sys_net.cpp | |
index 2a2daca99..713374e6e 100644 | |
--- a/rpcs3/Emu/Cell/lv2/sys_net.cpp | |
+++ b/rpcs3/Emu/Cell/lv2/sys_net.cpp | |
@@ -249,7 +249,7 @@ static sys_net_error get_last_error(bool is_blocking, int native_error = 0) | |
ERROR_CASE(EHOSTDOWN); | |
ERROR_CASE(EHOSTUNREACH); | |
default: | |
- fmt::throw_exception("sys_net get_last_error(is_blocking=%d, native_error=%d): Unknown/illegal socket error", is_blocking, native_error); | |
+ sys_net.warning("sys_net get_last_error(is_blocking=%d, native_error=%d): Unknown/illegal socket error", is_blocking, native_error); |
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
var canvas=document.getElementById('game');var context=canvas.getContext('2d');var grid=16;var count=0;var snake={x:160,y:160,dx:grid,dy:0,cells:[],maxCells:4};var apple={x:320,y:320};function getRandomInt(min,max){return Math.floor(Math.random()*(max-min))+min}function loop(){requestAnimationFrame(loop);if(++count<4){return}count=0;context.clearRect(0,0,canvas.width,canvas.height);snake.x+=snake.dx;snake.y+=snake.dy;if(snake.x<0){snake.x=canvas.width-grid}else if(snake.x>=canvas.width){snake.x=0}if(snake.y<0){snake.y=canvas.height-grid}else if(snake.y>=canvas.height){snake.y=0}snake.cells.unshift({x:snake.x,y:snake.y});if(snake.cells.length>snake.maxCells){snake.cells.pop()}context.fillStyle='red';context.fillRect(apple.x,apple.y,grid-1,grid-1);context.fillStyle='green';snake.cells.forEach(function(cell,index){context.fillRect(cell.x,cell.y,grid-1,grid-1);if(cell.x===apple.x&&cell.y===apple.y){snake.maxCells+=1;apple.x=getRandomInt(0,25)*grid;apple.y=getRandomInt(0,25)*grid}for(var i=index+1;i<snake.cells.le |
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
[Service] | |
ExecStartPost=/usr/bin/kubectl uncordon %H --kubeconfig /root/.kube/config | |
ExecStop=/usr/bin/kubectl drain %H --ignore-daemonsets --delete-emptydir-data --force --grace-period=30 --kubeconfig /root/.kube/config | |
TimeoutStopSec=120 |
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 | |
export SDL_VIDEODRIVER=x11 | |
export MOZ_ENABLE_WAYLAND=false | |
export XDG_SESSION_TYPE=x11 | |
export GDK_BACKEND=x11 | |
export QT_QPA_PLATFORM=xcb | |
"$@" |
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 | |
# generate a random 12-character string | |
output_dir="output" | |
# create the output directory | |
mkdir "$output_dir" | |
# loop through all the .jpg and .png files in the current directory | |
for file in *.jpg *.png *.jpeg; do |
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
// Copyright (c) MOSA Project. Licensed under the New BSD License. | |
// #nullable disable | |
#nullable enable | |
using System; | |
// ReSharper disable all | |
namespace MOSANullReproduction; |
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
.avatar-2e8lTP:before { | |
display: none; | |
} | |
::placeholder, | |
body, | |
button, | |
input, | |
select, | |
textarea, |
OlderNewer