This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}| # regex to split $uri to $fastcgi_script_name and $fastcgi_path | |
| fastcgi_split_path_info ^(.+?\.php)(/.*)$; | |
| # Check that the PHP script exists before passing it | |
| try_files $fastcgi_script_name =404; | |
| # Bypass the fact that try_files resets $fastcgi_path_info | |
| # see: http://trac.nginx.org/nginx/ticket/321 | |
| set $path_info $fastcgi_path_info; | |
| fastcgi_param PATH_INFO $path_info; |
| <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; | |
| } |