Skip to content

Instantly share code, notes, and snippets.

View lowewenzel's full-sized avatar
🍃
Easing in-out

Wenzel lowewenzel

🍃
Easing in-out
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lowewenzel on github.
  • I am wenzel (https://keybase.io/wenzel) on keybase.
  • I have a public key ASDgDKPiNtoTXCR395-dFyEljz9GE88wzbJYk1BiyGLgrwo

To claim this, I am signing this object:

@lowewenzel
lowewenzel / gif4.gif
Last active June 10, 2019 06:11
LinkedIn/Github
gif4.gif
@lowewenzel
lowewenzel / gif3.gif
Last active August 31, 2020 22:58
Website
gif3.gif
@lowewenzel
lowewenzel / gif2.gif
Last active January 13, 2023 02:36
Instagram
gif2.gif
@lowewenzel
lowewenzel / gif1.gif
Last active June 10, 2019 06:08
My Name!
gif1.gif
customer_id order_id number_of_items
10 4736 9
5 3049 1
1 4689 3
6 4114 9
1 4524 15
2 3727 16
3 3507 7
7 3988 3
5 4993 16
@lowewenzel
lowewenzel / main.go
Created May 3, 2019 18:51
Linear/2 Sum Function
package main
import "fmt"
import "math"
func CalcSum(numbers []int, left int, right int) int {
aFinished := make(chan int)
bFinished := make(chan int)
mid := int(math.Floor(float64(len(numbers)) / float64(2)))
@lowewenzel
lowewenzel / main_test.go
Created April 23, 2019 22:14
Linear Sum Function Benchmarks
package main
import "testing"
func BenchmarkCalcSum(b *testing.B) {
// run the CalcSum function b.N times
for n := 0; n < b.N; n++ {
numbers := []int{1, 5, 2, 7, 1, n}
CalcSum(numbers, 0, len(numbers))
}
@lowewenzel
lowewenzel / main.go
Created April 23, 2019 20:47
Linear Sum Function
package main
import "fmt"
func calcSum(numbers []int, left int, right int) int {
sum := 0
for i := left; i < right; i++ {
sum += numbers[i]
}
return sum