This file contains 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
xgettext --from-code=utf-8 -k_e -k_x -k__ -o languages/default.pot $(find . -name "*.php") |
This file contains 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'; | |
/** | |
* This module monitors angularFire's authentication and performs actions based on authentication state. | |
* directives/directive.ngcloakauth.js depends on this file | |
* | |
* Modify ng-cloak to hide content until FirebaseSimpleLogin resolves. Also | |
* provides ng-show-auth methods for displaying content only when certain login | |
* states are active. | |
* |
This file contains 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
angular | |
.module('myHttpDecorator', []) | |
.config(function ($provide) { | |
/*! | |
* Decorate $http with method to post as form data | |
* Based on http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/ | |
*/ | |
$provide.decorator('$http', function ($delegate) { | |
$delegate.postAsForm = function (url, data, config) { |
This file contains 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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
This file contains 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
# @source http://www.mzoo.org/use-bedrock-on-shared-server/ | |
# | |
# @usage Replace %host% with your domain. | |
# If your root is a subdirectory, append all instances of web/ with your subdirectory path. | |
# i.e. change /web/ to /path/to/dir/web/ | |
<IfModule mod_rewrite.c> | |
Options -Indexes | |
# .htaccess primary domain to web redirect | |
# this file must be in the (public_html | web ) folder of your hosting account |
This file contains 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 | |
# Based on: http://stackoverflow.com/questions/2218075/using-git-with-your-cakephp-project | |
# MAKE SURE you commit any changes you want to keep before running this! | |
# | |
# Usage: | |
# 1. Drop this bash script into the same level as tmp/ | |
# 2. cd path/to/this && ./cakegittmpdirs | |
# Procedure: |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# You need to reconfigure these System Variables in the back office to be a | |
# subdirectory under assets/ | |
# 1) document_cache_dir_from_web_root | |
# 2) image_cache_dir_from_web_root | |
RewriteRule ^assets/(.*)$ web/assets/$1 [L] | |
RewriteRule ^(.*)$ index.php [QSA,L] | |
</IfModule> |
This file contains 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
{ | |
"name": "vendor/your-project", | |
"description": "Your Awesome Project", | |
"require": { | |
"aydin-hassan/magento-core-composer-installer": "^1.3", | |
"magento/magento": "1.9.2.2", | |
"magento-hackathon/magento-composer-installer": "3.0.*" | |
}, | |
"repositories": [ | |
{ |
This file contains 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
<html ng-app="myApp"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> | |
<script> | |
var myApp = angular.module("myApp",[]) ; | |
myApp.controller('MyCtrl', ['$scope', function($scope) { | |
$scope.formModel = {}; | |
}]); | |
myApp.directive('mutuallyExclusive', function() { |
This file contains 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
/* global module */ | |
/** | |
* Based on https://github.com/substack/node-browserify/issues/1044#issuecomment-139384663 | |
*/ | |
(function (module) { | |
module.exports = bundleEntry; | |
var through2 = require('through2'), | |
browserify = require('browserify'), |
OlderNewer