Below you will find snippets to help you through developing a wordpress template, hope it helps :)
####get the home URL
<?php echo get_option('home'); ?>
####display the blog description
<?php bloginfo('description'); ?>
console.reset = function () { | |
return process.stdout.write('\033c'); | |
} |
// Determine if an element is in the visible viewport | |
function isInViewport(element) { | |
var rect = element.getBoundingClientRect(); | |
var html = document.documentElement; | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || html.clientHeight) && | |
rect.right <= (window.innerWidth || html.clientWidth) | |
); |
package ca.uwo.csd.cs2212.USERNAME; | |
public class BankAccount { | |
private double balance; | |
public BankAccount(double balance) { | |
this.balance = balance; | |
} |
/Applications/MAMP/bin/php/phpx.x.x/bin
export PATH=/Applications/MAMP/bin/php/phpx.x.x/bin:$PATH
var selector = 'img' // Replace this with the selector for the element you want to make transformable | |
jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() { | |
jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() { | |
(function() { | |
var $, applyTransform, getTransform, makeTransformable; | |
$ = jQuery; |
// You would still need to define this in a module | |
// for it to work in a real world environment. | |
this.HomeCtlr = function($scope, Project) { | |
$scope.search = function(query) { | |
$scope.projects = Project.search({query: query}); | |
}; | |
}; |