Skip to content

Instantly share code, notes, and snippets.

View andy3520's full-sized avatar
🎯
Focusing

An Nguyen Hieu Duc andy3520

🎯
Focusing
  • Nab Vietnam
  • Ho Chi Minh
View GitHub Profile
XLM
TRX
ICX
EOS
IOTA
ONT
QTUM
ETC
ADA
XMR
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "An Nguyen Hieu Duc - Andy",
"label": "Software Engineer (Mainly Frontend)",
"image": "https://avatars3.githubusercontent.com/u/38342390",
"summary": "I’m a frontend developer who can build apps UI from the scratch. I've worked mostly at startups so I am used to wearing many hats. I am a very product focussed developer who prioritizes user feedback first and foremost. A team player with a supportive spirit, love to learn, and share new tech knowledge with my teammate.",
"website": "",
module.exports = {
transparent: 'transparent',
white: '#ffffff',
black: '#000000',
gray: {
'50': '#f9fafb',
'100': '#f4f5f7',
'200': '#e5e7eb',
'300': '#d2d6dc',
'400': '#9fa6b2',
@andy3520
andy3520 / gitflow-breakdown.md
Created June 1, 2020 13:15 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@andy3520
andy3520 / acceptAllLinkedin.js
Created April 27, 2020 14:13
Click accept all linkedin connect with js
const acceptButtons = document.querySelectorAll('.invitation-card__action-btn.artdeco-button.artdeco-button--2.artdeco-button--secondary.ember-view > span')
acceptButtons.forEach(acc => {
acc.click()
})
@andy3520
andy3520 / color.js
Last active March 3, 2023 16:09
Tailwind UI default config and color, form
module.exports = {
transparent: 'transparent',
white: '#ffffff',
black: '#000000',
gray: {
'50': '#f9fafb',
'100': '#f4f5f7',
'200': '#e5e7eb',
'300': '#d2d6dc',
'400': '#9fa6b2',
@andy3520
andy3520 / StackoverflowModel.json
Created April 17, 2020 15:16
Stackoverflow Modal
{
"Models": {
"PostTypeId": {
"1": "Question",
"2": "Answer",
"3": "Wiki",
"4": "TagWikiExcerpt",
"5": "TagWiki",
"6": "ModeratorNomination",
"7": "WikiPlaceholder",
function copyStylesInline(destinationNode, sourceNode) {
var containerElements = ["svg","g"];
for (var cd = 0; cd < destinationNode.childNodes.length; cd++) {
var child = destinationNode.childNodes[cd];
if (containerElements.indexOf(child.tagName) != -1) {
copyStylesInline(child, sourceNode.childNodes[cd]);
continue;
}
var style = sourceNode.childNodes[cd].currentStyle || window.getComputedStyle(sourceNode.childNodes[cd]);
if (style == "undefined" || style == null) continue;
@andy3520
andy3520 / xoa-an-review-itviet.js
Created February 15, 2020 03:23
Xoá bỏ box yêu cầu nhập thông tin và xoá class blur khi xem itviet.com mà dùng tk chưa điền thông tin.
document.querySelectorAll('.box-action-blur-reviews.box-signed-in').forEach(e => e.parentNode.removeChild(e));
document.querySelectorAll('.blur').forEach(e => e.classList.remove('blur'));
// other type like gif, bmp,... maybe not working because browser not
// it may fallback to png
function saveImage(canvas, exportType) {
window.open(canvas.toDataURL(`image/${exportType}`));
var gh = canvas.toDataURL(exportType);
var a = document.createElement('a');
a.href = gh;
a.download = `image.${exportType}`;