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
trait Animal { | |
int get_id(); | |
void talk() {} | |
} | |
struct AnimalBase { | |
Animal animal...; | |
int id; | |
void new(int id) { |
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
struct Node<any T> { | |
T data; | |
Node<T>* next = 0; | |
void new(T data) { | |
this.data = data; | |
} | |
}; | |
struct LinkedList<any T> { | |
Node<T>* head = 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
# install node | |
if [ -z $WITHOUT_NODE ]; then | |
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - | |
apt install -y nodejs | |
npm i -g pm2 yarn http-server | |
fi | |
# install utilities | |
if [ -z $WITHOUT_UTILS ]; then | |
apt install htop |
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
<View> | |
<PaintStyle fill="red" shadowColor="black" shadowBlur={5}> | |
<Text x={650} y={L.lpChy} font="40px Roboto"> | |
{player.lpChanged} | |
</Text> | |
</PaintStyle> | |
<CardCollection | |
x={350} | |
y={L.handY} | |
cards={player.hand} |
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
Dự án Kaka | |
=================== | |
Kaka là mạng xã hội hướng đến khả năng tương tác cao hơn và kết nối tốt hơn những thành viên chưa biết nhau. Với triết lí là tạo điều kiện để mọi người quen nhau qua cách trò chuyện, sự hợp nhau về tính cách, vẻ đẹp tâm hồn, hạn chế sự tập trung quá mức về vẻ bề ngoài. | |
## Cách thức | |
Để thực hiện triết lí đó, Kaka gồm 2 phần: gặp gỡ 1-1 và cộng đồng trao đổi. | |
###Gặp gỡ 1-1 | |
Để 2 người bất kì có thể nhanh chóng làm quen, kết nối với nhau, Kaka tổ chức hình thức gặp mặt trực tiếp thông qua Voice, trong 1 khoảng thời gian cố định (vài phút) và sau cuộc gặp 2 người có thể quyết định có muốn làm bạn với nhau hay không. | |
Tại sao là Voice mà không phải Video Call? Khi có video thì người dùng có xu hướng rất kén chọn về nhan sắc và liên tục "vuốt" để chuyển qua người khác . Đối với Voice thì người bên kia là bí ẩn, phải nói chuyện thực sự mới biết thế nào. | |
Nhưng nếu chỉ gặp gỡ ngẫu nhiên như vậy thì rất khó để gặp người phù hợp với mình. Vì vậy Kaka có tính năng *tin nhắn chai* và *đặt lị |
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
"use strict"; | |
/** | |
* Module dependencies | |
*/ | |
// Node.js core. | |
const path = require("path"); | |
const fs = require("fs"); |
This file has been truncated, but you can view the full file.
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
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 9.6.3 | |
-- Dumped by pg_dump version 9.6.3 | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; | |
SET idle_in_transaction_session_timeout = 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
<div class="row-fluid"> | |
<div class="col-sm-1"> | |
<c:votebox @vote="Vm.Post.Vote" @vote_url="Vm.postVoteUrl()"></c:votebox> | |
</div> | |
<div class="col-sm-11"> | |
<div> | |
<a @href="ctx().getPostLink(Vm.Post)">{{ Vm.Post.Title }}</a> | |
<span class="label label-default" @for(_,label)="Vm.Post.Labels">{{ label }}</span> | |
</div> | |
<div> |
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
* Không đơn giản là blogging, là 1 mxh blogging | |
* Sử dụng tốt các platform, các mạng xã hội khác làm nền tảng | |
* Phải thu hút đc những người viết blog chuyên nghiệp | |
* Những chức năng để người viết blog chuyên nghiệp thoải mái về mặt chức năng, đăng quảng cáo, thoải mái về giao diện... có cần thiết không? <- Kiên: trước mắt là không | |
* |
NewerOlder