Skip to content

Instantly share code, notes, and snippets.

View gollilla's full-sized avatar
🏠
Working from home

gollilla gollilla

🏠
Working from home
  • Japan
View GitHub Profile
@gollilla
gollilla / randdomselector.php
Last active February 19, 2018 12:20
RandomSelector
<?php
$online = $this->getServer()->getOnlinePlayers();
$key = array_rand($online);
$oni = $online[$key];
?>
<?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){
#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]){
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
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void){
srand(time(NULL));
int data[20];
int i,j,tmp,min;
//ソート前のデータ表示
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void){
srand(time(NULL));
int data[20];
int i,j,tmp;
printf("[");
<?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();
#include<stdio.h>
#include<stdlib.h>
struct Car{
int id;
int count;
struct Car *next;
};
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define N 20
/** ___ _ _ ____ _
* / _ \ _ _(_) ___| | __/ ___| ___ _ __| |_
*| | | | | | | |/ __| |/ /\___ \ / _ \| '__| __|
*| |_| | |_| | | (__| < ___) | (_) | | | |_
* \__\_\\__,_|_|\___|_|\_\|____/ \___/|_| \__|
<!DOCTYPE html>
<html>
<?php
define("SECRET", '');
$url = "https://misskey.xyz/api/auth/session/generate";
$data = [
'appSecret' => SECRET
];