- Step 1, create Service in Automator:
- Step 2, set Service for files:
- Step 3: insert bash script (see below)
- Step 4, save:
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
var gulp = require('gulp') | |
var browserify = require('browserify') | |
var watchify = require('watchify') | |
var babelify = require('babelify') | |
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer') | |
var merge = require('utils-merge') |
var sinon = require('sinon'); | |
it("Should be able to set the validation mode", function(done) { | |
var spy = sinon.spy(AuthorizeCIM.AuthorizeRequest, 'send'); | |
var date = new Date(); | |
var options = { | |
customerType: 'individual', | |
payment: new Authorize.Payment({ | |
creditCard: new Authorize.CreditCard({ | |
cardNumber: '4111111111111111', |
<?php | |
class Zookal_Customer_Model_Observer_Controller_OAuth | |
{ | |
/** | |
* @param string $url | |
* | |
* @return bool | |
*/ |
Since this is on Hacker News...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".while
loops because shut up, you're overthinking a joke.<?php | |
class Namespace_modulename_IndexController extends Mage_Core_Controller_Front_Action{ | |
public function indexAction() { | |
//Basic parameters that need to be provided for oAuth authentication | |
//on Magento | |
$params = array( | |
'siteUrl' => 'http://localhost/magento/oauth', | |
'requestTokenUrl' => 'http://localhost/magento/oauth/initiate', | |
'accessTokenUrl' => 'http://localhost/magento/oauth/token', | |
'authorizeUrl' => 'http://localhost/magento/admin/oAuth_authorize',//This URL is used only if we authenticate as Admin user type |
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on Mac OSX Yosemite.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward edit
to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"