Skip to content

Instantly share code, notes, and snippets.

Avatar

Timothee Cour timotheecour

View GitHub Profile
View base64.nim
## Encoding data
## -------------
##
runnableExamples:
let encoded = encode("Hello World")
assert encoded == "SGVsbG8gV29ybGQ="
## Apart from strings you can also encode lists of integers or characters:
View gist:a9bbd9cf19b99b1e3ae8f639f9647ccd
const digitsTable* = "0001020304050607080910111213141516171819" &
"2021222324252627282930313233343536373839" &
"4041424344454647484950515253545556575859" &
"6061626364656667686970717273747576777879" &
"8081828384858687888990919293949596979899"
func digits10*(num: uint64): int {.noinline.} =
if num < 10:
result = 1
elif num < 100:
View gist:fc575c054cddba5bea32df98d1c50cdc
when defined case11e:
type Foo = object
f0: int
proc main=
var f = Foo(f0: 3)
var f2 = f.addr
f2[].f0 += 1
f2.f0 += 1
echo "--"
echo f
@timotheecour
timotheecour / # opencv - 2020-09-25_17-59-33.txt
Created Sep 25, 2020
opencv on Ubuntu 20.04.1 LTS - Homebrew build logs
View # opencv - 2020-09-25_17-59-33.txt
Homebrew build logs for opencv on Ubuntu 20.04.1 LTS
Build date: 2020-09-25 17:59:33
@timotheecour
timotheecour / # qt - 2020-09-22_05-29-33.txt
Created Sep 22, 2020
qt on Ubuntu 18.04.5 LTS - Homebrew build logs
View # qt - 2020-09-22_05-29-33.txt
Homebrew build logs for qt on Ubuntu 18.04.5 LTS
Build date: 2020-09-22 05:29:33
@timotheecour
timotheecour / # qt - 2020-09-21_21-59-41.txt
Created Sep 22, 2020
qt on Ubuntu 18.04.5 LTS - Homebrew build logs
View # qt - 2020-09-21_21-59-41.txt
Homebrew build logs for qt on Ubuntu 18.04.5 LTS
Build date: 2020-09-21 21:59:41
View gist:651249370f686efe05462f9dbf342d59
This file has been truncated, but you can view the full file.
2020-06-01T06:48:41.0088145Z ##[section]Starting: Request a runner to run this job
2020-06-01T06:48:41.3393926Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'windows-2019'
2020-06-01T06:48:41.3393962Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'windows-2019'
2020-06-01T06:48:41.3394008Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'windows-2019'
2020-06-01T06:48:41.4952861Z ##[section]Finishing: Request a runner to run this job
2020-06-01T06:48:47.8578763Z Current runner version: '2.263.0'
2020-06-01T06:48:47.8610492Z ##[group]Operating System
2020-06-01T06:48:47.8610974Z Microsoft Windows Server 2019
2020-06-01T06:48:47.8611105Z 10.0.17763
View gist:12606fb89a278a39c5aeddeb4f37de69
```
brew upgrade --verbose grpc
==> Upgrading 1 outdated package:
grpc 1.28.1_1 -> 1.29.1
==> Upgrading grpc 1.28.1_1 -> 1.29.1
==> Downloading https://homebrew.bintray.com/bottles/grpc-1.29.1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/c9/c96ba02fd205cb9dfa8dfc90d2b76c7e78fd361b6c0cc627d824926c62d4f7e5?__gda__=exp=1590188531~hmac=b4286aac46922918dfd0115c48819669447e27a35f436e8ad0a9b6962a8ed160&response-content-disposition=attachment%3Bfilename%3D%22grpc-1.29.1.catalina.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-nd0dORo9xhLSKrN0yzJSPN1KyrIt8umG0JXC-6Y2oLF-RMSvQAHZUvKb8NgtS_zITlzfdT1oVw-zNMo_-CbH3B3dLiVANHupSUUqGKQsGVyNU2b8z-6EArtnxcuyyqOMYmxtxZZjTIA&response-X-Checksum-Sha1=e5ee89d2b9c5a00c8ae22718eb5fbe99022b2af8&response-X-Checksum-Sha2=c96ba02fd205cb9dfa8dfc90d2b76c7e78fd361b6c0cc627d824926c62d4f7e5
/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.2.17-78-g9265ea0\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.4\)\ curl/7.64.1
View D20200427T201525.log
2020-04-28T02:48:42.4798690Z ##[section]Starting: Run CI
2020-04-28T02:48:42.4808120Z ==============================================================================
2020-04-28T02:48:42.4808540Z Task : Bash
2020-04-28T02:48:42.4808850Z Description : Run a Bash script on macOS, Linux, or Windows
2020-04-28T02:48:42.4809190Z Version : 3.163.1
2020-04-28T02:48:42.4809460Z Author : Microsoft Corporation
2020-04-28T02:48:42.4809860Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
2020-04-28T02:48:42.4810300Z ==============================================================================
2020-04-28T02:48:42.6380280Z Generating script.
2020-04-28T02:48:42.6417330Z ========================== Starting Command Output ===========================
View gist:058320de3093737967b82d57d95ff09c
discard """
action: compile
"""
{.warning[UnusedImport]: off.}
import
std/[
# Core:
bitops, typetraits, lenientops, macros, volatile,
You can’t perform that action at this time.