$ npm -v
: not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:
: not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm:
/mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting "in")
i have node installed for windows (off the nodejs site).
This file contains hidden or 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 | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/home/mikael/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains hidden or 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
| <script> | |
| import BlogSection from "~/components/Sections/BlogSection" | |
| import { getAllPosts } from './plugins/getPosts' | |
| console.log('component: ', getAllPosts) | |
| } | |
| </script> |
This file contains hidden or 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
| /** | |
| * Simple Node.js script to turn a specific page on a Google Sheet | |
| * into a JSON object for the main purpose of HTML Templating. | |
| * | |
| * @author jonobr1 / http://jonobr1.com | |
| * | |
| */ | |
| var https = require('https'); | |
| var path = require('path'); |
This file contains hidden or 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
| import React from 'react'; | |
| import 'antd/dist/antd.css'; | |
| import './App.css'; | |
| import { Layout, Menu, Breadcrumb } from 'antd' | |
| const { Header, Content, Footer } = Layout | |
| function App() { | |
| return ( | |
| <div className="App"> | |
| <Layout className="layout"> |
This file contains hidden or 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 mockAxios = jest.genMockFromModule('axios') | |
| mockAxios.get = jest.fn(() => Promise.resolve({ data: {} })) | |
| mockAxios.post = jest.fn(() => Promise.resolve({ data: {} })) | |
| mockAxios.put = jest.fn(() => Promise.resolve({ data: {} })) | |
| mockAxios.patch = jest.fn(() => Promise.resolve({ data: {} })) | |
| mockAxios.create = jest.fn(() => mockAxios) | |
| export default mockAxios |
This file contains hidden or 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
| def convert(number): | |
| pass |
This file contains hidden or 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
| import { env, port } from './config/vars' | |
| import app from './config/express' | |
| const development = env === 'development' | |
| if (process.env.NODE_ENV !== 'test') | |
| app.listen( | |
| port, | |
| () => development && console.log(`Server started on port ${port} (${env})`), |
This file contains hidden or 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
| call plug#begin("~/.vim/plugged") | |
| " Theme | |
| Plug 'mhartington/oceanic-next' | |
| " Language Client | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| let g:coc_global_extensions = ['coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier'] | |
| " File Explorer with Icons | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'ryanoasis/vim-devicons' |