Skip to content

Instantly share code, notes, and snippets.

View vuthaihoc's full-sized avatar
🤒
ke ke ặc ặc

Stupid Dev vuthaihoc

🤒
ke ke ặc ặc
View GitHub Profile
@vuthaihoc
vuthaihoc / post.md
Created April 11, 2018 19:03 — forked from ikwattro/post.md
Discover Graph Databases with Neo4j & PHP

Discover Graph Databases with Neo4j and PHP

Graph databases are now one of the core technologies of companies dealing with highly connected data.

Business graphs, social graphs, knowledge graphs, interest graphs and media graphs are frequently in the (technology) news. And for a reason. The graph model represents a very flexible way of handling relationships in your data. And graph databases provide fast and efficient storage, retrieval and querying for it.

Neo4j, the most popular graph database, has proven that ability to deal with massive amount of high connected data in many use-cases.

Last Modified: 4 April 2018

Facebook Business Tools Terms

The Facebook Business Tools are a subset of Facebook Products that we provide to help website owners and publishers, developers, advertisers, business partners (and their customers) and others integrate, use and exchange information with Facebook. The Facebook Business Tools include APIs and SDKs, the Facebook pixel, social plugins such as the Like and Share buttons, Facebook Login and Account Kit, as well as other platform integrations, plugins, code, specifications, documentation, technology and services. By clicking "Accept" or using any of the Facebook Business Tools, you agree to the following:

  1. Sharing personal data with Facebook
  2. Y

Effective Date: May 25, 2018. To view the current Custom Audience Terms, click here Custom Audiences Terms

Facebook’s custom audiences feature enables you to create an audience using your data such as email addresses and phone numbers. When using Facebook’s custom audiences feature, your data is locally hashed on your system before you upload and pass such data to Facebook to be used to create your custom audience (the “Hashed Data”). Without limiting any agreement between you and Facebook, by clicking “I accept,” passing to Facebook the Hashed Data, or using custom audiences or advertising, you agree to the following:

  • You represent and warrant, without limiting anything in these terms, that you have all necessary rights and permissions and a lawful basis to disclose and use the Hashed Data in compliance with all applicable laws, regulations, and industry guidelines. If you are using a Facebook identifier to create a custom audience, you must have obtained the identifier directly from the data subject in

Các hàm public của repository

// thêm từ khóa nếu chưa có, nếu có rồi thì cập nhật trust, không cập nhật source
$keyword_repository->creat($string, $source = 'manual', $trust = 1);
// lấy ra 10 từ khóa tìm được theo từ khóa cho trước
$keyword_repository->search($query, $page = 1; $limit = 10);
// sửa từ khóa
$keyword_repository->improve($old_keyword, $new_keyword, $source = 'manual', $trust = 1);
// Lấy ra danh sách

Đoạn văn 1

Trong xu thế hội nhập của nền kinh tế Thế giới với nhiều cam go và thử thách, một nền kinh tế năng động và mang nhiều tính cạnh tranh, để bắt kịp nhịp độ phát triển chung ấy, Việt Nam đang cố gắng nỗ lực xây dụng mọi thứ về nhân lực và vật lực để có một nền tảng vững chắc cho phát triển kinh tế. Một trong những vấn đề mà Việt Nam cần phải chú trọng quan tâm đó là nguồn tài trợ. Vốn có vai trò hết sức quan trọng, nó là yếu tố không thế thiếu đối với từng doanh nghiệp. Để đáp ứng nhu cầu về vốn cho việc thực hiện các dự án đầu tư, các kế hoạch sản xuất kinh doanh, mỗi doanh nghiệp, tùy theo hình thức pháp lí, điều kiện của doanh nghiệp và cơ chế quản lí tài chính của các quốc gia có thể tìm kiếm những nguồn tài trợ nhất định. Tuy nhiên, mỗi nguồn tài trợ đều có những đặc điểm, chi phí khác nhau. Vì vậy, để giảm chi phí sử dụng vốn, nâng cao hiệu quả kinh doanh, ổn định tình hìn

What are common database development mistakes made by application developers?

source https://stackoverflow.com/questions/621884/database-development-mistakes-made-by-application-developers

1. Not using appropriate indices

This is a relatively easy one but still it happens all the time. Foreign keys should have indexes on them. If you're using a field in a 

WHERE you should (probably) have an index on it. Such indexes should often cover multiple columns based on the queries you need to execute.

@vuthaihoc
vuthaihoc / What is dependency injection.md
Last active March 22, 2018 06:49
What is dependency injection and when/why should or shouldn't it be used?

Source

Reasons for using design patterns

Introduction

Following on from a previous article entitled [Why design is Critical to Software Development][1], I would like to tackle a slightly more advanced aspect of software design called Design Patterns. As with my previous article, the idea came about during a discussion concerning the merits of software design with a work colleague. The protagonist of the discussion was of the opinion that Design Patterns are too time consuming to be of use within the field of commercial software development. My intention here is to demonstrate why I believe that to be wrong.

I will not go into any details about the mechanics or implementation of any particular Design Patterns. There are many excellent sources for these available elsewhere.

@vuthaihoc
vuthaihoc / SimpleRandom.php
Created August 7, 2017 07:06
Simple random item generator
<?php
/**
* Created by PhpStorm.
* User: hocvt
* Date: 8/7/17
* Time: 10:29
*/
namespace App\Colombo\Libs;
<?php
/**
* Created by PhpStorm.
* User: hocvt
* Date: 6/6/17
* Time: 15:01
*/
namespace App\Colombo;