Skip to content

Instantly share code, notes, and snippets.

@kronda
kronda / gist:3347238
Created August 14, 2012 07:33
ladycodersbs
men are conditioned to look at details that women often do not think about, and one’s business card case, pen, and wristwatch gives them the kind of status and social information
@kronda
kronda / selenium
Created October 13, 2012 02:51
Bash file for starting and stopping Selenium server
#!/bin/bash
SELENIUM=/usr/local/bin/selenium-server.jar
LOG=/var/log/selenium.log
PIDFILE=/opt/bin/selenium.pid
ARG=$1
if [ ${#ARG} -lt 1 ]
then echo "\nUSAGE: $0 {start|stop}\n"
@kronda
kronda / composer.json
Created October 13, 2012 02:56
Config file for installing composer
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "dev-develop",
"behat/mink-selenium2-driver": "*",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*",
"drupal/drupal-extension": "*"
},
"minimum-stability": "dev",
@kronda
kronda / gist:8477839
Last active January 3, 2016 14:39
An example of an off-putting job ad from a company I would otherwise probably want to work with or recommend to my friends.
Junior Web Developer
December 15
Full-time
Portland, OR
[Company] is a growing, ambitious web design studio in Portland. We’re looking for a developer with good design sense to help us make the web a better place. We need someone who can take ideas and turn them into clean, solid code. Someone who can grasp the big picture while still getting the details right. Someone who can turn out great designs without losing their sense of humor. You’re out there. We know it. Together we’ll do great things. Who is [Company]? We are a team of 5 charming individuals in Portland, Oregon, with an international client base. We are excited about telling compelling stories online, helping grow the brands we represent, and staying on top of the latest and most exciting trends around us. We are advocates of obsession. We’ve been around for nine years now, but we’re just getting started. We’re growing and continually improving all the time, and we could use some help accomplishing big things. The Position We are looking for a we
@kronda
kronda / cpt
Created January 24, 2014 20:41
<?php
//* Add a custom post type
add_action( 'init', 'publication_post_type' );
function publication_post_type() {
// Publication custom post type
register_post_type( 'Publication',
array(
'labels' => array(
'name' => __( 'Publications' ),
Feature: Calculate batch sizes
So that I know how much soup to cook this week, I want to know the total volume of soup needed for the week and the total soup needed for the first delivery day.
Sceanrio: Calculate batch sizes
When I view the week's summary
Then I see how many pots of each soup are required to meet the week's deliveries, plus extra
@kronda
kronda / featured_image_size_hints_variable.txt
Last active May 8, 2016 17:12
Add this to functions php to create image size hints with difference sizes for different post types From https://premium.wpmudev.org/blog/never-forget-your-featured-image-dimensions/
@kronda
kronda / featured_image_size_hints.txt
Last active May 8, 2016 17:20
Featured Image Size Hints where all featured images are the same size. From https://premium.wpmudev.org/blog/never-forget-your-featured-image-dimensions/