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
module Jekyll | |
module Convertible | |
def do_layout(payload, layouts) | |
info = { :filters => [Jekyll::Filters], :registers => { :site => self.site } } | |
# render and transform content (this becomes the final content of the object) | |
payload["pygments_prefix"] = converter.pygments_prefix | |
payload["pygments_suffix"] = converter.pygments_suffix | |
begin |
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
<style type="text/css"> | |
#logo { | |
font-size: 60px; | |
width: 4em; | |
height: 2em; | |
background: -webkit-radial-gradient(center, ellipse, rgba(255, 255, 255, 1) 40%,transparent 41%,transparent 100%), | |
-webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 1) 40%,transparent 41%,transparent 100%), | |
-webkit-radial-gradient(center, ellipse, rgba(255, 255, 255, 1) 40%,transparent 41%,transparent 100%), | |
-webkit-radial-gradient(center, ellipse, rgba(237, 128, 39, 1) 40%,transparent 41%,transparent 100%); | |
background-position: 0.3em 0.75em, -0.6em 0.35em, 1.4em 0.6em, 1.05em 0.15em; |
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
<style type="text/css"> | |
#logo { | |
font-size: 60px; | |
width: 3.5em; | |
height: 2em; | |
} | |
#logo .leaf { | |
width: 1.7em; | |
height: 1em; |
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
<canvas id='logo' width="250" height="100"> | |
</canvas> | |
<script> | |
var canvas = document.getElementById('logo'); | |
if (canvas.getContext) { | |
var ctx = canvas.getContext("2d"); | |
// Draw black oval | |
ctx.save(); |
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
#!/bin/sh | |
diff=`git diff --name-only HEAD@{1} HEAD` | |
packages=`expr "$diff" : ".*package.json.*"` | |
if [ ! "$packages" -eq 0 ] | |
then | |
echo "Installing new packages" | |
npm install | |
fi |
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
#!/bin/sh | |
diff=`git diff --name-only HEAD@{1} HEAD` | |
gemfile=`expr "$diff" : ".*Gemfile.*"` | |
if [ ! "$gemfile" -eq 0 ] | |
then | |
echo "Running bundle install" | |
bundle install | |
fi |
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/env ruby | |
require 'xmlrpc/client' | |
puts "Please enter your Confluence base URL:" | |
base = STDIN.gets.chomp | |
puts "Please enter your username:" | |
user_name = STDIN.gets.chomp |
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/env ruby | |
require 'xmlrpc/client' | |
puts "Please enter your Confluence base URL:" | |
base = STDIN.gets.chomp | |
puts "Please enter your username:" | |
user_name = STDIN.gets.chomp |
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
# In your Gemfile: | |
# | |
# group :test do | |
# gem 'gemnasium-parser', '0.1.9' | |
# end | |
# | |
require 'spec_helper' | |
describe 'Gemfile' do |
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
featureMap = this.model.get('provider_feature_map') | |
$('.feature-row').each(-> | |
featureCode = $(this).data('code') | |
$('input', this).each(-> | |
bookingMapCode = $(this).data('code') | |
featureMap[featureCode][bookingMapCode] = $(this).is(':checked') # this loop will only run until this call returns false because of the implicit return and "eventedness" of javascript | |
) | |
) |
OlderNewer