Skip to content

Instantly share code, notes, and snippets.

View ngoclong19's full-sized avatar

Long Hoàng Ngọc ngoclong19

  • Hitachi Vantara Vietnam
  • Vietnam
View GitHub Profile
@baraldilorenzo
baraldilorenzo / readme.md
Last active October 10, 2024 23:19
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@LazyMammal
LazyMammal / hide_live_chat.js
Created September 20, 2017 11:54
Hide live chat by default on YouTube live streams
// ==UserScript==
// @name YouTube - Hide Live Chat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hide live chat by default on live streams
// @author LM
// @match https://www.youtube.com/watch*
// @run-at document-end
// @grant none
// ==/UserScript==
@DaisukeMiyamoto
DaisukeMiyamoto / assume_role.py
Created September 12, 2018 05:00
AWS Boto3 Assume Role example
import boto3
from boto3.session import Session
def assume_role(arn, session_name):
"""aws sts assume-role --role-arn arn:aws:iam::00000000000000:role/example-role --role-session-name example-role"""
client = boto3.client('sts')
account_id = client.get_caller_identity()["Account"]
print(account_id)
@ilius
ilius / article-style.css
Last active October 20, 2024 03:04 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
body
{
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #201F1F;
color: white;
font-family: Bookerly, Segoe UI, Palatino Linotype, Arial Unicode MS;
}
@ManiaciaChao
ManiaciaChao / article-style.css
Last active August 13, 2024 15:13 — forked from bangedorrunt/article-style.css
GoldenDict Arc Dark Theme
/* mkdir ~/.goldendict/styles/arc-dark/
then put this stylesheet there */
body {
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #4b5162;
color: white;
font-family: Noto Serif CJK SC, Noto Serif, Bookerly, Segoe UI,
@lassekongo83
lassekongo83 / hide-youtube-guide.user.js
Last active February 17, 2023 08:56
Hides the app-drawer aka guide menu by default
// ==UserScript==
// @name Hide youtube guide menu
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author -
// @description Hides the app-drawer aka guide menu by default
// ==/UserScript==
@lbmaian
lbmaian / youtube-hide-livechat.user.js
Last active November 13, 2024 16:00
YouTube - Hide Live Chat By Default
// ==UserScript==
// @name YouTube - Hide Live Chat By Default
// @namespace https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c
// @downloadURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @updateURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @version 0.14
// @description Hide live chat by default on live streams
// @author lbmaian
// @match https://www.youtube.com/*
// @exclude https://www.youtube.com/embed/*
@Wazhai
Wazhai / PriConne Farm & Shop Guide.md
Last active March 31, 2023 21:11
Guide on shard farming & buying priority for Princess Connect! Re:Dive English/Global server

✾✾✾ STORY FARM/SHOP GUIDE ✾✾✾

For both new and older players, with advice for the current and near future meta!
Some other useful resources are also linked at the bottom.

Big thanks to Nyara❤#6964 from the PriConne community Discord for creating the guide! This page is maintained by Wazhai#0161 for convenience and easy access outside of Discord. The original can be found here on Discord but this page has now become the primary link.

Last Update: 28 November 2022
Next Update: Around 10 January 2023
(status March 2023: RIP PriConne EN 2021-2023)

@lbmaian
lbmaian / youtube-force-compact-grid.user.js
Last active August 8, 2024 19:43
YouTube - Force Compact Grid (increases max # videos per row)
// ==UserScript==
// @name YouTube - Force Compact Grid (increases max # videos per row)
// @namespace https://gist.github.com/lbmaian/8c6961584c0aebf41ee7496609f60bc3
// @downloadURL https://gist.github.com/lbmaian/8c6961584c0aebf41ee7496609f60bc3/raw/youtube-force-compact-grid.user.js
// @updateURL https://gist.github.com/lbmaian/8c6961584c0aebf41ee7496609f60bc3/raw/youtube-force-compact-grid.user.js
// @version 0.5
// @description Force YouTube to show compact grid (max 6 videos per row) rather than "slim" grid (max 3 videos per row)
// @author lbmaian
// @match https://www.youtube.com/*
// @exclude https://www.youtube.com/embed/*
@jkmartindale
jkmartindale / awa-twitch.js
Last active October 30, 2024 00:21
Paste this into your browser console to hopefully start earning rewards. Forum thread: https://web.archive.org/web/20230922092451/https%3A%2F%2Fna.alienwarearena.com%2Fucf%2Fshow%2F2167631
/* Twitch Quest Fixer v3.1 */
const extensionID = "ehc5ey5g9hoehi8ys54lr6eknomqgr";
const channel = location.pathname.slice(1).toLowerCase();
const channelId = __APOLLO_CLIENT__.cache.data.data.ROOT_QUERY["channel({\"name\":\""+channel+"\"})"].__ref.split(":")[1];
const pollDuration = 60000;
let authToken = __APOLLO_CLIENT__.cache.data.data["Channel:" + channelId].selfInstalledExtensions.filter(x => x.helixToken.extensionID == extensionID)[0].token.jwt;
grantPermission = async () => {
console.log("Attempting to grant permission automatically...");
const integrityResponse = await (await fetch("https://gql.twitch.tv/integrity", { method: "post", headers: commonOptions.headers })).json();