Thursday, November 26, 2015

IDIOM - ready to take on the world

ready to take on the world - is an idiom

It means:

"to try to do a lot/too much"
"to try to fight with everyone"
In this particular case it probably means "trying to do too much".

GRADLE - gradle tutorial (link)

https://docs.gradle.org/current/userguide/tutorial_using_tasks.html

Wednesday, November 25, 2015

IDIOM - lean and mean

'lean and mean' is idiom.
It mins: capable and ready for hard, efficient work

More here.

BOWER - difference between tilde(~) and caret(^) before version number

In the simplest terms, the tilde matches the most recent minor version (the middle number). ~1.2.3 will match all 1.2.x versions but will miss 1.3.0.
The caret, on the other hand, is more relaxed. It will update you to the most recent major version (the first number). ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0.

More is here.

Tuesday, November 24, 2015

GULP - how to configure Gulp to use Sass instead of Less

In order to use Sass instead of Less with Gulp follow this instruction:
https://www.npmjs.com/package/gulp-ruby-sass

and here:
https://github.com/sindresorhus/gulp-ruby-sass

Here is the gulp task for Sass (instead of Less) in HotTowel generator for Angular project:

var sass = require('gulp-ruby-sass');

/** * Compile less to css * @return {Stream} */gulp.task('styles', ['clean-styles'], function() {
    /*log('Compiling Less --> CSS');
    return gulp        .src(config.less)        .pipe($.plumber()) // exit gracefully if something fails after this        .pipe($.less())//        .on('error', errorLogger) // more verbose and dupe output. requires emit.        .pipe($.autoprefixer({browsers: ['last 2 version', '> 5%']}))        .pipe(gulp.dest(config.temp));*/
    log('Compiling Sass --> CSS');
    return sass(config.sass)
        .pipe($.autoprefixer({browsers: ['last 2 version', '> 5%']}))
        .pipe(gulp.dest(config.temp));
});
gulp.task('sass:watch', function () {
    gulp.watch(config.sass, ['sass']);
});

ANGULAR - Angular style guide from John Papa

Angular style guide from John Papa (https://twitter.com/john_papa)
https://github.com/johnpapa/angular-styleguide

Angular course from John Papa:
https://www.pluralsight.com/courses/angularjs-patterns-clean-code

ANGULAR - generator-hottowel. Nice angular generator for Gulp (link)

https://github.com/johnpapa/generator-hottowel

Friday, November 20, 2015

GIT - proxy settings

Edit with e.g. Far .gitconfig (usually it is located under C:\Users\youraccount\)


Add these locs:

[http]
sslVerify = false
proxy = http://username:passwd@domain:port

Where “username” is your domain username.

The same you can do it with editing in CLI e.g. cmd :
git config --global --edit
or
git config --global http.sslVerify false

git config --global http://username:passwd@domain:port

REST - good tutorial for REST API (link)

http://restapitutorial.com/

Tuesday, November 17, 2015

ANGULARJS + SPRAY + AKKA example (link)

http://www.cakesolutions.net/teamblogs/2014/05/08/spray-akka-and-angularjs

CHROME - blur issues in Windows 8

Only Chrome:
By default Chrome has a strange blur in Windows 8.
How to fix it: in Chrome properties check "Disable display scaling".
That's all. Here is more: https://productforums.google.com/forum/#!topic/chrome/9DnjIpD3xoE

Across all Windows 8:
In order to remove blur over all Windows applications go to Display settings and set scaling to 100% (default is 120%). See here: http://www.thewindowsclub.com/fonts-appear-blurred-windows-8

Monday, November 2, 2015