/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"ascii_folding": { | |
"tokenizer": "standard", | |
"filter": [ | |
"standard", | |
"asciifolding" | |
] |
[ | |
{ | |
"id": 10, | |
"nome": "Mesa", | |
"categoria": { | |
"id": 1, | |
"nome": "Móveis" | |
}, | |
"semelhantes": [] | |
}, |
FROM php:7-fpm | |
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y \ | |
&& pecl install xdebug \ | |
&& rm -rf /tmp/pear \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)\n" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_enable=on\n" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_autostart=off\n" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_port=9001\n" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_host="/sbin/ip route|awk '/default/ { print $3 }' >> /usr/local/etc/php/conf.d/xdebug.ini |
<?php | |
use Illuminate\Database\Eloquent\Model; | |
class Telefone extends Model { | |
public function scopeFilter($query) | |
{ | |
$value = session('key'); | |
'use strict'; | |
// Generated on 2014-04-14 using generator-leaflet 0.0.14 | |
var gulp = require('gulp'); | |
var open = require('open'); | |
var wiredep = require('wiredep').stream; | |
// Load plugins | |
var $ = require('gulp-load-plugins')(); |
loginCtrl.facebook = function () { | |
$cordovaOauth.facebook("MINHA_CHAVE", ['email']).then(function (result) { | |
displayData(result.access_token); | |
}, function (error) { | |
console.log(JSON.stringify(error)) | |
}); | |
}; |
Single Page Apps are ruling the world and AngularJS is leading the charge. But many of the lessons we learned in the Web 2.0 era no longer apply, and few are as drastically different as authentication.
CORS is an oft-misunderstood feature of new browsers that is configured by a remote server. CORS stands for Cross-Origin-Resource-Sharing, and was designed to make it possible to access services outside of the current origin (or domain) of the current page.
Like many browser features, CORS works because we all agree that it works. So all major browsers like Chrome, Firefox, and IE support and enforce it. By using these browsers, you benefit from the security of CORS.
That means certain browsers do not enforce it, so it is not relevant there. One large example is a native Web View for things like Cordova and Phonegap. However, these tools often have configuration options for whitelisting domains so you can add some security that way.
<?php | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |