Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block korzio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
korzio / links.html
Last active Apr 12, 2018
View links.html
korzio / defineProperty.html
Created Apr 17, 2018
View defineProperty.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
View gist:2fa434c4701b4e7d5acf8a12de3df693
HandleScope handle_scope(isolate);
Local<Context> context = NewContext(isolate);
Context::Scope context_scope(context);
Environment env(isolate_data, context, v8_platform.GetTracingAgent());
env.Start(argc, argv, exec_argc, exec_argv, v8_is_profiling);
Environment::AsyncCallbackScope callback_scope(&env);
env.async_hooks()->push_async_ids(1, 0);
korzio / copy_bookmarks.js
Created Jan 8, 2019
copy chrome bookmarks as links to markdown
View copy_bookmarks.js
// select #list in DevTools
// execute in console
copy([...$0.children].filter(a => a.tagName.toLowerCase() === 'bookmarks-item').map(a => `[${a.$['website-title'].innerText}](${a.$['website-url'].innerText})`).join(''))
korzio /
Last active Jan 15, 2019
npm --help
npm -h
npm help
View medium-basic-help-test.feature
When a user enters "my-cli" program with "help" option (or without arguments)
Then it shows a help message about the program
npm -v
npm --version
git --version
View medium-basic-version-test.feature
When user enters "my-cli" program with "version" option
Then it shows the actual program's version
korzio /
Created Jan 15, 2019
mkdir my-cli # create the project's directory
cd my-cli # go to new location
npm init --yes # initialise NPM package
echo "console.log('Hello, world!')" > server.js # create hello world example
npm start # run the script
You can’t perform that action at this time.