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 <sys/socket.h> | |
#include <stdio.h> | |
#include <netinet/in.h> | |
#include <errno.h> | |
#include <string.h> | |
int main() { | |
int fd=socket(AF_INET,SOCK_STREAM,0); | |
struct sockaddr_in sa; | |
sa.sin_family=AF_INET; | |
sa.sin_port=htons(80); |
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
using System; | |
////////////////////////////////////////// | |
#region License and Information | |
/***** | |
* | |
* This is an implementation of a complex number class which supports most | |
* common operations. Though, not all of them has been tested. Some are staight |
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
using System; | |
using UnityEngine; | |
class Util | |
{ | |
public static void FloatToBytes(byte[] dest_buf, float[] data, int ofs, int num, float multiply ) | |
{ | |
var bsz = num * 2; | |
if(dest_buf.Length<bsz) { throw new Exception(); } | |
for (int i = 0; i < num; i++) |
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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
import WebKit | |
class MyViewController : UIViewController { | |
var webView: WKWebView! | |
override func loadView() { |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AnimSprite : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
object[] sprites; | |
void Start() | |
{ |
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
using System; | |
namespace osslcrashtest1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
Mrs3.mrs_initialize(); |
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
まずminecraftユーザーにする | |
sudo su minecraft | |
起動するコマンドライン (paper/start.shに書いてある) | |
nohup java -jar paper-86.jar & disown | |
終了はマイクラのクライアントからやる | |
/stop | |
バックアップ時の操作もマイクラのクライアントからやる |
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
hatenablog.com | |
toranoana.jp | |
twipple.jp | |
honya-go.com | |
but.jp | |
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
/* | |
* A speed-improved perlin and simplex noise algorithms for 2D. | |
* | |
* Based on example code by Stefan Gustavson (stegu@itn.liu.se). | |
* Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). | |
* Better rank ordering method by Stefan Gustavson in 2012. | |
* Converted to Javascript by Joseph Gentle. | |
* | |
* Version 2012-03-09 | |
* |
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
using System; | |
using UnityEngine; | |
using System.Net; | |
using System.Net.Sockets; | |
public class Mic : MonoBehaviour { | |
AudioClip clip; | |
Socket sk; |