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
package main | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
"os" | |
) | |
func main() { |
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
package jeska | |
import ( | |
"image" | |
"image/color" | |
) | |
func CircleOutline(img *image.RGBA, r int, c color.RGBA) { | |
t1 := r / 16 // Nicer looking circle when initialized. | |
x := r |
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
// ---------------------------------------------------------------------------- | |
// Second stage boot code | |
// Copyright (c) 2019-2021 Raspberry Pi (Trading) Ltd. | |
// SPDX-License-Identifier: BSD-3-Clause | |
// | |
// Device: Anything which responds to 03h serial read command | |
// | |
// Details: * Configure SSI to translate each APB read into a 03h command | |
// * 8 command clocks, 24 address clocks and 32 data clocks | |
// * This enables you to boot from almost anything: you can pretty |
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
package odb2p | |
import ( | |
_ "embed" | |
"fmt" | |
"os" | |
"strings" | |
"testing" | |
) |
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
package main | |
import ( | |
"errors" | |
"log" | |
"net/netip" | |
"os" | |
"unsafe" | |
"golang.org/x/sys/unix" |
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
package sets | |
// a | b | |
func union[T comparable](a, b map[T]struct{}) map[T]struct{} { | |
c := make(map[T]struct{}) | |
for k := range a { | |
c[k] = struct{}{} | |
} | |
for k := range b { | |
c[k] = struct{}{} |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"strings" | |
wd "github.com/fedesog/webdriver" | |
) |
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
{ | |
// Font | |
"editor.fontFamily": "JetBrains Mono NL", // Install font first. | |
"editor.fontLigatures": false, | |
// Editor | |
"workbench.sideBar.location": "right", | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": 2, | |
"files.associations": { |
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
! To compile program with LAPACK: | |
! gfortran main.f90 -L/home/pato/src/lia/lapack -llapack -lrefblas | |
program main | |
implicit none | |
integer, parameter :: is=2, js=2, nb=2,mb=2 | |
double precision :: one, rhs(8) | |
integer, parameter :: m=4, n=4 ! constants for test. | |
integer, parameter :: lda=m, ldb=n, ldc=m, ldd=m, lde=n, ldf=m ! expected leading dimensions |
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
package main | |
type Impl struct{} | |
func (Impl) X() { | |
} | |
type Xer interface{ X() } // X This is the xer implementation | |
// Second line |
NewerOlder