Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.
// Paste this code in browser console to debug ui-router problems when navigating through states. | |
var $rootScope = angular.element(document.querySelectorAll("[ui-view]")[0]).injector().get('$rootScope'); | |
$rootScope.$on('$stateChangeStart',function(event, toState, toParams, fromState, fromParams){ | |
console.log('$stateChangeStart from '+fromState.name+'- fired when the transition begins. fromState,fromParams : \n',fromState, fromParams); | |
console.log('$stateChangeStart to '+toState.name+'- fired when the transition begins. toState,toParams : \n',toState, toParams); | |
}); | |
$rootScope.$on('$stateChangeError',function(event, toState, toParams, fromState, fromParams){ |
namespace Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController, | |
Lists\Entity\Lists; | |
class IndexController extends AbstractActionController | |
{ | |
public function indexAction() | |
{ |
<?php | |
define("DB_HOST", "localhost"); | |
define("DB_NAME", "db_name"); | |
define("DB_USER", "root"); | |
define("DB_PASSWORD", ""); | |
define("CSV_FILE", "file.csv"); | |
$db = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . "," . DB_USER . "," . DB_PASSWORD); |
Then in your controller
, inject $polling
and start polling like this.
General use
$polling.startPolling({name_of_this_polling}, {url_to_fetch_data_from}, {time_in_milli_seconds}, {callback});
Example,
$polling.startPolling('fetchNotifications', 'http://localserver.local/fetch/notifications', 10000, $scope.processData);
/(^[+][0-9]{11,12})$|^(^0{1}(?![0])[0-9]{9})$|(^0{2}[0-9]{11,12})$/g |
// clearfix | |
@mixin clearFix() { | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} |
dockerproject
with whatever project namespace you are using.network
in docker-compose.docker
.
docker
directory on same level of docker-compose.yml
file and replace -
with subdirectory from this gist. For exmaple:
docker/nginx/dockerproject.conf
file to use docker-nginx-dockerproject.conf
.root
path matches public directory of your framework/code that will serve the fronte page of application.3307
assuming you might already have a local instance running at 3306
.8001
. You can change this under nginx
section in docker-compose file.