1111#recent_clicked_articles | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Score | 1700000000 | 1710000000 | 1720000000 | 1730000000 |
Member | {"article_id": 1} | {"article_id": 2} | {"article_id": 3} | {"article_id": 4} |
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" | |
) | |
type eventType int | |
const ( |
Partition Key | Sort Key | Value |
---|---|---|
1111#region_id | null | 1234 |
2222#region_id | null | 5678 |
1111#notification_keywords | null | ["자전거", "아이폰", "에어팟"] |
1111#recent_clicked_articles | 1700000000 | {"article_id": 1} |
1111#recent_clicked_articles | 1710000000 | {"article_id": 2} |
1111#recent_clicked_articles | 1720000000 | {"article_id": 3} |
1111#recent_clicked_articles | 1730000000 | {"article_id": 4} |
Key | Value |
---|---|
1111#region_id | 1234 |
2222#region_id | 5678 |
1111#notification_keywords | ["자전거", "아이폰", "에어팟"] |
1111#recent_clicked_articles | [{"article_id": 1, "timestamp": 1700000000}, {"article_id": 2, "timestamp": 1710000000}, {"article_id": 3, "timestamp": 1720000000}, {"article_id": 4, "timestamp": 1730000000}] |
I hereby claim:
- I am mingrammer on github.
- I am mingrammer (https://keybase.io/mingrammer) on keybase.
- I have a public key ASCozwJWH7JP75YzsTAPDo-5h-mAz5CqxIhs-TVmQU--xgo
To claim this, I am signing this object:
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 typing import List | |
from .core.cards import Card | |
from .core.madehands import evaluate | |
from .player import Other | |
def bet( | |
my_chips: int, | |
my_cards: List[Card], |
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
function createCSV(data) { | |
var lineDelimiter = '\n'; | |
var csv = { | |
'title': '', | |
'head': '', | |
'body': '' | |
}; | |
csv.title = 'csv-title.csv'; | |
csv.head = '...'; // make your own csv head |
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 math | |
from pprint import pprint | |
import elasticsearch as es | |
import numpy as np | |
# Constants | |
INDEX_NAME = 'seoul-metro-2014' | |
THRESHOLD = 10 | |
CHUNK_SIZE = 5000 |
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
### without elif, else | |
if cond == 'one': | |
# something | |
return # or break | |
if cond == 'two': | |
# something | |
return # or break | |
# something | |
return # or break |
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
numbers = [1, 2, 3, 4, 5, 6] | |
# The left side of unpacking should be list or tuple. | |
*a, = numbers | |
# a = [1, 2, 3, 4, 5, 6] | |
*a, b = numbers | |
# a = [1, 2, 3, 4, 5] | |
# b = 6 |
NewerOlder