📂 Minimize allocations in Go
A collection of tips for when you need to minimize the number of allocations in your Go programs.
Use the go profiler to identify which parts of your program are responsible for most allocations.
A collection of tips for when you need to minimize the number of allocations in your Go programs.
Use the go profiler to identify which parts of your program are responsible for most allocations.
import 'package:flutter/material.dart'; | |
const double _kPanelHeaderCollapsedHeight = kMinInteractiveDimension; | |
const EdgeInsets _kPanelHeaderExpandedDefaultPadding = EdgeInsets.symmetric( | |
vertical: 64.0 - _kPanelHeaderCollapsedHeight, | |
); | |
class _SaltedKey<S, V> extends LocalKey { | |
const _SaltedKey(this.salt, this.value); |
--[[ | |
release.luau - A Lune script for publishing Roblox games | |
MPL 2.0 License | |
(c) 2024, Zack Ovits | |
usage: lune run release | |
--]] | |
-- Lune libraries | |
local stdio = require("@lune/stdio") |
version: '3' | |
services: | |
traefik: | |
restart: unless-stopped | |
image: traefik:v2.0.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
labels: | |
- "traefik.http.services.traefik.loadbalancer.server.port=8080" |
let Start=startofday(ago(2d)); | |
let Stop=startofday(ago(1d)); | |
requests | |
| where timestamp >= Start and timestamp < Stop | |
| summarize Count=count() by bin(timestamp, 1h) | |
| union ( | |
range x from 1 to 1 step 1 | |
| mv-expand timestamp=range(Start, Stop, 1h) to typeof(datetime) | |
| extend Count = 0 | |
) |
## 見出し2
### 見出し3
#### 見出し4
##### 見出し5
###### 見出し6 ## Block 段落 空白行を挟むことで段落となります。 ```
段落1
(空行)
段落2
``` 段落1 段落2 ## Br 改行 改行の前に半角スペース` `を2つ記述します。 ```
hoge
fuga(スペース2つ)
piyo
``` hoge
fuga piyo ## Blockquotes 引用 先頭に`>`を記述します。ネストは`>`を多重に記述します。 ```
> 引用 > 引用
>> 多重引用
``` > 引用 > 引用
>> 多重引用 ## Code コード `` `バッククオート` `` 3つ、あるいはダッシュ`~`3つで囲みます。 ```
print 'hoge'
``` ```
print 'hoge'
``` ### インラインコード `` `バッククオート` `` で単語を囲むとインラインコードになります。 ```
これは `インラインコード`です。
``` これは `インラインコード`です。 ## pre 整形済みテキスト 半角スペース4個もしくはタブで、コードブロックをpre表示できます ``` class Hoge def hoge print 'hoge' end end
``` class Hoge def hoge print 'hoge' end end ## Hr 水平線 アンダースコア`_` 、アスタリスク`*`、ハイフン`-`などを3つ以上連続して記述します。 ```
hoge
***
hoge
___
hoge
---
``` hoge
***
hoge
___
hoge
--- # Lists ## Ul 箇条書きリスト ハイフン`-`、プラス`+`、アスタリスク`*`のいずれかを先頭に記
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import urllib.request, urllib.error, urllib.parse | |
import os, sys, datetime, argparse, re | |
import subprocess | |
import base64 | |
import shlex | |
import logging | |
from sys import argv |
/* | |
Twitch chat browsersource CSS for OBS | |
Original by twitch.tv/starvingpoet modified by github.com/Bluscream | |
Just set the URL as either one of | |
- https://www.twitch.tv/%%TWITCHCHANNEL%%/chat?popout=true | |
- https://www.twitch.tv/popout/%%TWITCHCHANNEL%%/chat | |
- https://www.twitch.tv/embed/%%TWITCHCHANNEL%%/chat?parent=localhost | |
And paste this entire file into the CSS box or paste direct import css like |
/* | |
<article class="full-height-column"> | |
<header></header> | |
<section></section> | |
<footer></footer> | |
</article> | |
*/ | |
.full-height-column { | |
display: flex; |