Skip to content

Instantly share code, notes, and snippets.

set nocompatible
filetype indent plugin on
syntax on
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
@binaryk
binaryk / Tagup-Fe-Spec-Skeleton
Last active March 19, 2018 12:03
Mock for all .spec.js tests, just replace <ComponentName> with your (file) component, and uncomment useful code or remove useless.
import Vue from 'vue';
import Vuex from 'vuex';
import sinon from 'sinon';
import flushPromises from 'flush-promises';
import { createLocalVue, mount } from '@vue/test-utils';
import elementOnDemand from 'src/plugins/element-on-demand';
import ComponentName from './ComponentName';
import { modules } from 'src/store/index';
import { mapUse } from 'src/helpers';
/Applications/XAMPP/xamppfiles/etc/my.cnf
find the [mysqld] section, add one line:
innodb_force_recovery = 1
then run
sudo /Applications/XAMPP/bin/mysql.server start
everything is ok again.
settings
grant all on *.* to 'root'@'%' identified by 'Parola';
mysql:
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-14-04
phpmyadmin:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload
http://getskeleton.com/
http://purecss.io/
https://www.myresponsee.com/
http://getbase.org/
module.exports = {
entry: "./app/components/Main.js",
output: {
filename: "public/bundle.js"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
systemLog:
destination: file
path: c:\data\log\mongod.log
storage:
dbPath: c:\data\db
app.use(function(req, res, next){
res.header('Access-Control-Allow-Origin','*');
res.header('Access-Control-Allow-Method','GET,PUT,DELETE,POST');
res.header('Access-Control-Allow-Headers','Content-Type');
next();
});