Skip to content

Instantly share code, notes, and snippets.

View mhoangvslev's full-sized avatar
🎼
Interested in OMR, MIR

Minh-Hoang DANG mhoangvslev

🎼
Interested in OMR, MIR
View GitHub Profile
@mhoangvslev
mhoangvslev / final-assignment.ipynb
Created July 14, 2024 21:38
Final Assignment.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhoangvslev
mhoangvslev / datascienceecosystem.ipynb
Created July 7, 2024 11:45
DataScienceEcosystem.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhoangvslev
mhoangvslev / fedshop.md
Last active June 28, 2024 10:31
Quick guide FedShop

Step-by-step instructions:

  • Clone the paper branch of the repo with submodules:
git clone https://github.com/GDD-Nantes/FedShop.git -b paper --recurse-submodules
  • Install miniconda and install Python=3.8:
[{"publisher": [{"@type": "Organization", "name": "Syndicated", "url": "https://www.metacritic.com/company/syndicated"}, {"name": "Other", "url": "https://www.metacritic.com/company/other", "@type": "Organization"}, {"@type": "Organization", "url": "https://www.metacritic.com/company/syndie", "name": "Syndie"}], "url": "https://www.metacritic.com/tv/martha", "datePublished": "September 12, 2005", "description": "Martha Stewart returns to daytime television with a new unscripted, unedited show filmed before a live studio audience. Martha will be joined by some of her celebrity friends for cooking, chatting, crafts, and more. The show will also feature interactive segments with the audience, people on the street, and even viewers in their homes.\r\n\r\nMartha, a syndicated daily daytime series, is executive produced by Mark Burnett and distributed by NBC Universal’s Domestic Television Distribution...", "name": "Martha", "image": "https://static.metacritic.com/images/products/tv/1/1fe14d4ea922243433465502ee44
gcc -march=native -Q --help=target | grep enabled
--copt=-m128bit-long-double --copt=-m64 --copt=-m80387 --copt=-mabm --copt=-madx --copt=-maes --copt=-malign-stringops --copt=-mavx --copt=-mavx2 --copt=-mavx256-split-unaligned-load --copt=-mavx256-split-unaligned-store --copt=-mavx512bw --copt=-mavx512cd --copt=-mavx512dq --copt=-mavx512f --copt=-mavx512vl --copt=-mbmi --copt=-mbmi2 --copt=-mclflushopt --copt=-mclwb --copt=-mcx16 --copt=-mf16c --copt=-mfancy-math-387 --copt=-mfma --copt=-mfp-ret-in-387 --copt=-mfsgsbase --copt=-mfxsr --copt=-mglibc --copt=-mhard-float --copt=-mhle --copt=-mieee-fp --copt=-mlong-double-80 --copt=-mlzcnt --copt=-mmmx --copt=-mmovbe --copt=-mpclmul --copt=-mpopcnt --copt=-mprfchw --copt=-mpush-args --copt=-mrdrnd --copt=-mrdseed --copt=-mred-zone --copt=-mrtm --copt=-msahf --copt=-msse --copt=-msse2 --copt=-msse3 --copt=-msse4 --copt=-msse4.1 --copt=-msse4.2 --copt=-mssse3 --copt=-mstv --copt=-mtls-direct-seg-refs --copt=-mvzeroupper --copt=-mxsave --copt=-mxsavec --copt=-mxsav
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix voc: <https://mmisw.org/ont/~mhoangvslev/SurfaceForestiereVoc/> .
voc:Measurement rdf:type owl:Class .
voc:Country rdf:type owl:Class .
@mhoangvslev
mhoangvslev / contrib.r
Created November 5, 2019 22:27
Contribution des invidivus
# Individus
## Contribution relative
result$ind$qlt <- matrix(unlist(lapply(1:nbIndv, function(indv){
(result$ind$coords[indv, ]**2) / sum(result$ind$coords[indv, ]**2)
})), nrow = nbIndv, ncol = nbComps, byrow = TRUE);
colnames(result$ind$qlt) <- colnames(result$ind$qlt, do.NULL = FALSE, prefix = "Comp. ");
## Contribution absolue
result$ind$ctr <- matrix(unlist(lapply(1:nbComps, function(axe){
result$ind$coords[, axe]**2 / (nbIndv * eigenvalues[axe])
event Birth(
address owner,
uint256 kittyId,
uint256 matronId,
uint256 sireId,
uint256 genes
);
const ethers = require("ethers");
const neo4j = require("neo4j-driver").v1;
async function des_formatID(kittyId, contractFuncs) {
return ethers.utils.bigNumberify(kittyId.toHexString()).toNumber();
}
function vs_formatAvatar(kittyId) {
return 'https://img.cryptokitties.co/0x06012c8cf97bead5deae237070f9587f8e7a266d/' + kittyId + '.png';
}