Install
npm i bootstrap jquery popper.js
Add to src/main.js:
import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css';
| // Simulate a call to Dropbox or other service that can | |
| // return an image as an ArrayBuffer. | |
| var xhr = new XMLHttpRequest(); | |
| // Use JSFiddle logo as a sample image to avoid complicating | |
| // this example with cross-domain issues. | |
| xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true ); | |
| // Ask for the result as an ArrayBuffer. | |
| xhr.responseType = "arraybuffer"; |
Install
npm i bootstrap jquery popper.js
Add to src/main.js:
import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css';
| if (!process.env.NODE_PATH) { | |
| console.log(); | |
| if (process.env.SHELL === '/bin/zsh') { | |
| console.log(' Please set environment variable NODE_PATH in ~/.zshrc:'); | |
| } else if (process.env.SHELL === '/bin/bash') { | |
| console.log(' Please set environment variable NODE_PATH in ~/.bashrc:'); | |
| } else { | |
| console.log(' Please set environment variable NODE_PATH:'); | |
| } | |
| console.log(); |
| You can provide the instance of axios through a plugin: | |
| // resources.js | |
| export const $axios; | |
| export const User = { | |
| findById: function (id) { | |
| ... | |
| $axios.get(...) | |
| } |
npm install npm --global || npm i npm -gnpm init --yes || npm init -ynpm init --scope=myusername npm install @myusername/mypackage require('@myusername/mypackage')npm install --save package-name || npm i -s package-namenpm install --save-dev package-name || npm i -D package-namenpm install --productionnpm install --save --save-bundle package-namenpm outdated && npm update| Remove all PNG files from repository but keep the working copies: | |
| git rm --cached **/*.png | |
| Add them again | |
| git add **/*.png | |
| Ready to commit! |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Web.Mvc; | |
| namespace Website.Models.EntityFrameworkCodeFirst | |
| { | |
| public class Entry | |
| { | |
| [Key] |
| /* Usage in Package Manager Console: | |
| Enable-Migrations | |
| Add-Migration "SetupMigrations" | |
| Update-Database | |
| -- change model | |
| Add-Migration "AddedPersonField" | |
| Update-Database | |
| Rollback to specific: | |
| Update-Database -TargetMigration:"SetupMigrations" |
| public class Coordinator | |
| { | |
| private readonly ICompleteUnitOfWork _unitOfWorkCompleter; | |
| private readonly WidgetGenerator _widgetGenerator; | |
| private readonly WotsitGenerator _wotsitGenerator; | |
| public Coordinator( | |
| ICompleteUnitOfWork unitOfWorkCompleter, | |
| WidgetGenerator widgetGenerator, | |
| WotsitGenerator wotsitGenerator) |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| using System.Data.Entity; | |
| using System.Data.Entity.ModelConfiguration; | |
| using System.Data.Entity.ModelConfiguration.Configuration; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using Brass9.Collections.HasProp; |