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
let objectType: String = 'first string'; | |
let primitiveType: string = 'second string'; | |
objectType = primitiveType; // √ | |
primitiveType = objectType; // compiler error |
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
- QuicksandBook | |
- QuicksandLight | |
- BLOKK | |
- Lobster | |
- DroidSerif | |
- PT Sans | |
- Freight Sans Pro | |
- Lane | |
- Source Sans Pro | |
- Robotolight |
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
/** | |
* e.g. retrieving field values from a form. | |
*/ | |
function getDateFromForm() { | |
const props = ['year', 'month', 'day', 'hour', 'minutes', 'sec', 'milisec']; | |
return props.map((prop) => { | |
return document.querySelector(`#${prop}`).text; | |
}); | |
} |
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
// get all items of all players | |
/* WITHOUT ES6 spread operator */ | |
const items = []; | |
players.forEach((player) => { | |
player.forEach((item) => { | |
items.push(item); | |
}); | |
}); | |
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
angular.module('app') | |
.filter('isoCurrency', function($filter) { | |
var currencies = { | |
"ALL":{"text":"Lek"}, | |
"AFN":{"text":"؋"}, | |
"ARS":{"text":"$"}, | |
"AWG":{"text":"ƒ"}, | |
"AUD":{"text":"$"}, | |
"AZN":{"text":"ман"}, |
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
touch /var/cache/mod_pagespeed/cache.flush |
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
/* declaration */ | |
@size-tn: ~"(max-width: 479px)"; | |
@size-xs: ~"(min-width: 480px) and (max-width: 767px)"; | |
@size-sm: ~"(min-width: 768px) and (max-width: 991px)"; | |
@size-md: ~"(min-width: 992px) and (max-width: 1199px)"; | |
@size-lg: ~"(min-width: 1200px)"; | |
/* example usage */ | |
footer { | |
@media @size-xs { |
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
/* TINY DEVICES (tn) */ | |
@media (max-width: 479px) { | |
} | |
/* EXTRA SMALL DEVICES (phones) */ | |
@media (max-width: 767px) { | |
} |
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
{ | |
"name": "general-gulp-file", | |
"version": "0.1.0", | |
"devDependencies": { | |
"gulp": "*", | |
"gulp-load-plugins": "*", | |
"multipipe": "*", | |
"gulp-less": "*", | |
"gulp-concat": "*", | |
"gulp-uglify": "*", |
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
var gulp = require('gulp'); | |
var plugins = require('gulp-load-plugins')(); | |
var rimraf = require('rimraf'); | |
var paths = { | |
less: ['./less/*.less'], | |
js: ['./js/app/*.js', './js/app/**/*.js'], | |
jsView: ['./js/app/views/*.html'], | |
dist: { | |
css: './public/css/', |