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
<?php | |
$online = $this->getServer()->getOnlinePlayers(); | |
$key = array_rand($online); | |
$oni = $online[$key]; | |
?> |
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
<?php | |
use pocketmine\scheduler\Task; | |
class Main extends PluginBase implements Listener{ | |
public function onEnable(){ | |
$this->getServer()->getPluginManager()->registerEvents($this, $this); | |
} | |
public function onJoin(PlayerJoinEvent $ev){ |
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
#include <stdio.h> | |
int main(void){ | |
// Your code here! | |
int data[] = {9, 14, 6, 42, 24, 7, 12}; | |
int i,j,tmp,min; | |
for(i=0;i<=6;i++){ | |
min = i; | |
for(j=i;j<=6;j++){ | |
if(data[j] < data[min]){ |
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 random | |
def Miller_Rabin(n): | |
b=random.randint(2,n-1) | |
q=n-1 | |
j=0 | |
while q%2==0: | |
q=q//2 | |
j=j+1 | |
k=j | |
i=0 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(void){ | |
srand(time(NULL)); | |
int data[20]; | |
int i,j,tmp,min; | |
//ソート前のデータ表示 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(void){ | |
srand(time(NULL)); | |
int data[20]; | |
int i,j,tmp; | |
printf("["); |
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
<?php | |
class autowalk extends PluginBase implements Listener{ | |
public const DISTANCE = 10; | |
public function onEnable(){ | |
$this->getServer()->getPluginManager()->registerEvents($this,$this); | |
} | |
public function onMove(PlayerMoveEvent $ev){ | |
$player = $ev->getPlayer(); | |
$level = $player->getLevel(); |
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
#include<stdio.h> | |
#include<stdlib.h> | |
struct Car{ | |
int id; | |
int count; | |
struct Car *next; | |
}; | |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define N 20 | |
/** ___ _ _ ____ _ | |
* / _ \ _ _(_) ___| | __/ ___| ___ _ __| |_ | |
*| | | | | | | |/ __| |/ /\___ \ / _ \| '__| __| | |
*| |_| | |_| | | (__| < ___) | (_) | | | |_ | |
* \__\_\\__,_|_|\___|_|\_\|____/ \___/|_| \__| |
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
<!DOCTYPE html> | |
<html> | |
<?php | |
define("SECRET", ''); | |
$url = "https://misskey.xyz/api/auth/session/generate"; | |
$data = [ | |
'appSecret' => SECRET | |
]; |
OlderNewer