Skip to content

Instantly share code, notes, and snippets.

Tuan Anh coder054

Block or report user

Report or block coder054

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gaearon
gaearon / index.html
Created Jun 25, 2018
Multiple React components on a single HTML page
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@gaearon
gaearon / index.html
Last active May 31, 2020
Add React in One Minute
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@hu2di
hu2di / ConvertVie.js
Created Apr 10, 2017
JavaScript: Chuyển tiếng Việt có dấu sang không dấu
View ConvertVie.js
function change_alias(alias) {
var str = alias;
str = str.toLowerCase();
str = str.replace(|á|||ã|â||||||ă|||||ẵ/g,"a");
str = str.replace(|é||||ê||ế|||ễ/g,"e");
str = str.replace(|í|||ĩ/g,"i");
str = str.replace(|ó|||õ|ô||||||ơ|||||ỡ/g,"o");
str = str.replace(|ú|||ũ|ư|||||ữ/g,"u");
str = str.replace(/ỳ|ý|||ỹ/g,"y");
str = str.replace(/đ/g,"d");
@mitrnsplt
mitrnsplt / credit card check
Created Apr 17, 2014
A solution for cs50's credit card validation problem
View credit card check
/**
*
* credit.c
*
* Peter Downs
*
* A program for validating credit card numbers.
*
*/
@ahmedelgabri
ahmedelgabri / Sublime Text command log
Created Sep 21, 2013
Log Sublime Text command in the console, very helpful when trying to figure out command you want to create shortcuts for.
View Sublime Text command log
sublime.log_commands(True)
You can’t perform that action at this time.