Terms I did not know and learnd over time.
- TC
- TC39
- ES6 (ES5, ES3)
- Core (about an open source project)
- Commit bit
- SemVer
/* | |
script for file extention verification | |
*/ | |
var path = 'path/to/file'; | |
var imageExt = ['jpeg','jpg','png','gif','tiff']; //specify allowed file extentions | |
var fileExt = path.split('.'); | |
var checkExist = imageExt.indexOf(fileExt[fileExt.length-1]); // -1 if the file extention does not exist in imageExt | |
if (checkExist === -1){ | |
console.log('File type not supported, please use '+ imageExt); |
/* | |
code to out put console message in phantomjs page into node.js console. | |
*/ | |
page.set('onConsoleMessage', function (message) { | |
console.log('Phantom Console: ' + message); | |
}); |
/* | |
allows to call function from inside of page.evaluate in phantomjs-node | |
*/ | |
page.set('onCallback', function (arg) { | |
//callback actions | |
}); | |
//To use callback, use following command in your page.evaluate | |
window.callPhantom(arg); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style type="text/css"> | |
path.overlay { | |
fill: orange; | |
} | |
path.base{ | |
fill: #f3f3f3; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style type="text/css"> | |
rect.overlay { | |
fill: #2279bd; | |
} | |
rect.base{ | |
fill: #f3f3f3; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #222; | |
color:#fff; | |
font-family: "Helvetica Neue", Helvetica, sans-serif; |
| Decimal | Hex | Binary | | |
|---------|-----|----------| | |
| 0 | 00 | 00000000 | | |
| 1 | 01 | 00000001 | | |
| 2 | 02 | 00000010 | | |
| 3 | 03 | 00000011 | | |
| 4 | 04 | 00000100 | | |
| 5 | 05 | 00000101 | | |
| 6 | 06 | 00000110 | | |
| 7 | 07 | 00000111 | |
Programmers likes to fix things. When there is a typo in your code, then your code won't work. There are many requests to fix typo in the article from inconstant numbering in footnotes to wrong filename for images. When spotting someone's mistake, get creative and title your PR like "Instagram is only worth 1 Instragram not 2 Instragrams". Programmer's attention to detail extends not only the article itself, but also the license doc in the repo.
Don't forget to fact check before spotting mistake though. It's important. Keyword to use is AFAIK and can confirm.
Programmers love to know the source of information. There are few requests to add hyperlinks to contents referenced in the article. Some are from original autho