This currently supports vector development.
This file contains 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
from IPython.core.magic import needs_local_scope, register_line_magic | |
@register_line_magic | |
@needs_local_scope | |
def clip(line, local_ns): | |
import json | |
import os | |
import subprocess |
This file contains 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" | |
"encoding/json" | |
) | |
func main() { | |
var ( | |
lst []string |
This file contains 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
""" | |
https://github.com/containers/podman/issues/8016#issuecomment-920015800 | |
""" | |
import getpass | |
import os | |
import re | |
import shlex | |
import subprocess | |
from pathlib import Path |
This file contains 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
module github.com/linw1995/etcd_learning | |
go 1.16 | |
replace ( | |
github.com/coreos/bbolt => go.etcd.io/bbolt v1.3.6 | |
google.golang.org/grpc => google.golang.org/grpc v1.26.0 | |
) | |
require ( |
This file contains 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" | |
"time" | |
) | |
func main() { | |
now := time.Now() | |
fmt.Println( |
This file contains 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 ( | |
"bytes" | |
"encoding/csv" | |
"fmt" | |
"io" | |
"reflect" | |
) |
This file contains 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
// https://play.golang.org/p/bxTn8L2gf3d | |
package main | |
import ( | |
"fmt" | |
) | |
func Remove(arr []int, idx int) (rv []int) { | |
rv = arr[:idx] | |
rv = append(rv, arr[idx+1:]...) |
This file contains 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
import dataclasses | |
import json | |
from datetime import datetime | |
def convertor(v): | |
if isinstance(v, datetime): | |
return v.timestamp() | |
elif dataclasses.is_dataclass(v): | |
return dataclasses.asdict(v) |
NewerOlder