Skip to content

Instantly share code, notes, and snippets.

@hyukkwonepic
hyukkwonepic / feedback.md
Last active April 11, 2022 07:20
kart-match-record-clone 에 대한 피드백
  • README.md에 실행방법이 써있으면 좋겠다.
  • README.md에 한눈에 이 프로젝트의 내용을 알 수 있으면 좋겠다. 대표 GIF 이미지 하나 있으면 좋겠다. 또는 데모 링크.
  • README.md에 실행을 위한 준비법을 써놓으면 좋겠다. env.example 파일이 있으면 좋겠다.
@hyukkwonepic
hyukkwonepic / hello-protopie.json
Last active July 21, 2021 05:35
hello-protopie
{
"id": "1",
"title": "Hello, ProtoPie!",
"body": "Welcome! Let's make ProtoPie together :) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a faucibus purus. Nunc mattis nisl quis convallis egestas. Ut ornare maximus fringilla. Suspendisse a cursus arcu. Sed pharetra aliquam vehicula. Curabitur semper est id nibh rhoncus accumsan sed at dolor. Maecenas varius quam purus, non sodales erat vestibulum vitae. Nulla at dui odio. Aenean porta laoreet feugiat. Etiam a turpis pharetra, laoreet massa sed, vestibulum nisi. Nam eget bibendum massa. Nulla dictum, magna a commodo semper, turpis sapien maximus arcu, vel elementum velit elit eu massa. Cras euismod varius velit ac finibus. Fusce et fermentum sapien, ut tempus quam.",
"comments": [
{
"id": "1",
"body": "Find a variety of devices and device frames used for prototypes.",
"comments": [
{
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다.
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID');
// user_timeline_aggregated 피드에 대해서 2번 유저의 피드 객체를 생성합니다.
const userTwoTimelineAggregatedFeed = client.feed('user_timeline_aggregated', '2');
// 2번 유저의 user_timeline_aggregated 피드의 항목을 불러옵니다.
userTwoTimelineAggregatedFeed.get({
start: 0,
limit: 10,
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다.
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID');
// user_timeline_aggregated 피드에 대해서 2번 유저의 피드 객체를 생성합니다.
const userTwoTimelineAggregatedFeed = client.feed('user_timeline_aggregated', '2');
// 2번 유저의 user_timeline_aggregated 피드가 1번 유저의 user 피드를 팔로우합니다.
userTwoTimelineAggregatedFeed.follow('user', '1');
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다.
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID');
// user_timeline 피드에 대해서 2번 유저의 피드 객체를 생성합니다.
const userTwoTimelineFeed = client.feed('user_timeline', '2');
// 2번 유저의 user_timeline 피드의 항목을 불러옵니다.
userTwoTimelineFeed.get({
start: 0,
limit: 10,
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다.
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID');
// user_timeline 피드에 대해서 2번 유저의 피드 객체를 생성합니다.
const userTwoTimelineFeed = client.feed('user_timeline', '2');
// 2번 유저의 user_timeline 피드가 1번 유저의 user 피드를 팔로우합니다.
userTwoTimelineFeed.follow('user', '1');
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다.
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID');
// user 피드 그룹에 대해서 1번 유저의 피드 객체를 생성합니다.
const userOneFeed = client.feed('user', '1');
// 여러분의 DB에 새로운 트윗을 추가합니다.
const newTweet = await db.tweets.insert({ user: '1', tweet: '카페에 왔는데 옆자리 사람은 리눅스로 삽질을 하네. 이곳은 삽질 천국.' });
// 새로 생성된 트윗 항목을 토대로 새로운 액티비티를 생성하고 userOneFeed에 추가합니다.
iterate() {
let node = this.head
while (node) {
console.log(node.data)
node = node.next
}
}
search(data) {
let idx = 0
class LinkedList {
constructor() {
// head 속성은 연결 리스트의 첫번째 노드에 대한 포인터를 저장합니다
this.head = null
this.length = 0
}
insert(data) {
// 연결 리스트의 맨 처음에 추가합니다
// 원래 head 였던 항목은 두 번째 항목이 됩니다
class Node {
constructor(data, next=null) {
this.data = data
this.next = next
}
}
let ari = new Node('Ari')
let malcolm = new Node('Malcolm', ari)
let pete = new Node('Pete', malcolm)