Skip to content

Instantly share code, notes, and snippets.

View iamzozo's full-sized avatar

Várkonyi Zoltán iamzozo

View GitHub Profile
LOG from device xxxxxx:
CONSOLE INFO file:///app/vendor.js:144:36: HMR: Checking for updates to the bundle with hmr hash 6e46d84448382ed77206.
LOG from device xxxxxx: CONSOLE WARN file:///app/vendor.js:145:36: HMR: Error: Cannot find module './other2.component.html'
LOG from device xxxxxx: CONSOLE ERROR file:///app/vendor.js:146:38: HMR: Cannot apply update with hmr hash 6e46d84448382ed77206.
LOG from device xxxxxx: CONSOLE ERROR file:///app/vendor.js:146:38: HMR: Cannot find module './other2.component.html'
LOG from device xxxxxx: CONSOLE WARN file:///app/vendor.js:145:36: HMR: Ignored an error while updating module ./main.ts <accept-errored>
LOG from device xxxxxx:
CONSOLE WARN file:///app/vendor.js:145:36: HMR: Cannot apply update. A previous update failed. Application needs to be restarted in order to apply the changes.
LOG from device xxxxxx:
CONSOLE INFO file:///app/vendor.js:144:36: HMR: Hot Module Replacement Enabled. Waiting for signal.
LOG from device xxxxxxx: 2019-10-07 11:33:32.527 nsplaydev[5054:1412717] ***** Fatal JavaScript exception - application has been terminated. *****
2019-10-07 11:33:32.527 nsplaydev[5054:1412717] Native stack trace:
1 0x104a4b384 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x104a90638 -[TNSRuntime executeModule:referredBy:]
3 0x105bba1f8 -[UIApplication(PlayLiveSync) swizzled_executeModule:]
4 0x10425b3e8
5 0x19f38ef30 <redacted>
2019-10-07 11:33:32.528 nsplaydev[5054:1412717] JavaScript stack trace:
2019-10-07 11:33:32.528 nsplaydev[5054:1412717] webpackMissingModule(file:///app/bundle.js:261:180)
at file:///app/bundle.js:261:183
@iamzozo
iamzozo / webpack.config.js
Created August 7, 2017 16:26
Webpack base
/**
* npm install webpack babel-core babel-loader babel-plugin-transform-runtime babel-preset-es2015 babel-preset-stage-2 babel-runtime --save-dev
*/
module.exports = {
entry: './scripts/app.js',,
output: {
path: __dirname + '/public',
filename: 'js/app.build.js'
},
<?php
preg_replace( '/style=(["\'])[^\1]*?\1/i', '', $subject, -1 );
@iamzozo
iamzozo / layout-helper.scss
Created February 17, 2016 13:18
Layout helper
.mb-sm {
margin-bottom: 10px;
}
.mb-md {
margin-bottom: 15px;
}
.mb-lg {
margin-bottom: 20px;
}
.mb-xlg {
@iamzozo
iamzozo / gulp-sprite.js
Created February 16, 2016 13:42
Create an svg sprite with gulp
gulp.task('svg-sprite', function() {
return gulp.src(['resources/assets/svg/**/*.svg'])
.pipe(svgSprite({
mode: {
css: {
sprite: "../sprite.svg",
bust: false,
dimensions: true,
dest: '.',
prefix: '.icon-',
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
<?php
/*
INSTRUCTIONS:
Use at your own risk. Backup your database before continuing.
1. Copy code to a file in the root of your website.
2. Change YOUR_SITE_ROOT to a value that makes sense.
3. Execute by visiting the page. Verify before/after results.
4. Change MAKE_CHANGES_TO_SITE to true and execute it again.