Skip to content

Instantly share code, notes, and snippets.

View huyen-nguyen's full-sized avatar
🧋

Huyen N. Nguyen huyen-nguyen

🧋
View GitHub Profile
@huyen-nguyen
huyen-nguyen / Procmon_operationst.txt
Last active January 3, 2019 23:18 — forked from mgeeky/Procmon_operationst.txt
PROCMON Operations list
CloseFile
CreateFile
CreateFileMapping
DeviceIoControl
FileSystemControl
FlushBuffersFile
Load Image
LockFile
NotifyChangeDirectory
Process Create
@huyen-nguyen
huyen-nguyen / saveConsoleContent.txt
Last active June 13, 2019 23:07
Save variable form console to file (.json)
// source: https://github.com/bgrins/devtools-snippets/blob/master/snippets/console-save/console-save.js
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
CancelRemoveDevice
CancelStopDevice
CloseFile
CreateFile
CreateFileMapping
CreateMailSlot
CreatePipe
Debug Output Profiling
DeviceChange
DeviceIoControl
input: a stack
output: sum of all y0, y1, including data ({})
for (let i = 0; i < stacks[0].length; i++){
let point = [];
point[0] = stacks.reduce(
(accumulator, currentValue) => accumulator + currentValue[i][0],0);
point[1] = stacks.reduce(
(accumulator, currentValue) => accumulator + currentValue[i][1],0);
point.data = stacks[0][i].data;
@huyen-nguyen
huyen-nguyen / 500 days of summer (timeline)
Created April 5, 2020 18:55 — forked from davidpots/500 days of summer (timeline)
"500 Days of Summer" breakdown of the movie timeline
500 DAYS OF SUMMER -- breakdown of the movie timeline
by David Potsiadlo (@davidpots)
------------------------------------------------------------------------
============================================================================================================
THE ORDER SEEN IN THE MOVIE
============================================================================================================
488 0:00:51 on a bench, she has the ring
1 0:01:10 tom his his board meeting. jan 8th. when he first sees summer in his office.
@huyen-nguyen
huyen-nguyen / generate-cnf.js
Created November 20, 2020 05:11
Generate DIMACS CNF formula for N-queens problem
// helper functions
// cnf formula exactly one of the variables in the chosen list to be true
function ext_one(list) {
let temp = ""
temp=temp+atl_one(list)
temp=temp+atm_one(list)
return temp
}
@huyen-nguyen
huyen-nguyen / .d3v4-selectable-force-directed-graph
Created December 19, 2020 20:45 — forked from pkerpedjiev/.d3v4-selectable-force-directed-graph
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
.
@huyen-nguyen
huyen-nguyen / .block
Created March 31, 2022 00:34 — forked from d3noob/.block
Favorite tooltip (complex version) v7
license: mit
@huyen-nguyen
huyen-nguyen / index.html
Created September 5, 2022 21:04 — forked from guilhermesimoes/index.html
D3.js: Animating Stacked-to-Grouped Bars
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.stacked-chart-container {
position: relative;
}
@huyen-nguyen
huyen-nguyen / .block
Created September 5, 2022 21:05 — forked from LemoNode/.block
Stacked bar chart
license: gpl-3.0