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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
source ~/antigen.zsh | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dante/.oh-my-zsh | |
antigen use oh-my-zsh |
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
#!/usr/bin/env bash | |
cd ./tests | |
for i in $(ls -d */); | |
do | |
cd ${i}; | |
echo "------------------------------------------" | |
echo "Testing " ${i} | |
echo "------------------------------------------" |
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
FROM node:boron | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
RUN npm install |
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
<ItemGroup> | |
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.0.2" /> | |
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="1.0.2" /> | |
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.1"> | |
<PrivateAssets>All</PrivateAssets> | |
</PackageReference> | |
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.1" /> | |
</ItemGroup> |
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
<ItemGroup> | |
<ProjectReference Include="..\Project.Name\Project.Name.csproj" /> | |
</ItemGroup> |
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
const express = require('express') | |
const app = express() | |
app.get('/', (req, res) => res.send('Hello World!')) | |
app.listen(3000, () => console.log('Server is running on :3000')) |
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:6.9.4 | |
before_script: | |
# install ssh-agent | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
# run ssh-agent | |
- eval $(ssh-agent -s) | |
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store | |
- ssh-add <(echo "$SSH_KEY") | |
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks) |
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
var module = require('../index.js'); | |
var expect = require('chai').expect; | |
describe('dummy test', () => { | |
it('should work', () => { | |
expect(1).to.equal(1); | |
}); | |
}); |
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:6.9.4 | |
all_tests: | |
script: | |
- npm install | |
- npm run test |
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
var start; | |
var TICK = 100; | |
start = null; | |
setInterval(function () { | |
if (!start) { | |
start = +new Date | |
} | |
NewerOlder