This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myApp = angular.module('myApp',[]); | |
function Parent($scope) { | |
$scope.name = 'Superhero'; | |
$scope.clickParent = function() { | |
$scope.name = 'Clicked from base controller'; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
(function() { | |
var mod = angular.module("App.services", []); | |
//register other services here... | |
/* pubsub - based on https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js*/ | |
mod.factory('pubsub', function() { | |
var cache = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET filepath = REPLACE(filepath, 'sites/default/files', ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add drush aliases. | |
# Please, first is download this file from pantheon if you haven't did it early | |
# and place to the .drush folder | |
cd ~/ | |
cp ~/Downloads/pantheon.aliases.drushrc.php ~/.drush | |
cd ~/websites | |
# use 'drush sa' command to check if drush is using new aliases. | |
# this command will provide list of aliases, so you need to check something like | |
# pantheon.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#!/usr/bin/env drush | |
// Example rebuild script | |
// local alias | |
$self_record = drush_sitealias_get_record('@self'); | |
$self_name = '@' . $self_record['#name']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote set-url origin https://[email protected]/companyname/projectname.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Only install if not exists | |
if [ ! -x /usr/bin/ansible ]; then | |
echo ">>> Installing ansible"; | |
apt-get update | |
apt-get install python-pip python-dev git -y | |
pip install PyYAML jinja2 paramiko |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Code for the Message notify example feature. | |
*/ | |
include_once('message_notify_example.features.inc'); | |
/** | |
* Implements hook_comment_insert(). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Only install if not exists | |
if [ ! -x /usr/bin/ansible ]; then | |
echo ">>> Installing ansible"; | |
#apt-get install software-properties-common | |
apt-add-repository ppa:ansible/ansible -y | |
apt-get update | |
apt-get install ansible -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! Prefix flex for IE10 and Safari / iOS in LESS | |
* https://gist.github.com/codler/2148ba4ff096a19f08ea | |
* Copyright (c) 2014 Han Lin Yap http://yap.nu; MIT license */ | |
.display(@value) when (@value = flex) { | |
display: -ms-flexbox; // IE10 | |
display: -webkit-flex; // Safari / iOS | |
} | |
.display(@value) when (@value = inline-flex) { |