Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
<?php | |
/** | |
* Custom browser check | |
* | |
* Uses https://github.com/cbschuld/Browser.php | |
*/ | |
function b5f_browser_check($what) { | |
global $browser, $browver; | |
switch ($what) { |
<div id="bgimgweather"> | |
<?php | |
$url = 'http://w1.weather.gov/xml/current_obs/KSYR.xml'; | |
$xml = simplexml_load_file($url); | |
$currentweather = $xml->weather; | |
//$currentweather = "Light Rain"; | |
?> | |
</div> |
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
clean: ['dist'], | |
copy: { | |
generated: { | |
src: 'src/index.html', | |
dest: 'dist/index.html' |
<?php | |
/* | |
Plugin Name: mfields.org - Ajax Append Posts | |
Plugin URI: | |
Description: | |
Version: 0.1.2 | |
Author: Michael Fields | |
Author URI: http://mfields.org/ | |
Copyright 2010 Michael Fields michael@mfields.org | |
License GPLv2 |
// Campaign Monitor jQuery plugin | |
// Chris @ Anywhichway 2010 | |
// | |
// usage $(form).campaignMonitor(), where form is the signup form that Campaign Monitor generates | |
jQuery.fn.campaignMonitorSignup = function(options) { | |
var defaults = { | |
callbacks: { | |
success: function(){}, |
<?php | |
// This template can be included in your single.php template to display <Previous-Next> links below your post. | |
// It uses aligned pager template stated here > http://getbootstrap.com/components/#aligned-links | |
?> | |
<nav> | |
<ul class="pager"> | |
<?php | |
$post_permalink = get_permalink(); | |
$previous_post = get_permalink(get_adjacent_post(false,'',false)); |
define("GF_THEME_IMPORT_FILE", "http://www.domain.com/path/to/gf_import.xml"); | |
define("GF_LICENSE_KEY", "YOUR-LICENSE-KEY-HERE"); | |
// Gravity Forms - Recaptcha Keys | |
define("GF_RECAPTCHA_PUBLIC_KEY", "YOUR-KEY-HERE"); | |
define("GF_RECAPTCHA_PRIVATE_KEY", "YOUR-KEY-HERE"); | |
// Default Import Forms |
<!-- Tab sets have to have an id set --> | |
<div class="tabs" id="mytab1"> | |
<ul class="nav nav-tabs"> | |
<li><a href="#tab1">Tab 1</a></li> | |
<li><a href="#tab2">Tab 2</a></li> | |
</ul> | |
<div class="tab-content"> | |
<div class="tab-pane" id="tab1"> | |
Content for tab 1 | |
</div> |