Swiftではこのようにプロパティを用意してあげる
var created_at: Date = Date.distantPast
var media_ids: [String]?
var reply_to_id: String?
var repost_id: String?
var text: String?
#!/usr/bin/rdmd | |
import std.regex; | |
import std.net.curl; | |
import std.stdio; | |
int main() { | |
char[] content; | |
try { |
import std.stdio, std.format; | |
class KNH { | |
private bool _burn = false; | |
void burn() { | |
this._burn = true; | |
} | |
} |
//: Playground - noun: a place where people can play | |
let クチャクチャ = 0 | |
let 早口 = 0 | |
let アディダスの財布 = 0 | |
let ドヤ顔 = 0 | |
let ギトギトの髪 = 0 | |
let 運動靴 = 0 | |
let 細い目 = 0 | |
let 汚いメガネ = 0 |
import std.stdio : writeln; | |
import std.json : parseJSON, JSONValue; | |
import std.net.curl : get; | |
import std.parallelism : parallel; | |
import core.atomic : atomicOp; | |
import std.array : uninitializedArray; | |
void main() | |
{ | |
immutable string KNH_URL = "http://api.knh.uno:8080/v1/challenge.json"; |
import std.stdio, std.random, std.math; | |
const POINT_AMOUNT = 1000; | |
struct Point { | |
real x, y; | |
bool isInCircle() { | |
real num = pow(x, 2) + pow(y, 2); | |
return num <= 1; | |
} |
import std.stdio; | |
import derelict.sdl2.sdl; | |
void main() | |
{ | |
DerelictSDL2.load(); | |
SDL_Init(SDL_INIT_VIDEO); | |
scope(exit) SDL_Quit(); | |
SDL_Window* window; |
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
int main() { | |
SDL_Init(SDL_INIT_VIDEO); | |
SDL_Window* window; | |
SDL_Renderer* renderer; | |
SDL_CreateWindowAndRenderer(300, 300, SDL_RENDERER_PRESENTVSYNC, &window, &renderer); | |
int running = 1; |
I hereby claim:
To claim this, I am signing this object:
import vibe.http.websockets; | |
import vibe.core.log; | |
import vibe.core.core; | |
import vibe.inet.url; | |
import std.json; | |
import std.net.curl; | |
import std.parallelism; | |
import std.random; | |
import std.concurrency; | |
import std.stdio; |