See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| /* | |
| * Copyright 2020 The Netty Project | |
| * | |
| * The Netty Project licenses this file to you under the Apache License, | |
| * version 2.0 (the "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at: | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import java.nio.charset.Charset; | |
| /** | |
| * <p>Provides Base32 encoding and decoding as defined by <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>. | |
| * However it uses a custom alphabet first coined by Douglas Crockford. Only addition to the alphabet is that 'u' and | |
| * 'U' characters decode as if they were 'V' to improve mistakes by human input.<p/> | |
| * <p> | |
| * This class operates directly on byte streams, and not character streams. | |
| * </p> | |
| * |
| default prefix byte = 'S' | |
| default terminator byte = '\n' | |
| 0x30 = '0', 0x31 = '1', etc | |
| Hard Reset | |
| command: any of S00\n , S10\n , S20\n , S30\n | |
| response: none | |
| Scanner Enable | |
| enabled by default; only needed after Not-On-File or Scanner Disable |
| const instances = {} | |
| const modules = {} | |
| const components = {} | |
| const renderer = { | |
| instances, | |
| modules, | |
| components | |
| } |
| "Monads are Monoids in the Category of Endofunctors" | |
| If you are a functional programmer, you've probably heard this statement before. | |
| To understand it, first we need to understand its component parts: | |
| . Category | |
| . Monoid | |
| . Endofunctor | |
| After this, we will glue those parts together piece by piece to grasp the whole. |
| CREATE OR REPLACE FUNCTION check_fk_child() RETURNS trigger AS $$ | |
| DECLARE | |
| fk_local TEXT := TG_ARGV[0]; | |
| parent_table TEXT := TG_ARGV[1]; | |
| fk_val INT; | |
| is_valid BOOLEAN; | |
| query TEXT; | |
| BEGIN | |
| -- fk_val = getattr(NEW, fk_local) | |
| EXECUTE format('SELECT $1.%I', fk_local) USING NEW INTO fk_val; |
| (** | |
| Talk given by Rizo Isrof | |
| - https://pusher.com/sessions/meetup/the-realtime-guild/realtime-stream-processing-with-coroutines | |
| - https://www.reddit.com/r/ocaml/comments/66pe0s/stream_processing_with_coroutines_from_c_to_ocaml/ | |
| *) | |
| # empty ;; | |
| - : ('a, 'b, unit) pipe = Ready () | |
| # |
| import java.lang.reflect.* | |
| import kotlin.reflect.KClass | |
| import kotlin.reflect.KType | |
| import kotlin.reflect.KTypeProjection | |
| import kotlin.reflect.KVariance | |
| import kotlin.reflect.full.createType | |
| // --- Interface --- | |
| inline fun <reified T : Any> getKType(): KType = |
| package com.blazingmammothgames.util; | |
| #if neko | |
| import neko.vm.Thread; | |
| import neko.vm.Mutex; | |
| #elseif cpp | |
| import cpp.vm.Thread; | |
| import cpp.vm.Mutex; | |
| #end |