github link
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
adb kill-server&&adb -P 5555 start-server |
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
<html> | |
<head> | |
</head> | |
<script type="text/javascript" src="index.js"></script> | |
<body onload="draw();"> | |
<h1>Snake</h1> | |
<canvas id="snakeBoard" width="400" height="400" style="border:1px solid #000000;"></canvas> | |
<canvas id="score1Board" width="100" height="100" style="border:1px solid #000000;"></canvas> | |
<canvas id="score2Board" width="100" height="100" style="border:1px solid #000000;"></canvas> | |
</body> |
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
//push notificaion | |
public function push($req){ | |
$get = ResourceNotification::where('user_id', $req->receiver_id)->with('userId')->get(); | |
$tokens = []; | |
foreach ($get as $g) { | |
// code... | |
array_push($tokens, $g->resource); | |
} | |
$limitToken = array_chunk($tokens, 500); |