Skip to content

Instantly share code, notes, and snippets.

use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var SimplesiteGenerator = module.exports = function SimplesiteGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.on('end', function () {
<?php
/*
* output all testimonial posts
*/
function stb_arr_all()
{
$args= array(
'post_type' => 'stb_testimonials'
) ;
@sunilw
sunilw / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls fsevents
<?php
/**
* The template for the "blog" page
*
* Template Name: Blog
*
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; auto-complete
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/lisp/auto-complete")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/lisp/auto-complete/dict")
(ac-config-default)
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="generator" content="emacs" />
<title></title>
<link rel="stylesheet" href="" type="text/css" media="all" />
<script type="text/javascript" src=""></script>
</head>
<body>
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Page Template
*
* This template is the default page template. It is used to display content when someone is viewing a
* singular view of a page ('page' post_type) unless another page template overrules this one.
* @link http://codex.wordpress.org/Pages
*
* @package WooFramework
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="generator" content="emacs" />
<title></title>
<link rel="stylesheet" href="" type="text/css" media="all" />
<script type="text/javascript" src=""></script>
</head>
<body>
<body <?php
$class = "page-" . strtolower(get_the_title()) ;
body_class($class);
?>>