Skip to content

Instantly share code, notes, and snippets.

View leandrojo's full-sized avatar
🎯
Focusing

Leandro Araújo leandrojo

🎯
Focusing
  • São Paulo, Brasil
View GitHub Profile
HotelListRequest: {
apiExperience : 'PARTNER_WEBSITE',
arrivalDate : arrivalDate,
departureDate : departureDate,
numberOfResults : opts.numberOfResults || 200,
includeDetails : opts.details || true,
includeHotelFeeBreakdown: true,
sort: opts.sort || 'HIGH_MARGIN',
RoomGroup: {
Room: { numberOfAdults: opts.numberOfAdults || 2 }
$ionicPlatform.ready () ->
# Iniciando Google Analytics para
# rastreamento de usuários na aplicação.
$cordovaGoogleAnalytics = (ga_storage)
$cordovaGoogleAnalytics
._setAccount( ENV.GOOGLE_ANALYTICS.ID )
Model
.find()
...
.populate([{
path: 'companies',
model: 'Company',
populate: {
path: 'products',
model: 'Product'
}
Model
.find()
...
.populate([{
path: 'companies',
model: 'Company',
populate: {
path: 'products',
model: 'Product'
}
sudo apt-get update && apt-get -y upgrade
gulp = require("gulp")
concat = require("gulp-concat")
shell = require("gulp-shell")
stylus = require("gulp-stylus")
jade = require("gulp-jade")
watch = require("gulp-watch")
preprocess = require("gulp-preprocess")
args = require("yargs").argv
gulp.task "concat:js", () ->
@leandrojo
leandrojo / hhvm_magento_setup.md
Last active August 29, 2015 14:26 — forked from tegansnyder/hhvm_magento_setup.md
HHVM Magento Server Setup

I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.

Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.

Install the EPEL, Webtatic, and REMI repos

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
.dialog, .modal-wrapper,
.dialog__overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.dialog, .modal-wrapper {
position: fixed;
#!upstart
description "hasbel.me server"
author "leandro"
start on startup
stop on shutdown
script
export HOME="/root"
Aquiraz
Topônimo Palavra de origem tupi, que significa "Gentio da Terra"
Distância a Fortaleza 28km
Acesso: "BR-116", "Anel Viário", "CE-040"
Atrativos Naturais
Porto das Dunas, Praia do Presídio, Prainha, Iguape, Barro Preto, Batoque
Lagoa Encantada, Lagoa do Catu, Tapuio