This file contains hidden or 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
#!/bin/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(progn ;;init forms | |
(ros:ensure-asdf) | |
#+quicklisp(ql:quickload '(:djula :cl-ppcre :cl-fad) :silent t)) | |
This file contains hidden or 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
use std::ffi::CString; | |
use std::mem::zeroed; | |
use std::os::raw::{c_char, c_int, c_uint}; | |
use std::ptr; | |
use x11::xlib; | |
fn main() { | |
let display = unsafe { xlib::XOpenDisplay(CString::default().as_ptr()) }; | |
let mut attr: xlib::XWindowAttributes = unsafe { zeroed() }; | |
let mut start: xlib::XButtonEvent = unsafe { zeroed() }; |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <chrono> | |
class Performance | |
{ | |
private: | |
std::chrono::system_clock::time_point now; | |
public: |
This file contains hidden or 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
import imp | |
import os.path | |
import sys | |
import types | |
import platform | |
__dockerfile_template__ = """ | |
FROM ubuntu:latest | |
ENV DEBIAN_FRONTEND=noninteractive |
This file contains hidden or 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
use std::io::prelude::*; | |
use std::net::{TcpListener, TcpStream}; | |
use std::{thread, time}; | |
use std::collections::HashMap; | |
use std::sync::{Arc, Mutex}; | |
const HOST: &'static str = "127.0.0.1:80"; | |
struct Server { | |
connections: HashMap<String, Arc<Mutex<TcpStream>>>, |
This file contains hidden or 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
(ql:quickload :cffi) | |
(defpackage vkffi | |
(:use :cl :cffi)) | |
(in-package vkffi) | |
(define-foreign-library vulkan | |
(:windows "vulkan-1.dll")) |
This file contains hidden or 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
/** | |
* HTMLパーサーを書くぞ | |
* 宣言: <!DECLARE> | |
* 開始タグ: <TAGNAME ATTRNAME=ATTRVAR> | |
* テキスト: TEXT | |
* 終了タグ: </TAGNAME> | |
* | |
* | |
* | |
*/ |
This file contains hidden or 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
#OBJS specifies which files to compile as part of the project | |
OBJS = main.cpp | |
#CC specifies which compiler we're using | |
CC = g++ | |
#COMPILER_FLAGS specifies the additional compilation options we're using | |
# -w suppresses all warnings | |
COMPILER_FLAGS = -w -std=c++17 -g |
This file contains hidden or 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
import tkinter as tk | |
import urllib.request | |
import io | |
from PIL import Image, ImageTk | |
from urllib.parse import urljoin | |
from html.parser import HTMLParser | |
from tkx import VerticalScrolledFrame | |
class MyHTMLParser(HTMLParser): | |
def __init__(self, parent): |
This file contains hidden or 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
let dangoes = []; | |
class Dango { | |
constructor(x, y, num) { | |
this.x = x; | |
this.y = y; | |
this.num = num; | |
this.rad = 0; | |
this.colors = | |
new Array(num) |
NewerOlder