This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //in function.php file | |
| function getGeolocationData ($foo, $bar) { | |
| // run wp-query here to get the data | |
| } | |
| // call inside template page | |
| <?php echo getGeolocationData('var1', 'var2'); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @jsx React.DOM | |
| */ | |
| var CampaignSliderItemComponent = React.createClass({ | |
| render: function() { | |
| return ( | |
| <div className="slide"> | |
| <img src={this.props.image} width="688" height="242" alt="image description" /> | |
| <div className="text"> | |
| <h2>{this.props.name}</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp, sass, watch, minifyCSS, plumber; | |
| gulp = require('gulp'); | |
| sass = require('gulp-sass'); | |
| minifyCSS = require('gulp-minify-css'); | |
| watch = require('gulp-watch'); | |
| plumber = require('gulp-plumber'); | |
| gulp.task('compile-sass', function() { | |
| gulp.src('./sass/*.scss') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Event::fire('foo', ['another-theme']); | |
| Event::listen('foo', function($theme) | |
| { | |
| Orchestra\Theme::setTheme($theme); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| shell: { | |
| myth: { | |
| command: function() { | |
| return 'myth css/myth/input.css css/style.css'; | |
| }, | |
| options: { | |
| stdout: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Laravel 4 Project Builder" | |
| echo -n "What is the project name? " | |
| read -e PROJECT | |
| echo -n "Which folder will I be working on? [eg: /Users/foo/bar] " | |
| read -e DIR |
NewerOlder