Skip to content

Instantly share code, notes, and snippets.

package main
import (
"log"
"net"
)
func main() {
port := ":8888"
tcpAddr, err := net.ResolveTCPAddr("tcp4", port)
package main
import (
"log"
"net"
)
func main() {
port := ":8888"
tcpAddr, err := net.ResolveTCPAddr("tcp4", port)
#include <iostream>
#include <vector>
#include <random>
using namespace std;
int main(){
random_device rnd;
mt19937 mt(rnd());
uniform_int_distribution<> rand(0,3);
package main
type IntegerPair struct {
First int
Second int
}
func NewIntegerPair(f, s int) *IntegerPair {
return &IntegerPair{First: f, Second: s}
}
@whileD
whileD / DaDaScript.java
Last active April 20, 2017 05:17
DADAscript
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class DaDaScript {
#include<iostream>
#include<vector>
#include<string>
int main(){
std::vector<char> memory(10000, 0);
int pointer = 0;
int loop = 0;
while(true){
@whileD
whileD / Gomi.java
Created September 18, 2016 12:52
gomi code
public class Gomi{
//print hello world
public static void main(String[] args){
class Hello{
public char[] helloworld = new char[10];
{
helloworld[0] = 'H';
helloworld[1] = 'e';
helloworld[2] = 'l';
helloworld[3] = 'l';