This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
{ | |
"semi": false, | |
"singleQuote": true | |
} |
// The counter implementation to the weird function! | |
const solution = n => { | |
let result = []; | |
for (let num = 1; num <= n; num++) { | |
result.push(num); | |
} | |
return result; | |
}; |
const solution = num => { | |
const isNegativeNum = num < 0; | |
const numStr = Math.abs(num).toString(); | |
const permutations = []; | |
for (let i = 0; i <= numStr.length; i++) { | |
const permutation = Number(numStr.substr(0, i) + '5' + numStr.substr(i)); | |
permutations.push(permutation); | |
} |
const { watch } = require('gulp'); | |
const browserSync = require('browser-sync').create(); | |
const reloadBrowser = cb => { | |
browserSync.reload(); | |
cb(); | |
}; | |
exports.default = function() { | |
browserSync.init({ proxy: 'http://localhost:3000' }); |
const { watch } = require('gulp'); | |
const livereload = require('gulp-livereload'); | |
const watchPaths = ['app/assets', 'app/views']; | |
const reloadBrowser = cb => { | |
console.log('Reloading browser...'); | |
livereload.reload(); | |
cb(); | |
}; |
import { createGlobalStyle } from 'styled-components'; | |
import typography from './typography'; | |
const GlobalStyle = createGlobalStyle` | |
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} |
const name: string = 'hello'; | |
type Props = { | |
name: string; | |
} |
#!/usr/bin/env bash | |
# Copy type definitions | |
printf "%s\n\nexport = Schemas;" "$(cat src/types/schema.d.ts)" > packages/types/index.d.ts | |
# Bump version and publish | |
cd packages/types && \ | |
npm version patch && \ | |
npm publish |