Skip to content

Instantly share code, notes, and snippets.

View thinhdanggroup's full-sized avatar

thinhda thinhdanggroup

View GitHub Profile
@thinhdanggroup
thinhdanggroup / cloudSettings
Last active November 18, 2017 04:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-11-18T04:24:16.444Z","extensionVersion":"v2.8.6"}
@thinhdanggroup
thinhdanggroup / cloudSettings
Last active April 15, 2018 01:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-04-15T01:29:34.887Z","extensionVersion":"v2.9.0"}
@thinhdanggroup
thinhdanggroup / fix_xz_no_file.md
Created January 19, 2018 09:57
fix "tar (child): xz: Cannot exec: No such file or directory"

Install

sudo apt-get install xz-utils

Decompress again

tar xvf 
@thinhdanggroup
thinhdanggroup / turn_off_system_problem.md
Created January 19, 2018 09:59
Turn off : "System program problem detected"
  1. Open apport config in /etc/default/apport

  2. Set enabled=1 to enabled=0

  3. Restart and Enjoy

@thinhdanggroup
thinhdanggroup / mcut.r
Last active March 31, 2018 09:18
mcut algorithms
library(ggplot2)
library(utiml)
# Use stdout as per normal...
print("Hello, world!")
mcut_thresholdk <- function (prediction, probability = FALSE) {
UseMethod("mcut_thresholdk")
}
@thinhdanggroup
thinhdanggroup / pcut.r
Created March 31, 2018 09:18
pcut algorithms
library(ggplot2)
library(utiml)
print("Hello, world!")
pcut_thresholdk <- function (prediction, ratio, probability = FALSE) {
UseMethod("pcut_thresholdk")
}
@thinhdanggroup
thinhdanggroup / lcard_threshold.r
Created March 31, 2018 10:31
lcard algorithm
library(ggplot2)
library(utiml)
# Use stdout as per normal...
print("Hello, world!")
fixed_threshold.default <- function(prediction, threshold = 0.5,
probability = FALSE) {
if (length(threshold) == 1) {
threshold <- rep(threshold, ncol(prediction))
}
GitHub Token: 9887bf3d5c8bbd1c2ce53085976089ad34aef979
GitHub Gist: f054b73a78781e661f46dc62770ed7c0
GitHub Gist Type: Secret
@thinhdanggroup
thinhdanggroup / Install_nodejs.md
Last active March 13, 2022 03:51
Fastest way to install newest nodejs

Requirement

  1. Download lastest version in homepage

http://nodejs.org

Install

  1. Extract file

tar -xvf node-*.tar.xz

@thinhdanggroup
thinhdanggroup / fix_bug_play_video_firefox_quantum.md
Last active June 9, 2018 02:43
fix bug play video firefox quantum

Fix bug video Firefox

This is how to install Adobe Flash Plugin for Firefox:

  1. Go to https://get.adobe.com/flashplayer/ and select the option .tar.gz for other Linux. Download the file.
  2. Unpack the tar.gz file. Once unpacked you will see the following: libflashplayer.so /usr