I know that sqlite is famously faster than fopen.
This demo showcase was hilarious and cool, but something is off.
I can see how not having tcp between the DB and the app is fast, but over 10x faster than in process sqlite (which can run in memory?)
I dont know...
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
| # Hacker News MOTD | |
| _hn_output=$(source "$HOME/rcfiles/hacker-news.sh") | |
| if [[ -n "$_hn_output" ]]; then | |
| echo "$_hn_output" | |
| else | |
| echo "⏳ Fetching Hacker News in the background..." | |
| fi | |
| unset _hn_output |
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
| make install | |
| pushd sdk/nodejs | |
| make install_plugin | |
| popd | |
| pushd ../../examples/examples/misc/test | |
| # Capture the output of the test command | |
| test_output_raw=$(esc run pulumi/providers/all -- go test -json . --timeout 4h -v -count=1 -short -parallel 40 --tags=all --run=TestAccAwsTsS3Folder | gotestfmt) | |
| echo "$test_output_raw" |
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
| <.table id="products" rows={@products} row_click={&JS.navigate(~p"/products/#{&1}")}> | |
| <:col :let={product} label="Title">{product.title}</:col> | |
| <:col :let={product} label="Description">{product.description}</:col> | |
| <:col :let={product} label="Price">{product.price}</:col> | |
| <:col :let={product} label="Views">{product.views}</:col> | |
| <:col :let={product} label="Categories"> | |
| <div :if={product.categories != []} class="group relative"> | |
| <span class="flex cursor-pointer items-center text-zinc-400 group-hover:text-zinc-600"> | |
| <.icon name="hero-tag-mini" class="h-4 w-4" /> | |
| <span class="ml-1 text-xs">{length(product.categories)}</span> |
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
| ```ts | |
| import * as pulumi from "@pulumi/pulumi"; | |
| import * as aws from "@pulumi/aws"; | |
| import * as std from "@pulumi/std"; | |
| function notImplemented(message: string) { | |
| throw new Error(message); | |
| } | |
| function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> { |
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
| name: random | |
| runtime: yaml | |
| plugins: | |
| providers: | |
| - name: xyz | |
| path: ../deletemepulumiprovider/bin | |
| version: 0.1.0 | |
| resources: | |
| myHelloWorld: |
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.IO; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEditor.Animations; | |
| public class AnimatorParameterPostprocessor : AssetPostprocessor | |
| { | |
| // This method is called whenever assets are imported, deleted, or moved | |
| static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) | |
| { |
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.IO; | |
| using UnityEditor; | |
| using UnityEditor.Animations; | |
| public class AnimatorParameterGenerator | |
| { | |
| [MenuItem("Tools/Generate Animator Parameters")] | |
| public static void Generate() | |
| { | |
| string[] guids = AssetDatabase.FindAssets("t:AnimatorController"); |