Skip to content

Instantly share code, notes, and snippets.

View duythien0912's full-sized avatar
🦖
I dunno

Duy Thien duythien0912

🦖
I dunno
View GitHub Profile
@duythien0912
duythien0912 / Guidelines.md
Created April 14, 2026 16:17
Artonis Dev Image Guidelines

Image Size Guidelines

Tài liệu này tổng hợp guideline kích thước ảnh cho từng nhóm content chính đang có trên website, dựa trên các template và section hiện tại của theme.

Nén ảnh bằng https://tinypng.com trước khi upload

0. Bảng tóm tắt nhanh

Content type Kích thước khuyến nghị Tỷ lệ
@duythien0912
duythien0912 / gist:66253e17d5ba79d6acfc15bc3af8934e
Created April 14, 2026 16:17
Artonis Dev Image Guidelines
# Image Size Guidelines
Tài liệu này tổng hợp guideline kích thước ảnh cho từng nhóm content chính đang có trên website, dựa trên các template và section hiện tại của theme.
### Nén ảnh bằng https://tinypng.com trước khi upload
## 0. Bảng tóm tắt nhanh
| Content type | Kích thước khuyến nghị | Tỷ lệ |
|---|---:|---|
@duythien0912
duythien0912 / main.dart
Created October 22, 2022 16:47
get first media from mux.com
import 'dart:convert' as convert;
import 'package:http/http.dart' as http;
void main(List<String> arguments) async {
// This example uses the Google Books API to search
// for books about HTTP. For details, see
// https://developers.google.com/books/docs/overview
final url = Uri.https('stream.mux.com',
'/onxADFeJBbrs6tdocM800ezUau00TinjF7tfrmo9WQCQY.m3u8', {});
@duythien0912
duythien0912 / FBSDKAppEventsUtility.m
Created July 15, 2020 04:11
FBSDKAppEventsUtility.m disable AdSupport for bypass IDFA in facebook sdk
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with any software that integrates with the Facebook platform, your use of
// this software is subject to the Facebook Developer Principles and Policies
// [http://developers.facebook.com/policy/]. This copyright notice shall be
// included in all copies or substantial portions of the software.
[
{
"first_name": "Caterina",
"last_name": "De Senato",
"author": "Caterina De Senato",
"imageFeature": "https://www.socialstation.it/wp-content/uploads/2020/03/profile_photo-190x190-1.jpg",
"readMore": "https://www.socialstation.it/user/caterina/?profiletab=posts"
},
{
"first_name": "Domenico",
[
{
"author": "Caterina De Senato",
"imageFeature": "https://www.socialstation.it/wp-content/uploads/2020/03/profile_photo-190x190-1.jpg",
"readMore": "https://www.socialstation.it/user/caterina/?profiletab=posts"
},
{
"author": "Domenico Di Frenna",
"imageFeature": "https://www.socialstation.it/wp-content/uploads/2019/03/IMG_1784.jpg",
@duythien0912
duythien0912 / gmail-animation.html
Created December 18, 2018 10:19 — forked from hteumeuleu/gmail-animation.html
The new Gmail loading animation is just HTML and CSS.
<style>
body{margin:0;width:100%;height:100%} body,td,input,textarea,select{font-family:arial,sans-serif} input,textarea,select{font-size:100%} #loading{position:absolute;width:100%;height:100%;z-index:1000;background-color:#fff} .msg{ color: #757575; font: 20px/20px Arial, sans-serif; letter-spacing: .2px; text-align: center } #nlpt{ animation: a-s .5s 2.5s 1 forwards; background-color: #f1f1f1; height: 4px; margin: 56px auto 20px; opacity: 0; overflow: hidden; position: relative; width: 300px } #nlpt::before{ animation: a-lb 20s 3s linear forwards; background-color: #db4437; content: ''; display: block; height: 100%; position: absolute; transform: translateX(-300px); width: 100% } @keyframes a-lb{ 0%{transform:translateX(-300px)}5%{transform:translateX(-240px)}15%{transform:translateX(-30px)}25%{transform:translateX(-30px)}30%{transform:translateX(-20px)}45%{transform:translateX(-20px)}50%{transform:translateX(-15px)}65%{transform:translateX(-15px)}70%{transform:translateX(-10px)}95%{transform:translateX(-1
@duythien0912
duythien0912 / cloudSettings
Created August 24, 2018 02:51
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-24T02:51:53.142Z","extensionVersion":"v3.0.0"}
@duythien0912
duythien0912 / custom-loki.sh
Created May 28, 2018 01:59 — forked from evertontrindade/custom-loki.sh
Things to do after install Elementary OS Loki (0.4)
# First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
# Clean-up System
sudo apt-get purge epiphany-browser epiphany-browser-data #browser
sudo apt-get purge midori-granite #browser
sudo apt-get purge noise
sudo apt-get purge scratch-text-editor #text-editor
sudo apt-get purge modemmanager
sudo apt-get purge geary #email