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
/* | |
* Written by Joshua Saxby ("saxbophone") 2023-03-14 -- saxbophone.com | |
* | |
* This demonstration program for how to derive max/min "safe" integers for | |
* conversion to and from floating point is hereby released into the public domain. | |
*/ | |
#include <limits> // numeric_limits | |
#include <type_traits> // make_signed |
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
# DISCLAIMER: This is probably not the best way to do it. This is just one way to make it work. | |
# There's 2 stages: | |
# - building the app | |
# - serving the app | |
# Build step | |
FROM node:10 as builder | |
# in case you want to use ENV variables you need to provide them as build-time configuration arguments |
this guide is not meant to help with leaking or any stupid things you might do to ruin experience for other people
- Get latest version from Github Actions not releases from here , if you dont have account you can use site like nightly.link to download it , Latest build
- Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov
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
// zod schema | |
z.object({ | |
// valid if string or: | |
optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
nullable: z.string().nullable(), // field explicitly `null` | |
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
}); | |
// type | |
{ |
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 io.resound.ui.components | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.border | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Alignment | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.graphics.Color |
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 BlobView: View { | |
@State private var mainPosition: CGPoint = .zero | |
@State private var positions: [CGPoint] = [] | |
private let blurRadius = 20.0 | |
private let alphaThreshold = 0.875 | |
private let ballCount = 20 | |
The schema builder contains a variety of column types that you may specify when building your tables:
The schema builder contains a variety of column types that you may specify when building your tables:
Command` | Description |
---|---|
$table->bigIncrements('id'); |
Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column. |
$table->bigInteger('votes'); |
BIGINT equivalent column. |
The schema builder contains a variety of column types that you may specify when building your tables:
The schema builder contains a variety of column types that you may specify when building your tables:
Command` | Description |
---|---|
$table->bigIncrements('id'); |
Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column. |
$table->bigInteger('votes'); |
BIGINT equivalent column. |
NewerOlder