Geeksphone Android Builds
- January ???
- February 4.2.2
- March ???
# Git grep for external static deps (ignores static:: and self:: calls) | |
alias staticdeps="git grep -Pi '^(?!\s+[*\/]).+\b[a-z][a-z0-9_]++(?<!static|self)::'" | |
# can also be assigned as a git alias | |
# add --global if you want it everywhere | |
git config alias.extdeps "grep -Pi '^(?"'!'"\s+[*\/]).+\\b[a-z][a-z0-9_]++(?<"'!'"static|self)::'" | |
# usage, global search | |
git extdeps |
#!/bin/bash | |
###################################################################################### | |
# THIS GIST IS NO LONGER MAINTAINED AND MAY BE DELETED IN THE FUTURE! # | |
# PLEASE GO TO https://github.com/shadowhand/git-switchbranch FOR A CURRENT VERSION! # | |
###################################################################################### | |
# git-switchbranch | |
# @link https://gist.github.com/shadowhand/9813453 | |
# @author shadowhand https://github.com/shadowhand |
Geeksphone Android Builds
<?php | |
namespace spec\Ushahidi\Usecase\User; | |
use Ushahidi\Entity\User; | |
use Ushahidi\Entity\UserRepository; | |
use Ushahidi\Tool\Validator; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; |
<?php | |
namespace Ushahidi\Usecase\User; | |
use Ushahidi\Entity\User; | |
use Ushahidi\Entity\UserRepository; | |
use Ushahidi\Tool\Validator; | |
class Register | |
{ |
<?php | |
/* snip */ | |
$parser = $app->get('user.parse.register'); | |
$usecase = $app->get('usecase.user.register'); | |
$params = $this->request->post(); | |
try | |
{ | |
$user = $parser($params); |
<?php | |
namespace spec\Ushahidi\Usecase\User; | |
use Ushahidi\Entity\User; | |
use Ushahidi\Entity\UserRepository; | |
use Ushahidi\Tool\Validator; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; |
<?php | |
namespace Ushahidi\Usecase\User; | |
use Ushahidi\Entity\User; | |
use Ushahidi\Entity\UserRepository; | |
use Ushahidi\Tool\Validator; | |
use Ushahidi\Tool\PasswordAuthenticator; | |
use Ushahidi\Exception\Login as LoginException; |
new DataProviderModel({ | |
id: 'email', | |
name: 'Email Server', | |
type: 'email', | |
enabled: true, | |
config: { | |
'server': 'mail.example.com', | |
'port': 25, | |
'username': 'user@example.com', | |
'password': 'secret' |