This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean isPrimeFunctionalStyle(int number) { | |
return number > 1 && | |
IntStream.rangeClosed(2, (int) Math.sqrt(number)) | |
.noneMatch(i -> number % i == 0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DOTNET_DIR=/usr/local/share/dotnet | |
export PATH=$DOTNET_DIR:$PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dimitar.danailov/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
# ZSH_THEME="robbyrussell" | |
ZSH_THEME="agnoster" |
It’s all about the key selector
What determines the impact of a selector is its key selector. The key selector is a very important thing in the world of CSS as browsers read selectors
right to left
. This means the key selector is the last one before the opening {, for example:
.header ul { /* ‘ul’ is the key selector */ }
.ul li a { /* ‘a’ is the key selector */ }
p:last-child { /* ‘:last-child’ is the key selector */ }
### Compile scss files
./sass-compile.sh
### Compile scss files and watch folder
./sass-compile.sh --watch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Terminal Tip: Use curly brackets to speed up the creation of multiple files with similar names: | |
touch store-{products,cart,utils,coupouns}.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../../typings/angularjs/angular.d.ts" /> | |
/// <reference path="../../typings/angularjs/angular-route.d.ts" /> | |
/// <reference path="../configurations/routes.ts" /> | |
/// <reference path="../models/viewmodels/countryviewmodels/countrylistitem.ts" /> | |
/// <reference path="../models/viewmodels/productviewmodels/productviewmodelitem.ts" /> | |
/// <reference path="../services/database/applicationusershippingaddressdatabaseservice.ts" /> | |
/// <reference path="../entities/dom/formelements/form/form.ts" /> | |
/// <reference path="../entities/dom/formelements/submitbutton/submitbutton.ts" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Boolean | |
* | |
* The most basic datatype is the simple true/false value, | |
* which JavaScript and TypeScript (as well as other languages) call a 'boolean' value. | |
*/ | |
var isDone: boolean = false; | |
/** | |
* Number |