float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains 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 UInt4 = function (value) { | |
return (value & 0xF); | |
}; | |
var Int4 = function (value) { | |
var ref = UInt4(value); | |
return (ref > 0x7) ? ref - 0x10 : ref; | |
}; | |
var UInt8 = function (value) { |
This file contains 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
import { | |
AfterViewInit, | |
Component, | |
ElementRef, | |
Input, | |
OnDestroy, | |
ViewChild | |
} from '@angular/core'; | |
import { fromEvent } from 'rxjs'; | |
import { pairwise, switchMap, takeUntil } from 'rxjs/operators'; |
This file contains 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
<!-- | |
This is a quick ui that wraps yurixi's code from https://habr.com/post/359244/ | |
It can save PNG and SVG. | |
All credit goes to him for doing pretty much all the work here. | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<html> | |
<head> |
- Angular 2 Change Detection Explained https://www.youtube.com/watch?v=CUxD91DWkGM
- JS web frameworks benchmark https://github.com/krausest/js-framework-benchmark
- Angular 2 Performance Checklist https://github.com/mgechev/angular-performance-checklist
-
Книга Виктора Савкина, автора роутера https://leanpub.com/router
-
The Angular Router, Victor Savkin https://www.youtube.com/watch?v=QLns6s02O48
-
Routing in Eleven Dimensions with Component Router, Brian Ford https://www.youtube.com/watch?v=z1NB-HG0ZH4
-
Protecting Routes using Guards in Angular https://blog.thoughtram.io/angular/2016/07/18/guards-in-angular-2.html
This file contains 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
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
This file contains 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
nginx/ | |
!nginx/.gitkeep | |
!nginx/logs/.gitkeep | |
src/ | |
tmp/ |
This file contains 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
{ | |
"aar": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] | |
}, | |
"aa": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] |
NewerOlder