View valheim_plus.cfg
This file contains 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
[ValheimPlus] | |
; Change false to true to enable this section. https://valheim.plus/documentation/list#ValheimPlus | |
enabled = true | |
; Display the Valheim Plus logo in the main menu | |
mainMenuLogo = true | |
; Display the advertisement of our server hosting partner on the server browser menu | |
serverBrowserAdvertisement = true |
View locate_block.rs
This file contains 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::{path::PathBuf, fs::File, env, collections::HashMap, rc::Rc, cell::RefCell, fmt::Display}; | |
use itertools::Itertools; | |
use fastanvil::*; | |
use rayon::prelude::{ParallelIterator, IntoParallelIterator}; | |
#[derive(Clone, Eq, PartialEq, Debug)] | |
struct BlockDescriptor { | |
name: String, | |
x: i64, |
View index.html
This file contains 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
<meta charset="utf-8"> | |
<style> | |
.square-root { | |
--n: 0; | |
--guess-0: 1; | |
--guess-1: calc(0.5 * calc(var(--guess-0) + calc(var(--n) / var(--guess-0)))); | |
--guess-2: calc(0.5 * calc(var(--guess-1) + calc(var(--n) / var(--guess-1)))); | |
--guess-3: calc(0.5 * calc(var(--guess-2) + calc(var(--n) / var(--guess-2)))); | |
--guess-4: calc(0.5 * calc(var(--guess-3) + calc(var(--n) / var(--guess-3)))); |
View superset_elimination.go
This file contains 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
package rewriting | |
import ( | |
"exprparser/expr" | |
) | |
// eliminateSupersets Eliminates supersets from the expression tree | |
// | |
// Given the expression: | |
// (A || B) && (A || B || C) && (A || C) |
View example.js
This file contains 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
async function renderToString(vnodes) { | |
const el = document.createElement("div") | |
return new Promise(resolve => { | |
createApp({ | |
setup() { | |
onMounted(() => resolve(el.innerHTML) | |
return () => vnodes | |
}, | |
}).mount(el) | |
}) |
View app.ts
This file contains 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 { createApp, configureCompat } from "vue" | |
configureCompat({ MODE: 3 }) | |
const app = createApp({ | |
setup() { | |
return { | |
// stuff | |
} | |
} |
View tsconfig.json
This file contains 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
Show hidden characters
// If you're using typescript or ts-check you can alias the composition api package as well: | |
{ | |
"compilerOptions": { | |
// … other stuff omitted for brevity … | |
// Ensure your base url is set | |
"baseUrl": ".", | |
"paths": { | |
// Add composition API to your compiler options and alias it to the vue 3 install | |
// The path is relative to `baseUrl` above |
View webpack.mix.js
This file contains 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
const mix = require("laravel-mix") | |
mix.site = (id, callback) => { | |
if (!process.env.SITE || process.env.SITE === id) { | |
return callback() | |
} | |
}; | |
mix.site('admin', () => { | |
mix.js("resources/js/admin/app.js", "public/js/admin.js") |
View date.swift
This file contains 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
#!/usr/bin/env swift | |
import Foundation | |
let df = DateFormatter() | |
df.locale = Locale(identifier: "en_US") | |
df.timeZone = TimeZone(identifier: "Antarctica/Casey") | |
df.setLocalizedDateFormatFromTemplate("zzzz") | |
print("\(String(describing: df.timeZone))") | |
print(df.string(from: Date())) |
View AttachContext.php
This file contains 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
<?php | |
namespace App\Logs\Sticky; | |
use Illuminate\Log\Logger; | |
class AttachContext | |
{ | |
public function __invoke(Logger $logger) | |
{ |
NewerOlder