This guide is a template that contains steps to install the project, technologies used, folder structure, etc.
/: Page to show the home or main page/blog: Page for blog/contact: Page for contact
| ############################ | |
| # STEP 1 build executable binary | |
| ############################ | |
| FROM golang:alpine as builder | |
| # Install git + SSL ca certificates. | |
| # Git is required for fetching the dependencies. | |
| # Ca-certificates is required to call HTTPS endpoints. | |
| RUN apk update && apk add --no-cache git ca-certificates gcc g++ libc-dev && update-ca-certificates | |
| # Create appuser | |
| RUN adduser -D -g '' appuser |
| /* src/app.js */ | |
| // Styles | |
| import 'normalize.css'; | |
| import 'styles/_app.scss'; | |
| $(document).ready(() => { | |
| require('scripts/ga-events'); | |
| }); |
| function nl2br(str) { | |
| var break_tag = '<br>'; | |
| return (str + '').replace(/([^>rn]?)(rn|nr|r|n)/g, '' + break_tag + ''); | |
| } |
| var string = 'github'; | |
| string = string[0].toUpperCase() + string.slice(1); | |
| console.log(string); //Github |
| <?php | |
| use Illuminate\Database\Seeder; | |
| use App\Industry; | |
| class IndustryTableSeeder extends Seeder { | |
| public function run() | |
| { | |
| DB::table('industries')->truncate(); |
If you just want to fix the issue quickly, scroll down to the "solution" section below.
If you're a Mac Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you will see an error like this:
$ npm update npm -g
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Ejemplo PHP con jQuery Ajax</title> | |
| <!-- Bootstrap--> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
| <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> |
| <!doctype html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Eliminar archivo con PHP y jQuery Ajax</title> | |
| <!-- Bootstrap--> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
| <!-- jQuery--> |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
| <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |