Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| create-nx-workspace modulename --npm-scope=@modulename | |
| ng generate lib components | |
| ng generate module atoms --app="components" | |
| ng generate module molecules --app="components" | |
| ng generate module organisms --app="components" | |
| ng generate app hospital-admin --routing | |
| npm i -g @storybook/[email protected] | |
| npm i --save-dev babel-core react react-dom | |
| ng generate component atoms/input-field --app=components |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| #!/bin/bash | |
| yarn global add generator-express-no-stress-typescript | |
| yarn global add generator-ts-np |
| MEDIA=$1 | |
| if [ -z "$MEDIA" ]; then | |
| echo "Please enter media name:" | |
| read MEDIA | |
| fi | |
| [ -z "$MEDIA" ] && printf "[error]: %s\n" "Media optiion is required" >&2 && exit 1 ; | |
| IMAGE="Fedora-Server-armhfp-26-1.5-sda.raw.xz" | |
| TEMP_DIR=$(mktemp -d) | |
| TEMP_IMAGE_FILE_PATH="$TEMP_DIR/$IMAGE" | |
| curl https://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/armhfp/images/$IMAGE -L -o "$TEMP_IMAGE_FILE_PATH" |
gdb attach $(pidof node)
b v8::internal::Runtime_StackGuard
print 'v8::Isolate::GetCurrent'()
-----------------------------
output: $1=<result>
---------------------
print 'v8::Isolate::TerminateExecution'(<result>)
c
| #!/bin/sh | |
| echo "Start SSHD service" | |
| systemctl enable sshd | |
| systemctl start sshd | |
| echo "Remove junky programs i hate" | |
| dnf -y remove clipit asunder gnomebaker lxmusic gnumeric osmo pidgin xpad | |
| echo "Upgrade system" |
#Active Route Traversal !!!! angular/angular#9662
http://plnkr.co/edit/pHd89K?p=preview
#DI: ##Intro (nice mock example at 19:30) https://www.youtube.com/watch?v=_OGGsf1ZXMs ###Injectors providers dpendencies explained:
| #DI: | |
| ##Intro | |
| (nice mock example at 19:30) | |
| https://www.youtube.com/watch?v=_OGGsf1ZXMs | |
| ###Injectors providers dpendencies explained: | |
| http://blog.thoughtram.io/angular/2015/05/18/dependency-injection-in-angular-2.html | |
| #Agular shadow dom | |
| https://www.youtube.com/watch?list=PLOETEcp3DkCq788xapkP_OU-78jhTf68j&v=J5Bvy4KhIs0 |
#GULP
Backbone is great but I continually found the default sorting method limited due to the following:
Disc 1, Disc 2, … Disc 10 would become Disc 1, Disc 10, Disc 2
With the help of Jim Palmer's naturalSort.js, I was able to integrate natrual sorting into Backbone.Collection.
Backbone collections are automatically sorted and now, by simply adding sortType:"natural", your collections can be sorted naturally.