Skip to content

Instantly share code, notes, and snippets.

View bericp1's full-sized avatar

Brandon Phillips bericp1

View GitHub Profile
{
"features":[
{
"id":"57971f42c203bc0ff",
"type":"feature-schedule",
"name":"Schedule",
"icon":"13",
"settings":{
"type":"schedule-settings",
"timeFormat":"12",
{
"features": [
{
"id": "0dfd06bb85bb0c7c6",
"type": "feature-speakers",
"name": "Speakers",
"icon": "69",
"sorting": "lastName",
"speakers": [
{
var choices = ['1', '2', '3'],
combos = [],
_ = require('underscore');
var addLetter = function(word) {
var combos = [];
if(word.length >= 3) {
combos.push(word);
}
choices.forEach(function(choice) {
combos: [ '11123',
'11132',
'111123',
'111132',
'111213',
'111223',
'111231',
'111232',
'111233',
'111312',
var choices = ['1', '2', '3'],
combos = [],
_ = require('underscore');
var addLetter = function(word) {
var combos = [];
choices.forEach(function(choice) {
combos.push(word + choice);
});
return combos;
combos: [
'111123',
'111132',
'111213',
'111223',
'111231',
'111232',
'111233',
'111312',
'111321',
@bericp1
bericp1 / badge-redirect.php
Last active August 29, 2015 13:57
Redirect from a page template to /badge-landing if the query string is empty. Should be placed at the top of the page template, within the PHP tags, below the comment block defining the templates name and whatnot, but above `get_header()` or any other function that echos or outputs anything.
if(!isset($_SERVER['QUERY_STRING']) || trim($_SERVER['QUERY_STRING']) === ''){
header('Location: /badge-landing/');
exit;
}