http://docs.angularjs.org/tutorial
http://docs.angularjs.org/guide/
https://www.youtube.com/user/johnlindquist
http://blog.artlogic.com/2013/03/06/angularjs-for-jquery-developers/
#!/usr/bin/env ruby | |
if ARGV[0].nil? || ARGV[0].match(/-h/) | |
puts "Usage : #{$0} github_username dash_sqlite_db char_appended_to_keyword [no_comments]" | |
exit | |
end | |
require 'net/http' | |
require 'open-uri' | |
#require 'awesome_print' |
AuthName "Realm" | |
AuthUserFile /path/to/.htpasswd | |
AuthType Basic | |
Satisfy Any | |
<Limit GET POST> | |
Order Deny,Allow | |
Deny from all | |
#https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper | |
Allow from 31.13.24.0/21 |
<?php | |
/** | |
* Theme_menu_tree doesn't provide any context information | |
* THIS SUCKS | |
* But you can use hook_block_view_alter to change the theme wrapper | |
* OUF! | |
*/ | |
function MYTHEME_menu_tree(&$variables) { |
<?php | |
/** | |
* Defines a theme callback function per registered path. | |
*/ | |
function MODULENAME_menu_alter(&$items) { | |
$items['node/%node']['theme callback'] = 'MODULENAME_default_node_theme'; | |
$items['node/%node/edit']['theme callback'] = 'MODULENAME_edit_node_theme'; | |
$items['node/%node/edit']['theme arguments'] = array(1); | |
} |
# | |
# Capistrano recipe for deploying Drupal7 using git and ssh. | |
# | |
# Part of the explanations in the comments taken from: | |
# http://help.github.com/deploy-with-capistrano/ | |
# | |
set :default_environment, { | |
# This is the $PATH for the deploymant shell. using uberpsace's recent php | |
# and added ~/bin for drush. |
<? foreach(range(1, 10) as $i) echo $i * 2 . " "; |
SELECT SUM(LENGTH(name) - LENGTH(REPLACE(name, ' ', ''))+1) FROM table |