Skip to content

Instantly share code, notes, and snippets.

View yeungon's full-sized avatar
💭
In JavaScript we trust

Vuong Nguyen yeungon

💭
In JavaScript we trust
View GitHub Profile
@yeungon
yeungon / videosteaming.php
Created April 16, 2019 10:35
streaming video
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id = "cnvs">
</div>
@yeungon
yeungon / Ubuntu For Developer
Last active November 25, 2018 14:04
Ubuntu from the scratch (for Vietnamese)
We couldn’t find that file to show.
<?php
$tong = 8;
for($i = 0; $i < $tong; $i++){
for($j = 0; $j < $i; $j++){
echo " ";
<?php
function highLight($a, $b){
$a = explode(" ", $a);
$count = count($a);
$number = count($b);
@yeungon
yeungon / are you are philosopher?
Created April 7, 2018 16:03
are you are philosopher?
<?php
//are you a philosopher? by vuongnguyen
class trietgia{
public $world_level_school_of_thought_what_is_the_world = 'ontology';
public $world_level_school_of_thought_how_we_know_the_world_as_it_is = 'epistemology';
function __construct($name){
@yeungon
yeungon / gist:2c5fdc8cca9e2d6a583543ca6ec1fd7a
Created February 10, 2018 06:11
a simply PHP query log_currently used at tudien.net
<?
/*
* @author: Vuong Nguyen [email protected]
* fopen() => mở
* fget() => đọc S, C,
* fread() => đọc hết file theo dung lượng, lấy dung lượng theo filesize()
* fwrite() => viết ==> thuộc tính W: ghi đè, A: ghi kế tiếp, nếu xuống dòng *\r\n
* fclose() => đóng
*/
@yeungon
yeungon / README.md
Created January 30, 2018 14:27 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@yeungon
yeungon / .htaccess
Created January 9, 2018 02:08 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/