This file contains 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
{ | |
"name": "website project name", | |
"version": "0.1.0", | |
"description": "Custom theme for [whatever]", | |
"main": "index.js", | |
"repository": { | |
"type": "", | |
"url": "" | |
}, | |
"keywords": [ |
This file contains 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
<?php | |
/** | |
* A loop a gives post previews and pagination | |
*/ | |
function sw_paginated_blog_loop() | |
{ | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
This file contains 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
function sw_cpt_search($query) { | |
if ( | |
isset ( $_REQUEST['search'] ) && | |
$_REQUEST['search'] == 'landlord' && | |
! is_admin() && | |
$query -> is_search && | |
$query -> is_main_query() | |
) { |
This file contains 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
function test_one_present_search() | |
{ | |
ob_start() ; | |
$form = require('inc/test-01-search-all-types.php'); | |
return ob_get_clean(); | |
This file contains 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
;; init.el --- Spacemacs Initialization File -*- no-byte-compile: t -*- | |
;; | |
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors | |
;; | |
;; Author: Sylvain Benner <[email protected]> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;; This program is free software; you can redistribute it and/or modify |
This file contains 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
{ | |
"name": "react tut", | |
"version": "0.0.1", | |
"description": "Steps towards a more sufficient build pipeline", | |
"main": "index.js", | |
"watch": { | |
"sass": { | |
"patterns": [ | |
"./src/sass" | |
], |
This file contains 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
/* the function that loads the template with the loop */ | |
function ginza_menu_display() { | |
if ( class_exists('ACF')) { | |
ob_start() ; | |
require get_stylesheet_directory() . '/loops/ginza-menu-display.php' ; | |
echo ob_get_clean() ; |
This file contains 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 = require('gulp'); | |
var sass = require('gulp-sass')(require('sass')); | |
var {watch} = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps') ; | |
var pipeline = require('readable-stream').pipeline; | |
var browserSync = require('browser-sync'); | |
var concat = require('gulp-concat'); | |
var rename = require('gulp-rename'); | |
var uglify = require('gulp-uglify'); | |
var minify = require('gulp-minify'); |
This file contains 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
global: | |
sql_adapter: "default" | |
local: | |
vhost: "************" | |
wordpress_path: "**********************" | |
database: | |
name: "*************" | |
host: "***********" | |
password: "********" |
This file contains 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
// working | |
var gulp = require('gulp') ; | |
var sass = require('gulp-sass') ; | |
var watch = require('gulp-watch') ; | |
var sourcemaps = require('gulp-sourcemaps') ; | |
var browserSync = require('browser-sync'); | |
var concat = require('gulp-concat'); | |
var rename = require('gulp-rename'); | |
var uglify = require('gulp-uglify'); |
NewerOlder