Skip to content

Instantly share code, notes, and snippets.

View seemcat's full-sized avatar
😀
going full-time on content

mari seemcat

😀
going full-time on content
View GitHub Profile
@seemcat
seemcat / nws3-irl-in-sf.txt
Last active May 24, 2023 06:39
buildspace n&w s3 - irl in sf
Kyle K.
Kei H.
kahron s.
Alan H.
Ashita A.
Shahir A.
Moin B.
Mustafa T.
arib k.
Omar K.
{table && (
<FormField
label="Group by"
width="33.33%"
paddingLeft={1}
marginBottom={0}
>
<FieldPickerSynced
table={table}
globalConfigKey={
@seemcat
seemcat / algo4.go
Created January 9, 2019 17:52
c0d3 solved in Go
package main
import (
"fmt"
)
// default parameters
var list []int
var biggerNum int
var i int = 1
@seemcat
seemcat / algo3.go
Created January 9, 2019 08:00
c0d3 solved in Go
func solution8(num1, num2 int) int {
var list []int
var biggerNum int
if num1 > num2 {
biggerNum = num1
} else {
biggerNum = num2
}
@seemcat
seemcat / algo3.js
Created January 9, 2019 07:59
c0d3 solved in JS
const solution = (num1, num2, common = [], i = 2) => {
if (num1 % i === 0 && num2 % i === 0) common.push(i);
if (i === num1 || i === num2) return Math.max(...common);
return solution(num1, num2, common, i + 1);
};
@seemcat
seemcat / algo2.go
Created January 8, 2019 19:48
c0d3 solved in Go
package main
import (
"time"
"fmt"
"sync"
)
func newFunc(b int, fn func()) func() {
return func() {
@seemcat
seemcat / algo2.js
Created January 8, 2019 19:48
c0d3 solved in JS
const solution = (num1, num2, func) => {
setTimeout(() => {
func();
setTimeout(() => func(), num2);
}, num1);
};
// Test by checking to see if console.log's
// are being printed out accordingly.
const testFunc = () => console.log("hello");
@seemcat
seemcat / algo1.go
Last active January 12, 2019 22:25
c0d3 solved in Go
package main
import (
"fmt"
)
var i int = 1
func solution9(num int) int {
@seemcat
seemcat / algo1.js
Created January 8, 2019 19:48
c0d3 solved in JS
const solution = (num, i = 0) => {
if ((num + i) % 7 === 0) return num + i;
return solution(num, i + 1);
};
@seemcat
seemcat / noTypeError.js
Created January 8, 2019 17:53
No Error With Type in JS
a = "hello";
// prints out hello
b = 6;
// prints out 6
a + b;
// prints out hello6