This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
import raven from 'raven'; | |
/* | |
To Use | |
import logger from './logger'; | |
logger.error('test error'); | |
logger.debug('test debug'); | |
logger.warning('test warning'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$(npm bin):$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.6.0/socket.io.min.js | |
var socket = io('http://localhost:5050'); | |
socket.on('news', function (data) { | |
console.log(data); | |
socket.emit('client event', { my: 'data' }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo spctl --master-disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/App.vue | |
<template> | |
<div> | |
<div class="menu"> | |
<router-link :to=" { name: 'home' }">Home</router-link> | |
<router-link :to=" { name: 'auth' }">Auth</router-link> | |
</div> | |
<div id="app"> | |
<router-view></router-view> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Spread operirators baby | |
var Array = [[1, 2],[3, 4, 5], [6, 7, 8, 9]]; | |
var result = [].concat(...Array); | |
console.log(result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Grid and breakpoints | |
*/ | |
@gutter-width: 0.5rem; | |
@outer-margin: 2rem; | |
@gutter-compensation: calc((@gutter-width * 0.5) * -1); | |
@half-gutter-width: calc((@gutter-width * 0.5)); | |
@xs-bp:30rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<div className="grid-row"> | |
<div className="col _6 col-demo">col _6</div> | |
<div className="col _6 col-demo">col _6</div> | |
</div> | |
<div className="grid-row"> | |
<div className="col _6"> | |
<div className="grid-row"> | |
<div className="col _6 col-demo">nested col _6</div> | |
<div className="col _6 col-demo">nested col _6</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://mucsi96.github.io/nightwatch-cucumber/ | |
const seleniumServer = require('selenium-server') | |
const phantomjs = require('phantomjs-prebuilt') | |
const chromedriver = require('chromedriver') | |
require('nightwatch-cucumber')({ | |
cucumberArgs: [ | |
'--compiler', 'js:babel-core/register', | |
'--require', 'features/step_definitions', | |
'--require', 'features/hooks.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:latest | |
stages: | |
- build | |
- test | |
cache: | |
key: ${CI_COMMIT_REF_SLUG} | |
paths: | |
- node_modules/ |
OlderNewer