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
{ | |
// Inside your nuxt.config.js | |
hooks: { | |
"generate:done": (builder) => { | |
const options = builder.nuxt.options | |
const hash = options.publicRuntimeConfig.content.dbHash | |
const fileName = resolve(options.generate.dir, '_nuxt', 'content', `db-${hash}.json`) | |
console.log('Deleting content database file:', fileName) | |
unlinkSync(fileName) | |
}, |
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
KBD USDamAlt "US Custom Alt-Symbols" | |
COPYRIGHT "None" | |
COMPANY "None" | |
LOCALENAME "en-US" | |
LOCALEID "00000409" |
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
{ | |
"keyboard_name": "mehkee96", | |
"url": "", | |
"maintainer": "qmk", | |
"layouts": { | |
"LAYOUT": { | |
"layout": [ | |
{ "label": "Esc", "x": 0, "y": 0 }, | |
{ "label": "F1", "x": 1, "y": 0 }, | |
{ "label": "F2", "x": 2, "y": 0 }, |
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
/* global fetch */ | |
export const handler = async (event, context) => { | |
// Validate parameters | |
const { firstName, lastName, email, message, token } = JSON.parse(event.body) | |
if (!firstName || !lastName || !email || !message || !token) { | |
return { statusCode: 400, body: JSON.stringify({ statusMessage: "Missing required fields" })} | |
} | |
// Validate captcha |
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
#pragma author DamienG | |
#pragma description Amstrad CPC/PCW, Sinclair ZX Spectrum +3 disk image | |
#pragma endian little | |
fn fdcSizeToByteCount(u8 sectorSize) { | |
return 2 << (sectorSize + 6); | |
}; | |
fn getSectorDataSize(u8 sector) { | |
return parent.sectorInfo[sector].sectorDataSize; |
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 { stringify } from "yaml" | |
export default { | |
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> { | |
// Make sure this is a POST to /post-comment | |
if (request.method !== "POST" || new URL(request.url).pathname !== "/post-comment") { | |
return new Response("Not found", { status: 404 }) | |
} | |
// We only accept form-encoded bodies |
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 { stringify } from "yaml"; | |
export default { | |
async fetch( | |
request: Request, | |
env: Env, | |
ctx: ExecutionContext | |
): Promise<Response> { | |
// Make sure this is a POST to /post-comment | |
if ( |
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
using System.Globalization; | |
using System.Text.RegularExpressions; | |
namespace MongoDB.EntityFrameworkCore; | |
/// <summary> | |
/// A variety of helper methods for creating names. | |
/// </summary> | |
public static partial class NamingHelperMethods | |
{ |
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
{ | |
"version": 1, | |
"notes": "", | |
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", | |
"keyboard": "mehkee96", | |
"keymap": "mehkee96_layout_mine", | |
"layout": "LAYOUT", | |
"layers": [ | |
[ | |
"KC_ESC", |
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
namespace BinarySubset | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const int minBytes = 15; | |
const int minUniques = 5; | |
var uniqueBytes = new bool[256]; |
NewerOlder