Skip to content

Instantly share code, notes, and snippets.

korzio

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
korzio / links.html
Last active Apr 12, 2018
links.html
View links.html
@korzio
korzio / defineProperty.html
Created Apr 17, 2018
defineProperty.html
View defineProperty.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
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
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
korzio / npm-help.sh
Last active Jan 15, 2019
medium-basic-npm-help.sh
View npm-help.sh
npm --help
npm -h
npm help
npm
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
View medium-basic-npm-version.sh
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
korzio / medium-basic-create.sh
Created Jan 15, 2019
medium-basic-create.sh
View medium-basic-create.sh
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.