When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
// ImGui BFFX binding | |
// In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp. | |
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. | |
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown(). | |
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. | |
// https://github.com/ocornut/imgui | |
#include <imgui.h> | |
#include "imgui_impl_bgfx.h" |
require 'rom-repository' | |
require 'rom-sql' | |
require 'logger' | |
config = ROM::Configuration.new(:sql, 'sqlite::memory') | |
config.gateways[:default].connection.create_table(:songs) do | |
primary_key :id | |
column :title, String | |
end |
import { h, Component } from 'preact'; | |
/** Creates a new store, which is a tiny evented state container. | |
* @example | |
* let store = createStore(); | |
* store.subscribe( state => console.log(state) ); | |
* store.setState({ a: 'b' }); // logs { a: 'b' } | |
* store.setState({ c: 'd' }); // logs { c: 'd' } | |
*/ |
{-# LANGUAGE DeriveFunctor #-} | |
module Bidi where | |
-- For 'guard'. | |
import Control.Monad | |
-- We use Cofree to represent type-annotated terms. | |
import Control.Comonad.Cofree | |
import Data.Functor.Classes | |
-- We use Fix to represent unannotated terms. | |
import Data.Functor.Foldable |
/** | |
* ANTLR grammar file for DreamMaker (BYOND language) | |
* Tested a little bit with SS13 code. It works sometimes | |
* Doesn't support all the DreamMaker language features because nobody uses all of it and it's a huge fucking mess. My intention is to implement enough of the spec that it can parse SS13's code | |
* Preprocessor directives tend to make the parser shit the bed. It tries to ignore them as much as possible. Also variables in string don't really work and sometimes make it break. | |
* It also depends on antlr-denter: https://github.com/yshavit/antlr-denter | |
* Released under Apache Licence 2.0: https://www.apache.org/licenses/LICENSE-2.0 | |
**/ | |
grammar DreamMaker; |
require 'fiddle' | |
class RubyVM::InstructionSequence | |
load_fn_addr = Fiddle::Handle::DEFAULT['rb_iseq_load'] | |
load_fn = Fiddle::Function.new(load_fn_addr, | |
[Fiddle::TYPE_VOIDP] * 3, | |
Fiddle::TYPE_VOIDP) | |
define_singleton_method(:load) do |data, parent = nil, opt = nil| | |
load_fn.call(Fiddle.dlwrap(data), parent, opt).to_value |
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides