It's easy to integrate Font Awesome into Symfony2 (Twitter Bootstrap, or even use it on its own).
Add those lines to composer.json
{
"repositories": [
{
"type": "package",
#!/usr/bin/perl -w | |
# mysqltuner.pl - Version 1.3.0 | |
# High Performance MySQL Tuning Script | |
# Copyright (C) 2006-2011 Major Hayden - [email protected] | |
# | |
# For the latest updates, please visit http://mysqltuner.com/ | |
# Git repository available at http://github.com/major/MySQLTuner-perl | |
# Aria engine patch https://github.com/major/MySQLTuner-perl/pull/41 | |
# | |
# This program is free software: you can redistribute it and/or modify |
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
# Will include all hosts the playbook is run on. | |
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
- name: "Build hosts file" | |
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
when: hostvars[item].ansible_default_ipv4.address is defined | |
with_items: groups['all'] |
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.<?php | |
/* | |
* CLI report. | |
*/ | |
$stdOutWriter = new \mageekguy\atoum\writers\std\out(); | |
$cli = new \mageekguy\atoum\reports\realtime\cli(); | |
$cli->addWriter($stdOutWriter); | |
/* |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
class PhoneNumber | |
def initialize number | |
number.gsub!(/[\s-]*/, "") | |
@number = number | |
end | |
def valid? | |
@number =~ /^((\+\d{3,4})?\d{7,8})?$/ | |
end |