Skip to content

Instantly share code, notes, and snippets.

@spikeekips
spikeekips / stopwords-ko.txt
Created January 13, 2017 07:32
Korean Stopwords
가까스로
가령
각각
각자
각종
갖고말하자면
같다
같이
@spikeekips
spikeekips / README.md
Last active February 17, 2024 01:34
Import & Export Script For Google Apps Script

Export & Import Google Apps Script

How To Use

Get the OAuth token

  1. Open OAuth 2.0 Playground
  2. Set the valid scopes, select all the scopes in Drive API
  3. Follow the steps
  4. Get the Access Token
diff --git isaac/block/localfs_writer.go isaac/block/localfs_writer.go
index 9bdfa2b9..d963da88 100644
--- isaac/block/localfs_writer.go
+++ isaac/block/localfs_writer.go
@@ -146,6 +146,7 @@ func (w *LocalFSWriter) SetOperationsTree(ctx context.Context, tw *fixedtree.Wri
func(ctx context.Context, _ uint64) error {
_ = w.opsf.Close()
+ if l := atomic.LoadUint64(&w.lenops); l > 0 {
if err := w.m.SetItem(NewLocalBlockMapItem(
diff --git isaac/block/localfs_writer.go isaac/block/localfs_writer.go
index 9bdfa2b9..eda6c126 100644
--- isaac/block/localfs_writer.go
+++ isaac/block/localfs_writer.go
@@ -15,7 +15,6 @@ import (
"strconv"
"strings"
"sync"
- "sync/atomic"
#!/bin/sh
set -e
set -x
cd ./example
go build \
-gcflags=-trimpath=$GOPATH \
-asmflags=-trimpath=$GOPATH \
@spikeekips
spikeekips / es-dump-index.py
Last active September 10, 2022 00:01
The simple script to dump the data from ElasticSearch for inserting by bulk API.
# -*- coding: utf-8 -*-
"""
################################################################################
Dump ElasticSearch index for inserting BULK
################################################################################
requires `rawes`.
for more details, run `-h` to show help message.
diff --git a/base/address_decoder.go b/base/address_decoder.go
index b7a4b5fb..2443ca70 100644
--- a/base/address_decoder.go
+++ b/base/address_decoder.go
@@ -11,6 +11,10 @@ type AddressDecoder struct {
}
func (ad *AddressDecoder) Encode(enc encoder.Encoder) (Address, error) {
+ if ad == nil {
+ return nil, nil
package main
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"fmt"
#!/bin/bash
#set -x
finish() {
tput sgr0
docker volume prune -f
docker container prune -f
}
diff --git a/base/node/errors.go b/base/node/errors.go
new file mode 100644
index 0000000..c66df3b
--- /dev/null
+++ b/base/node/errors.go
@@ -0,0 +1,23 @@
+package node
+
+import "github.com/spikeekips/mitum/base"
+