Skip to content

Instantly share code, notes, and snippets.

@laras126
laras126 / gist:ef1b7de3e6391a639f16
Last active August 29, 2015 14:19
Tales of a Non-Unicorn

#Tales of a Non-Unicorn

I’ve been self-employed for the past three years. Though I did spend my first year out of college working for a three person, now-defunct startup, I’ve never had a typical 9-5 (or more like 10-8 nowadays) and to be honest, never really wanted one. Lara Schenck, LLC is a profitable business, and every day I do work that is enjoyable and challenging. I make my own hours, take vacations when I want to, and run everything on my terms.

While that’s all awesome, what you don’t get from working independently is the team experience. I base my work on teaching technical literacy to non-technical designers and content producers so that they can better communicate with developers. The theory is that if a designer understands why it’s a bad idea to request 18 fonts, and if content producers know why it’s not trivial to edit the titles of a set of related posts, life will be easier for everyone. At least that’s my theory, and the assumption on which I’ve developed my business.

Lately though, in

@laras126
laras126 / gist:87a85d1bc4ba43744d8c
Last active August 29, 2015 14:20
Cocktails, websites, and nothing is original.

On cocktails, websites, and originality.

Cocktails are my thing, and when one spends all day on the computer, it’s very important to have a non-computer “thing”. A few years ago I had a very good friend who was a cocktail bartender, and even though I learned how to spot a properly made Negroni vs. a disaster (one does not shake a Negroni), the act of making the actual drinks was a mystery to me. I knew there was some logic to it, but I was still in awe when I saw a bartender mix something up off-menu. Ah, the magic of the “mixologist” - which, for what it's worth, is a term most bartenders consider a bit of a joke.

Anyhow, sometime last year I decided to start making my own cocktails instead of just snootily commenting on others'. I spent my pocket money on spirits and liqueurs, took an online course, and started a cocktail blog. I became quite obsessed, an

{% if php is 'ugly' %}
<h1>yes it is</h1>
{% else %}
<h1>there is no else</h1>
{% endif %}
@laras126
laras126 / SassMeister-input.scss
Created September 23, 2015 22:29
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$color-accent-light: #3878EE;
$color-accent-med: #ED9062;
$color-accent-dark: #EA6CA4;
$color-link: $color-accent-med;
@laras126
laras126 / gist:854657
Created March 4, 2011 14:13
change wp editor style
<?php
function change_editor_font(){
echo "<style type='text/css'>
#editorcontainer textarea#content {
font-family: Monaco, Consolas, \"Andale Mono\", \"Dejavu Sans Mono\", monospace;
font-size:14px;
color:#333;
}
</style>";
@laras126
laras126 / gist:856824
Created March 5, 2011 23:27
filter example
function change_site_title() {
echo '<?php bloginfo("name", false); ?><?php wp_title("|"); ?>';
}
add_filter('wp_title', 'change_site_title', 10, 2);
void keyPressed() {
if (key == CODED){
if (keyCode == BACK) {
background(100, 200, 98);
}
}
if (key == CODED && keyCode == KeyEvent.KEYCODE_BACK) {
keyCode = 0; // don't quit by default
<?php
// Code from tutorial 'How to Create a Better Meta Box in WordPress Post Editing Page' on Deluxe Blog Tips: http://www.deluxeblogtips.com/2010/04/how-to-create-meta-box-wordpress-post.html
// Thanks!
$prefix = 'dbt_';
$meta_box = array(
'id' => 'wpfolio-meta-box',
@laras126
laras126 / gist:878782
Created March 20, 2011 23:23
wpalchemy in functions.php
<?php
// custom constant (opposite of TEMPLATEPATH)
define('_TEMPLATEURL', WP_CONTENT_URL . '/' . stristr(TEMPLATEPATH, 'themes'));
include_once 'WPAlchemy/MetaBox.php';
// include css to style the custom meta boxes, this should be a global
// stylesheet used by all similar meta boxes
if (is_admin())
{
@laras126
laras126 / gist:878792
Created March 20, 2011 23:41
show meta-info in post
<?php
// Display artwork info in post, below post content
add_filter('thematic_post', 'display_artwork_info');
function display_artwork_info() {
global $artworkinfo_metabox;
echo the_content();