- I like atom better. It's faster, has better real time markdown rendering
- atom gist plugin
- Create gists and push them to your gist.github.com account
# | |
# Author:: Adar Porat(<adar.porat@gmail.com>) | |
# Cookbook Name:: php55 | |
# Attribute:: default | |
## | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
#!/bin/bash | |
# Place rebuild script in the project root. | |
# From a terminal run '. reinstall.sh <development_database_name>' | |
# WARNING: Will completely drop the database. | |
cd ./www | |
drush sql-drop -y | |
if [ -z $1 ]; then | |
echo 'Please provide name of database to import.' |
#!/bin/bash | |
# Download latest Drupal 7 and enable module to test. | |
if [ -z $1 ]; then | |
echo 'Please provide a module to include in the sandbox.' | |
return | |
fi |
<?php | |
Class MyClass { | |
private $string = 'Can\'t touch this!'; | |
public function doStuff() { | |
$this->string = $this->string . ' Na Na Na Na.'; | |
} | |
} |
<?php | |
function MYMODULE_query_alter($query) { | |
if ($query->hasTag('efq_debug') && module_exists('devel')) { | |
dsm((string) $query); | |
dsm($query->arguments()); | |
} | |
} | |
$query = new EntityFieldQuery; | |
$group_entities = $query->entityCondition('entity_type', 'node') |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
source ~/.git-prompt.sh | |
GIT_PS1_SHOWUPSTREAM='verbose' | |
export PS1="[\u@\h:\W]\`__git_ps1\` \$ " |
jQuery(document).ready(function($) { | |
var width = window.innerWidth; | |
function hideNodes(active) { | |
$(".view-front-page-drop-block .node-page").hide(); | |
$(active).show(); | |
} | |
$(window).resize(function() { |
@@ -164,48 +164,25 @@ function _ada_corporatejoin_form_submit_infusionsoft($form_state) { | |
} | |
function _ada_corporatejoin_form_submit_payment(&$form_state) { | |
- if (module_exists('google_checkout') && $form_state['values']['payment']['method']['options'] == 'credit_card') { | |
+ if (module_exists('ada_paypal_api') && $form_state['values']['payment']['method']['options'] == 'credit_card') { | |
global $user; | |
- google_checkout_load_include('item'); | |
- $cart = google_checkout_cart_init(); |