Skip to content

Instantly share code, notes, and snippets.

View unfalse's full-sized avatar
👹

Nopefish unfalse

👹
  • Russian Federation
View GitHub Profile
@unfalse
unfalse / vscode_settings.gist
Created September 20, 2019 08:47
all settings for vscode
1
@unfalse
unfalse / index.html
Last active January 3, 2018 09:12
JS Bin RxJS example
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[buffer]">
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.6/rx.all.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@unfalse
unfalse / react-test-select-change.js
Last active December 11, 2017 11:17
Changing select value not working on enzyme react test
it('enter valid data for connection; enable proxy; check if button is disabled', () => {
const component = getComponent(mount); // mount from enzyme
enterCredentials(component);
const proxySelect = component.find('select');
// currently tried these variants:
proxySelect.simulate('change', { target: { value: true } } );
// component.find('select').simulate('select', true);
// component.find('select').simulate('select', 'Yes');
// component.find('select').simulate('change', { target: { value: true } } );
@unfalse
unfalse / npm-errors.log
Created September 20, 2017 12:26
webpack 3 config
D:\MyExperiments\nnn-mmm-ui_npm_update>npm run node
> ReportTool@0.0.1 node D:\MyExperiments\nnn-mmm-ui_npm_update
> node --harmony --max_old_space_size=8192 --optimize_for_size --max_executable_size=4096 --stack_size=4096 app.js
2017-09-20T12:10:56.563Z - info: [D:\MyExperiments\nnn-mmm-ui_npm_update\jjjjSchedulerWorker.js] jjjj scheduler started
2017-09-20T12:10:57.792Z - info: [D:\MyExperiments\nnn-mmm-ui_npm_update\serviceWorker.js] Express https server listening on port 5252
2017-09-20T12:10:57.801Z - info: [D:\MyExperiments\nnn-mmm-ui_npm_update\serviceWorker.js] Client server listening on port 5253
D:\MyExperiments\nnn-mmm-ui_npm_update\node_modules\webpack\lib\RequestShortener.js:15
return request.replace(NORMALIZE_SLASH_DIRECTION_REGEXP, "/");
@unfalse
unfalse / package.json
Created September 15, 2017 09:17
webpack production config
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "",
"start": "node server",
"build": "rimraf public && webpack --config ./webpack.production.config.js --progress --profile --colors --display-error-details",
"eslint": "eslint ."
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
<html><body><video loop="" autoplay="" name="media"><source src="CQEuonnXAAAbzJN.mp4" type="video/mp4"></video></body></html>