Some notes on working around limitations imposed by FLStudio's trial mode
Discover gists
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 { RouteRecordRaw } from 'vue-router'; | |
const layoutsImport = import.meta.glob('layouts/**/*.vue'); | |
const pagesImport = import.meta.glob('pages/**/*.vue'); | |
const pageRegex = /\.\/pages\/(.*)\.vue$/; | |
const layoutRegex = /\.\/layouts\/(.*)\.vue$/; | |
const routes: RouteRecordRaw[] = [ | |
{ |
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
<Page | |
x:Class="MediaDial.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | |
<StackPanel Padding="50"> |
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
#!/bin/bash | |
# | |
# Copy data from a Time Machine volume mounted on a Linux box. | |
# | |
# Usage: copy-from-time-machine.sh <source> <target> | |
# | |
# source: the source directory inside a time machine backup | |
# target: the target directory in which to copy the reconstructed | |
# directory trees. Created if it does not exists. | |
# |
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
// This code structure is the function that provides a stable "reference" so that it gets the proper variable | |
const regex = /function\(\){var a=new _\...,b=new ..;return _\.(..)\(a,..,1,b\)}/gm; | |
// Reference to the null checker function used in serialization (and many other things [will filter later]) | |
let nullchecker = "" | |
let nullcheckerWrapper = Object.keys(default_MakerSuite).find( | |
(makersuite_key) => { | |
const key = default_MakerSuite[makersuite_key] | |
if (typeof key != "function") return false | |
const sample_obj = {} // Was using for .bind() when testing injecting directly into the store. | |
// Might reuse later, but I can do things perfectly fine without access to the angular store so it was just unnecessary code |
20210814 劉仲敬訪談第152集
注:本文2.51萬字,下次更新在8月19日。
主持人:剿匪學院
發布時間:2021年8月14日
Existing asset loaders will need a few small changes to get them to work with Bevy Assets V2.
First, you'll need to add the asset type as an associated type of the loader. This type is called Asset
and represents the type of the "default asset" produced by the loader.
You'll also need to add a Settings
type which represents options that can be passed to the loader when you request an asset. If your asset has no settings, then you can just set it to the unit type.
https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
Make sure the following options are off:
Disable pre-fetching
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 SwiftUI | |
struct ContentView: View { | |
@State var show = false | |
var body: some View { | |
VStack { | |
Button("Pop Sheet") { show.toggle() } | |
} | |
.adaptiveSheet(isPresent: $show) { SheetView() } | |
} |
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
# We can produce samples from an un-normalized distribution by adding | |
# iid Gumbel noise together with the argmax operator; which is denoted as the Gumbel-Max Trick. | |
# However, argmax doesn't produce meaningful gradient signals, so we replace argmax | |
# by softmax, with a temperature parameter (Gumbel-Softmax Trick). | |
# | |
# I didn't invent any of this, all credit goes to the following papers: | |
# - https://arxiv.org/abs/1611.00712 | |
# - https://arxiv.org/abs/1611.01144 | |
import numpy as np |
NewerOlder