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