this is my script to create one new app with elixir phoenix 1.3 i'm use bootstrap 4, jquery and sweetalert2 to popup messages change or adjustments this script for your needs.
$ mix phx.new new_app --no-ecto
$ cd new_app
/*! | |
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome | |
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) | |
*/ | |
@import "font-awesome/scss/variables"; | |
/* FONT PATH VARIABLE | |
* -------------------------- */ | |
$fa-font-path: "font-awesome/fonts/"; | |
/* -------------------------- */ |
var cv = require('opencv'); | |
var util = require('util'); | |
var request = require('request').defaults({ encoding: null }); | |
var uuid = require('node-uuid'); | |
var AWS = require('aws-sdk'); | |
var s3 = new AWS.S3(); | |
var dstBucket = 'danilop-eventdrivenapps'; | |
var dstPrefix = 'tmp/'; |
import { Component, AfterViewInit, ViewChild, ElementRef } from '@angular/core'; | |
// Declara a lib do videojs como externa ao angular | |
declare let videojs: any; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) |
<div class="container-fluid"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col"> | |
<div class="jumbotron"> | |
<h3 class="text-center">Player com Video.JS</h3> | |
</div> | |
</div> | |
</div> | |
<div class="row"> |
<div class="container-fluid"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col"> | |
<div class="jumbotron"> | |
<h3 class="text-center">Angular com delay</h3> | |
</div> | |
</div> | |
</div> | |
<div class="row"> |
import { Component } from '@angular/core'; | |
import swal from 'sweetalert2'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent { | |
title = 'sample-delay'; |
/* You can add global styles to this file, and also import other style files */ | |
@import "~bootstrap/scss/bootstrap"; | |
@import "~sweetalert2/dist/sweetalert2.css"; |
Array.prototype.removeDuplicates = function(){ | |
return this.reduce((result,nextItem)=>result.includes(nextItem) ? result : result.concat(nextItem),[]); | |
} |
#!/bin/bash | |
# from | |
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
convert favicon-256.png -resize 16x16 favicon-16.png | |
convert favicon-256.png -resize 32x32 favicon-32.png | |
convert favicon-256.png -resize 64x64 favicon-64.png | |
convert favicon-256.png -resize 128x128 favicon-128.png |