(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| using System; | |
| using System.Data.Entity.Core.Common.CommandTrees; | |
| using System.Data.Entity.Core.Metadata.Edm; | |
| using System.Data.Entity.Infrastructure.Interception; | |
| using System.Linq; | |
| public class CreatedAndModifiedDateInterceptor : IDbCommandTreeInterceptor | |
| { | |
| public const string CreatedColumnName = "Created"; | |
| public const string ModifiedColumnName = "Modified"; |
| //#region "namespace fwpr.controls" | |
| (function () { | |
| this.fwpr = this.fwpr || {}; | |
| this.fwpr.controls = this.fwpr.controls || {}; | |
| var ns = this.fwpr.controls; | |
| ns.getControl = function (fieldName) { | |
| try { |
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; | |
| module.exports = { | |
| devtool: 'source-map', | |
| debug: true, | |
| entry: { | |
| 'app': './src/app/main' | |
| }, |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| { | |
| "excludeFiles": ["node_modules/**", "bower_components/**"], | |
| "requireCurlyBraces": [ | |
| "if", | |
| "else", | |
| "for", | |
| "while", | |
| "do", | |
| "try", |
| { | |
| "bitwise": true, | |
| "camelcase": true, | |
| "curly": true, | |
| "eqeqeq": true, | |
| "es3": false, | |
| "esversion": 6, | |
| "forin": true, | |
| "freeze": true, | |
| "immed": true, |
| { | |
| "directory": "public/lib" | |
| } |
| /** | |
| * For more info on how to create snippets in VS Code, | |
| * visit https://code.visualstudio.com/Docs/customization/userdefinedsnippets | |
| */ | |
| { | |
| "API Documentation": { | |
| "prefix": "apidocs", | |
| "body": [ | |
| "/**", | |
| "* @api {${1:http-method}} ${2:url} ${3:description}", |
| $('#file').fileupload({ | |
| url: 'rewards/postnotes', | |
| singleFileUploads: true, | |
| replaceFileInput: false, | |
| fileInput: $('#file'), | |
| type: 'POST', | |
| autoUpload: false, | |
| progressall: function (e, data) { | |
| button.attr('disabled', 'disabled') | |
| }, |
| const fs = require('fs'); | |
| const server = require('http').createServer(); | |
| server.on('request', (req, res) => { | |
| /** | |
| * We basically put the whole big.file (~400mb) content in memory before we write it | |
| * out to the response object. This is very inefficient. | |
| * memory used: ~430mb | |
| */ | |
| // fs.readFile('./big.file', (err, data) => { |