812 karma · joined Oct 10, 2013 (13y ago) · 304 submissions
comment 3y ago · link · parent
[0] https://developer.apple.com/library/archive/documentation/Au...
comment 3y ago · link · parent
#!/usr/bin/env -S dotnet fsi
#r "nuget: Avalonia, 11.0.0-preview4"
#r "nuget: Avalonia.Desktop, 11.0.0-preview4"
#r "nuget: Avalonia.Themes.Fluent, 11.0.0-preview4"
#r "nuget: JaggerJo.Avalonia.FuncUI, 0.6.0-preview4"
open Avalonia
open Avalonia.Controls
open Avalonia.Controls.ApplicationLifetimes
open Avalonia.FuncUI
open Avalonia.FuncUI.DSL
open Avalonia.FuncUI.Hosts
open Avalonia.Layout
open Avalonia.Themes.Fluent
open System
module Main =
let view =
Component(fun ctx ->
DockPanel.create
[ DockPanel.children
[ TextBlock.create
[ TextBlock.fontSize 48.0
TextBlock.verticalAlignment VerticalAlignment.Center
TextBlock.horizontalAlignment HorizontalAlignment.Center
TextBlock.text "Hello world!" ] ] ])
type MainWindow() =
inherit HostWindow()
do
base.Title <- "Hello World!"
base.Height <- 400.0
base.Width <- 400.0
base.Content <- Main.view
type App() =
inherit Application()
override this.Initialize() =
this.Styles.Add(FluentTheme(baseUri = null, Mode = FluentThemeMode.Dark))
override this.OnFrameworkInitializationCompleted() =
match this.ApplicationLifetime with
| :? IClassicDesktopStyleApplicationLifetime as desktopLifetime ->
let mainWindow = MainWindow()
desktopLifetime.MainWindow <- mainWindow
| _ -> ()
AppBuilder
.Configure<App>()
.UsePlatformDetect()
.UseSkia()
.StartWithClassicDesktopLifetime(Environment.GetCommandLineArgs())comment 3y ago · link · parent
https://stackoverflow.com/questions/35959979/functional-comp...
comment 4y ago · link · parent
[0] https://www.irs.gov/instructions/i1040gi#en_US_2021_publink1...
comment 4y ago · link · parent
I mean, I guess if you figured out where qualia and continuity of consciousness came from, you could engineer past lives for ethical purposes, so you aren't really killing people if you have to restart the simulation.
Alternately, if conscious observers are actually privileged over unconscious observers is some medium independent way (read: souls exist and spontaneously come into existence anywhere consciousness happens), that would just be an engineering limitation a universe developer would have to deal with.
comment 4y ago · link · parent
comment 4y ago · link · parent
Except that's not how it works. An excess of fat can directly cause problems.
Above a certain point, having too much fat causes chronic hypoxia in fatty tissue, leading to chronic inflammation, which can eventually lead to systemic problems like insulin resistance, cardiovascular disease, kidney failure, liver disease, and cancer.
Edit: I am specifically referring to abdominal fat in excess of what a given body is able to cope with.
comment 4y ago · link · parent
#!/usr/bin/env bash
set -euo pipefail
QUERY=$(cat <<EOF
{
"variables":{
"app":"$1",
"start":"$(date +%Y-%m)",
"end":"$(date -d "$(date +%Y%m01) +1 month -1 day" +%Y-%m-%d)"
},
"query":"query (\$app: String!, \$start: ISO8601DateTime!, \$end: ISO8601DateTime!) { app(name: \$app) { organization { billables(startDate: \$start, endDate: \$end) { edges { node { app { id } category quantity } } } } } } "
}
EOF
)
curl https://api.fly.io/graphql \
-H "Authorization: Bearer $(fly auth token)" \
-H 'content-type: application/json' \
--compressed \
-X POST \
--data-raw "$QUERY" \
--silent |
jq '[.data.app.organization.billables.edges[].node | select(.app.id == "'"$1"'" and .category == "data_out") | .quantity] | add'comment 4y ago · link · parent
comment 5y ago · link · parent
[0] https://www.reddit.com/r/javascript/comments/c8drjo/nobody_t...
comment 5y ago · link · parent
Stack Overflow's annual survey puts JavaScript, SQL, and Python at the top, with C at 12th [0]. RedMonk's Top 20 puts JavaScript, Python, and Java at the top, with C in 10th [1]. ITJobsWatch puts JavaScript, SQL, and C# at top, with C at 9th [2]. Dice puts SQL, Java, and Python as its top 3, with C not even ranking in their top 12 [3]. All of those put JavaScript, Java, and Python in the top 5.
[0] https://insights.stackoverflow.com/survey/2021#most-popular-...
[1] https://redmonk.com/kfitzpatrick/2021/03/02/redmonk-top-20-l...
[2] https://www.itjobswatch.co.uk/default.aspx?ql=&ll=&id=900&p=...
[3] https://insights.dice.com/2021/01/05/top-12-programming-lang...