Skip to content

Instantly share code, notes, and snippets.

View Nekodigi's full-sized avatar

Nekodigi

View GitHub Profile
{
// Place your snippets for java here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Println to console": {
"prefix": "pln",
"body": [
"System.out.println(\"${1:string}\");$2"
#define redP 2
#define greenP 0
#define blueP 1
#define toneP 3
void setup() {
// put your setup code here, to run once:
pinMode(redP, OUTPUT);
pinMode(greenP, OUTPUT);
pinMode(blueP, OUTPUT);
//have to include javaFX
//references https://github.com/davidbouchard/keystone
//https://stackoverflow.com/questions/43004770/how-to-add-external-libraries-in-processing
import javax.media.jai.*;
import javax.media.jai.iterator.*;
import javax.media.jai.operator.*;
import javax.media.jai.registry.*;
import javax.media.jai.remote.*;
import javax.media.jai.tilecodec.*;
package com.company;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class Main {
import requests
from bs4 import BeautifulSoup
import pandas as pd
import csv
userName = "Nekodigi"
urlName = "https://plancke.io/hypixel/player/stats/"+userName+"#Arcade"
url = requests.get(urlName)
soup = BeautifulSoup(url.content, "html.parser")
#define tonePin 3
#define echoPin 4 // Echo Pin
#define trigPin 5 // Trigger Pin
double Duration = 0; //受信した間隔
double Distance = 0; //距離
void setup() {
Serial.begin( 9600 );
pinMode( echoPin, INPUT );
pinMode( trigPin, OUTPUT );
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
// Path Following
// Via Reynolds: // http://www.red3d.com/cwr/steer/PathFollow.html
// Using this variable to decide whether to draw all the stuff
boolean debug = false;
float n = 8;
float r;
void setup(){
size(500, 500);
r = height/3;
strokeWeight(5);
}
void draw(){
//based on this site http://paulbourke.net/geometry/chladni/
float gridS = 2;//10
float m = 5;
float n = 1;
float hmult = 10;//50
void setup(){
size(500, 500, P3D);
//fullScreen(P3D);
}