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
{ | |
"a": 4.0 | |
} |
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
<!DOCTYPE html> | |
<html lang="zh-cn"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Elasticsearch reference v6.5.3 笔记 - 大白的碎碎念</title> | |
<meta name="renderer" content="webkit" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
<meta http-equiv="Cache-Control" content="no-transform" /> |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*-" | |
import uuid | |
import os | |
from qcloud_cos import CosConfig | |
from qcloud_cos import CosS3Client | |
from qcloud_cos import CosServiceError | |
from qcloud_cos import CosClientError |
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
class SuperClass(object): | |
__table_name__ = 'subject_collection' | |
__table = 'd' | |
@classmethod | |
def get(cls): | |
inst = cls() | |
inst.__class__ = SubClass | |
return inst | |
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 ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"reflect" | |
) | |
func main() { |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*-" | |
class Nums(object): | |
def __init__(self, num): | |
self.elems = list(range(num)) | |
def __getitem__(self, sliced): | |
return self.elems[sliced] |
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" | |
func dup3(in <-chan int) (<-chan int, <-chan int, <-chan int) { | |
a, b, c := make(chan int, 2), make(chan int, 2), make(chan int, 2) | |
go func() { | |
for { | |
val := <-in |