//events.js:183 throw er; // Unhandled 'error' event
rm -rf node_modules && npm cache clean --force && npm install
lsof | wc -l
| convert("one hundred five"); // "105" | |
| convert("six hundred and fifty three"); // "653" | |
| convert("zero zero one two three"); // "123" | |
| convert("twelve o three"); // "1203" | |
| convert("thirteen zero nine"); // "1309" | |
| convert("fifteen sixteen"); // "1516" | |
| convert("fourteen ninety two"); // "1492" | |
| convert("nineteen ten"); // "1910" | |
| convert("twelve hundred"); // "1200" | |
| convert("twenty three hundred"); // "2300" |
| // Async and Await are extensions of promises | |
| // Await work under async method | |
| function findAsset (page) { | |
| let url = path.join(__dirname,'public',page); | |
| return new Promise((resolve, reject) => { | |
| fs.readFile(url,'utf-8',(err,data) => { | |
| if(err) reject(err) |
| $project | |
| ======== | |
| $project will solve your problem of where to start with documentation, | |
| by providing a basic explanation of how to do it easily. | |
| Look how easy it is to use: | |
| import project | |
| # Get your stuff done |
| // This Is Controller for contact Model and View | |
| const Controller = { | |
| // Initiate Model and View method | |
| init: function() { | |
| Model.init(); | |
| View.init(); | |
| }, |
| /*$.ajaxSetup({ | |
| headers: { | |
| 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | |
| } | |
| });*/ | |
| var csrf = $('meta[name=csrf-token]').attr('content'); | |
| $.ajaxSetup({ | |
| beforeSend: function(request) { |
//events.js:183 throw er; // Unhandled 'error' event
rm -rf node_modules && npm cache clean --force && npm install
lsof | wc -l
| class ProjectTree extends Model { | |
| //each category might have one parent | |
| public function parent() { | |
| return $this->belongsToOne(static::class, 'parent_id'); | |
| } | |
| //each category might have multiple children | |
| public function children() { | |
| return $this->hasMany(static::class, 'parent_id')->orderBy('name', 'asc'); | |
| } | |
| } |
| import React from 'react'; | |
| import debounce from 'lodash.debounce'; // 4.0.8 | |
| const withPreventDoubleClick = (WrappedComponent) => { | |
| class PreventDoubleClick extends React.PureComponent { | |
| debouncedOnPress = () => { | |
| this.props.onPress && this.props.onPress(); | |
| } |