Download OCI8 2.1.8 - 7.2 Thread Safe (TS) x86
Discover gists
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
Function Import( vbsFile ) | |
REM@description | |
' Import/include/using code from an external VBScript file. | |
REM@author | |
' Jeremy England, http://codeartery.com/ | |
REM@params | |
' vbsFile <string> - A relative, absolute, or URL path to a file containing vbscript code. | |
REM@returns | |
' Import <bool> - Returns False if the import failed, and True if it succeeded. | |
REM@mini |
#!/bin/bash | |
FIXED_MINIAUDIO_URL=" | |
https://raw.githubusercontent.com/mackron/miniaudio/fe5f17ecf3189c680855b030467bcfa9f8d26143/miniaudio.h" | |
curl -L $FIXED_MINIAUDIO_URL -o src/external/miniaudio.h | |
mkdir -p build | |
cd build | |
cmake \ |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
<template> | |
<div class="editorjs" ref="htmlelement"></div> | |
</template> | |
<script setup> | |
import EditorJS from '@editorjs/editorjs'; | |
import EmbedTool from '@editorjs/embed'; | |
import ListTool from '@editorjs/list'; | |
import ImageTool from '@editorjs/image'; | |
import VideoTool from './editorjs/video.js'; | |
import { onMounted, onUnmounted, ref, watch } from 'vue'; |
<?php | |
function custom_search_join( $join ) { | |
global $wpdb; | |
if( is_search() ) { | |
$join .= " INNER JOIN $wpdb->users ON " | |
. "$wpdb->posts.post_author = $wpdb->users.ID "; | |
} | |
return $join; | |
} | |
function custom_search_where( $where, $query ) { |
import { useSyncExternalStore } from "react"; | |
// For more on the useSyncExternalStore hook, see https://react.dev/reference/react/useSyncExternalStore | |
// The code is almost identical to the source code of zustand, without types and some features stripped out. | |
// Check the links to see the references in the source code. | |
// The links are referencing the v5 of the library. If you plan on reading the source code yourself v5 is the best way to start. | |
// The current v4 version contains lot of deprecated code and extra stuff that makes it hard to reason about if you're new to this. | |
// https://github.com/pmndrs/zustand/blob/fe47d3e6c6671dbfb9856fda52cb5a3a855d97a6/src/vanilla.ts#L57-L94 | |
function createStore(createState) { |
When I first started to learn how to use NixOS, the Nix package manager, and how to work with the Nix language, I was overwhelmed. While it did not take me too long to (sort of) get into it, it was not the most pleasant experience. I would say that there is not really a single source of truth, like Arch Linux users have with the ArchWiki, where you can basically look up everything. Instead, the information is spread across many different sources, which can make it difficult for beginners to find out how to do what they want to do.
The "modern nix CLI", also known as "nix3 cli", is another thing that can cause confusion when you are just starting your nix journey. There are some commands that look almost exactly the same, such as nix shell
compared to nix-shell
or nix-build
compa