Have a writable folder public/blog_images in you app.
###routes.php
// Redactor Blog Upload
Route::post('redactorUpload', function()
{
$file = Input::file('file');
$fileName = $file->getClientOriginalName();
Have a writable folder public/blog_images in you app.
###routes.php
// Redactor Blog Upload
Route::post('redactorUpload', function()
{
$file = Input::file('file');
$fileName = $file->getClientOriginalName();
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered! | |
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it. | |
$ brew install elixir | |
$ mix local.hex # Answer y to any Qs | |
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw... | |
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3 | |
# ** Answer y to any Qs ** | |
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez |
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParameters": true, |
<!-- Page preloader --> | |
<div id="hola"> | |
<div id="preloader"> | |
<span></span> | |
<span></span> | |
</div> | |
</div> | |
<!-- Start content --> | |
<div class="page-wrap"> |
// fluidly resize type | |
// based on example here https://css-tricks.com/snippets/css/fluid-typography/ | |
@mixin fluid-type($font-min, $font-max, $screen-min, $screen-max) { | |
font-size: #{$font-min}px; | |
@media only screen and (min-width: #{$screen-min}px) { | |
font-size: calc( | |
#{$font-min}px + #{($font-max - $font-min)} * (100vw - #{$screen-min}px) / (#{$screen-max} - #{$screen-min}) | |
); | |
} |
/** | |
D3D11AppView.cpp | |
*/ | |
#include "pch.h" | |
#include "D3D11AppView.h" | |
using namespace Windows::ApplicationModel; | |
using namespace Windows::ApplicationModel::Core; | |
using namespace Windows::ApplicationModel::Activation; |
I have been struggling to start a new project with Phoenix 1.3 and the new vue-cli 3 for Vue.js. There are tons of example already but none of them suited my needs, because:
Assuming that you have Elixir and Phoenix 1.3 are both installed, let's build our new App.
'use strict'; | |
// requestAnimationFrame polyfill by Erik Möller. | |
// Fixes from Paul Irish, Tino Zijdel, Andrew Mao, Klemen Slavic, Darius Bacon and Joan Alba Maldonado. | |
// Adapted from https://gist.github.com/paulirish/1579671 which derived from | |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// Added high resolution timing. This window.performance.now() polyfill can be used: https://gist.github.com/jalbam/cc805ac3cfe14004ecdf323159ecf40e | |
// MIT license | |
// Gist: https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0 |
#include <Unknwn.h> | |
#include <winrt/Windows.System.h> | |
#include <winrt/Windows.UI.Composition.Desktop.h> | |
#include <windows.ui.composition.interop.h> | |
#include <ShellScalingAPI.h> | |
#include <DispatcherQueue.h> | |
extern "C" IMAGE_DOS_HEADER __ImageBase; | |
using namespace winrt; |