-
Code Freeze Retrospective due on Thursday * John is doing a screencast * Shyamala's outline is: in this Google Doc * Screenshots are needed
-
John needs to connect with js folks like _nod * there are still a lot of js related tickets.
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin some-color-name($color) { | |
@if type-of($color) == 'map' { | |
background-image: linear-gradient(map-get($color, key1), map-get($color, key2)); | |
} | |
} |
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
# encoding: utf-8 | |
# Write a method leap_year?. It should accept a year value from the user, check | |
# whether it is a leap year and return true or false. | |
# Calculate and display the number of minutes in a leap year (2000 and 2004) | |
# and the minutes in a non-leap year (1900 and 2005). | |
MINUTES_IN_HOUR = 60 | |
MINUTES_IN_DAY = MINUTES_IN_HOUR * 24 | |
def leap_year? | |
puts "Give me a year, I'll tell you if it leaps:" |
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
def convert(temp) | |
(temp.to_f - 32) * 5/9 | |
end | |
puts "Give it to me in Fahrenheit:" | |
temp = gets | |
puts "Here it is in Celsius: " + convert(temp).to_s |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'redcarpet' | |
require 'albino' | |
class SyntaxRenderer < Redcarpet::Render::HTML | |
def block_code(code, language) | |
if language && !language.empty? | |
Albino.colorize(code, language) |
This document explains how we can use Jenkins to solve some SASS/Git headaches.
One of the problems that we deal with when working with SASS and Git is that the CSS added to the remote repository changes based on who compiled it.
That means every time someone commits to the remote repository before we can push our work up, HEAD will have changed and our push attempt will be rejected.
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
<h2>Table of Contents</h2> | |
<a href="#whitespace">Whitespace</a> | |
<a href="#comments">Comments</a> | |
<a href="#format">Format</a> | |
<a href="#miscellaneous">Miscellaneous</a> | |
<a href="#example">Practical Example</a> | |
<h3><a name="terminology"></a>Terminology</h3> | |
For those unfamiliar with <a href="http://www.w3.org/TR/CSS2/syndata.html#statements">CSS terminology</a>, these are the concise terms used in these standards. |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Programmer's Shift Keys</name> | |
<!-- | |
Author: Carwin Young (@carwin) | |
Last Updated: 2014.07.18 | |
v.1.1 | |
Programmer's Shift Keys |
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
/** | |
* WTF? | |
* - This will let you define a shortcut like | |
* `derp` so that when you type `derp` and | |
* hit TAB, you get: | |
* $form['field_name']['#weight'] = weight; | |
* | |
* - 'field_name' and 'weight' are variables, | |
* which means that Textmate will auto-focus | |
* your current position to the first one and |
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 themename_preprocess_html(&$variables) { | |
// Add a body class to Articles based on the value of the 'field_article_type' | |
// field. e.g.: 'article-type-news' or 'article-type-blog'. | |
if(!empty($variables['page']['content']) && !empty($variables['page']['content']['system_main']['content']['nodes'])) { | |
$node = $variables['page']['content']['system_main']['content']['nodes'][arg(1)]['body']['#object']; | |
if(user_is_logged_in()) { | |
$node = $variables['page']['content']['system_main']['content']['nodes'][arg(1)]['#node']; | |
} | |
if($node->type == 'article' && !empty($node->field_article_type)) { |