// https://github.com/rexxars/react-markdown
// https://github.com/GregRos/typed-react-markdown
import * as ReactMarkdown from 'react-markdown';
<ReactMarkdown linkTarget="_blank">
{intl.formatMessage(translations.message_with_links)}
// https://github.com/rexxars/react-markdown
// https://github.com/GregRos/typed-react-markdown
import * as ReactMarkdown from 'react-markdown';
<ReactMarkdown linkTarget="_blank">
{intl.formatMessage(translations.message_with_links)}
/* | |
useful references: | |
String.prototype.replace() | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace | |
https://alligator.io/js/string-replace/ | |
Encode and Decode HTML entities using pure Javascript | |
https://ourcodeworld.com/articles/read/188/encode-and-decode-html-entities-using-pure-javascript |
I hereby claim:
To claim this, I am signing this object:
--
Learn AngularJS | Codecademy - Learn to build web apps using AngularJS 1.x. By the end of the course, you'll be able to use AngularJS to create your own apps.
Egghead - AngularJS - curso online
'^', '~', '<=', '*', ...
package.json > dependencies and devDependencies
exactly 1.3.2
"vendor/package": "1.3.2"
// value in milliseconds | |
function prettyTime(value){ | |
var days = Math.floor(value/86400000); | |
value = value%86400000; | |
var hours = Math.floor(value/3600000); | |
value = value%3600000; | |
var minutes = Math.floor(value/60000); | |
value = value%60000; | |
var seconds = Math.floor(value/1000); |
function* shopping() { | |
// stuff on the sidewalk | |
// walking down the sidewalk | |
// go into the store with cash | |
const stuffFromStore = yield 'cash'; | |
// walking to laundry place | |
const cleanClothes = yield 'laundry'; |
// from an array of arrays of points | |
const points = [ | |
[4,5], | |
[10,1], | |
[0,40] | |
]; | |
// to array of objects x,y points | |
function transformPointsData(points){ | |
return points.map(([ x, y ]) => { |
function unique(array) { | |
return array.reduce(function(acc, item){ | |
if(!acc.find(function(element){ return element === item; })){ | |
acc.push(item); | |
} | |
return acc; | |
}, []); | |
} | |
var numbers = [1,1,2,3,4,4]; |