This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.
Open the corresponding bl.ock to view the example in your browser.
This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.
Open the corresponding bl.ock to view the example in your browser.
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
TL;DR
Create a backup:
pg_dumpall > mybackup.sql
Perform the upgrade:
sudo pg_dropcluster 9.4 main --stop
This guide explains the way to setup a production server using Capistrano.
# Gemfile
# Use Capistrano for deployment
<?php | |
namespace Doctrine\ORM\Mapping; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
/** | |
* A set of rules for determining the physical column, alias and table quotes | |
*/ | |
class EagerQuoteStrategy implements QuoteStrategy |
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
oauth_user_provider
in the security.yml
with your custom created serviceHere are the steps:
routing.yml
I have added all the routes for both bundles.config.yml
mostly as it is presented in the HWIOAuthBundle.security.yml
mostly as it is presented in the HWIOAuthBundle (though my routes are using /login
pattern, not /connect
). Also, the oauth_user_provider
is set for my custom service.function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
<?php | |
/* | |
* Converts CSV to JSON | |
* Example uses Google Spreadsheet CSV feed | |
* csvToArray function I think I found on php.net | |
*/ | |
header('Content-type: application/json'); | |
// Set your CSV feed |
Overview: | |
This was an example I have given to my co-developer who was doing some Task/Coodinator type of code. Hope this is helpful to many other developers out there. | |
Note that the example only supports one-to-one dependency between TaskObject instance. The TaskAbstract class can be easily modified to support 1-to-many dependency. | |
For simpicity, I have combined all three classes in this single gist: | |
1. TaskAbstract | |
2. TaskObject (extends TaskAbstract) | |
3. TaskCoordinator (extends TaskAbstract) |