This file contains hidden or 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
| {#profile_skill} | |
| <div class="section" id="profile-skills" style="display:block"> | |
| <div class="header"> | |
| <h2>{@pre:i18n text="Skills"}</h2> | |
| </div> | |
| {?skills} {! we still want to display the Skills heading, even if the number of skills is zero !} | |
| <div class="content"> | |
| <ol class="skills" id="skills-list"> | |
| {#skills} | |
| <li class="competency show-bean"> |
This file contains hidden or 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
| <div class="guided-edit"> | |
| {>_close_action/} | |
| {<closeText}{i18n_text_plain__close}{/closeText} | |
| {?firstTaskTitleString} | |
| <h1>{firstTaskTitleString|s}</h1> | |
| {/firstTaskTitleString} | |
| <form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}"> | |
| <fieldset> | |
| <legend>{i18n_text_plain__what_is_your_industry}</legend> |
This file contains hidden or 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
| {! article dust template with partials for polling and pagination !} | |
| <div id="today_feed" class="grid unit_8"> | |
| <div id="today_feed-updates" class="unit_8 alpha omega"> | |
| {>"Polling"/} | |
| </div> | |
| <div id="today_feed-articles" class="unit_8 alpha omega"> | |
| <ul class="articles"> | |
| {#content}{#news_container_section}{#newsList} | |
| {>"Article"/} |
This file contains hidden or 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/env python | |
| from __future__ import with_statement | |
| import os | |
| import re | |
| import shutil | |
| import subprocess | |
| import sys | |
| import tempfile |
This file contains hidden or 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/env python | |
| import os | |
| import re | |
| import subprocess | |
| import sys | |
| modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)') | |
| CHECKS = [ |
This file contains hidden or 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
| # | |
| # Instructions | |
| # | |
| # 1. Figure out what this function does | |
| # 2. Write a unit test for it | |
| # 3. Refactor for readability and efficiency | |
| # | |
| # NOTE: Do regular commits that show agile style iterations through the problem. | |
| # If you prefer a different language, you can provide your solution in PHP, | |
| # Python or Javascript too. |
This file contains hidden or 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
| import com.cloudera.crunch._ | |
| import com.cloudera.scrunch._ | |
| class ScrunchWordCount { | |
| def wordCount(inputFile: String, outputFile: String) = { | |
| val pipeline = new Pipeline[ScrunchWordCount] | |
| pipeline.read(from.textFile(inputFile)) | |
| .flatMap(_.toLowerCase.split("\\W+")) | |
| .filter(!_.isEmpty()) | |
| .count |
This file contains hidden or 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
| stage { "pre": before => Stage["main"] } | |
| class python { | |
| package { | |
| "build-essential": ensure => latest; | |
| "python": ensure => "2.6.6-2ubuntu1"; | |
| "python-dev": ensure => "2.6.6-2ubuntu1"; | |
| "python-setuptools": ensure => "latest"; | |
| } | |
| exec { "easy_install pip": | |
| path => "/usr/local/bin:/usr/bin:/bin", |
This file contains hidden or 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/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| #!/bin/bash | |
| # virtualenv-auto-activate.sh | |
| # | |
| # Installation: | |
| # Add this line to your .bashrc or .bash-profile: | |
| # | |
| # source /path/to/virtualenv-auto-activate.sh | |
| # | |
| # Go to your project folder, run "virtualenv .venv", so your project folder | |
| # has a .venv folder at the top level, next to your version control directory. |