Skip to content

Instantly share code, notes, and snippets.

View lzcabrera's full-sized avatar
:octocat:

Laura Cabrera lzcabrera

:octocat:
  • Victoria, BC
  • 20:50 (UTC -07:00)
View GitHub Profile
@lzcabrera
lzcabrera / pre-push.sh
Created November 13, 2014 22:57
run dss before pushing to remote master
#!/bin/bash
BRANCH=`git rev-parse --abbrev-ref HEAD`
if [[ "$BRANCH" == "master" ]]; then
echo "Call grunt docs to update style guide"
cd build
echo $($pwd)
grunt docs
fi
@lzcabrera
lzcabrera / Rakefile
Created August 10, 2015 23:50
Copy files to jekyll
require 'bundler/setup'
require 'fileutils'
def copy_compiled_css_to_docs(version)
Dir.glob('./css/dist/**/*.css').each do |file|
dir, filename = File.dirname(file).sub('./',''), File.basename(file)
dest = File.join('docs/src/v'+version+'/hydra', dir)
FileUtils.mkdir_p(dest)
FileUtils.cp(file, File.join(dest,filename))
var size = {
width: window.innerWidth || document.body.clientWidth,
height: window.innerHeight || document.body.clientHeight
}
<FlexGrid limitWidth gutter={false}>
<FlexGrid.Col span={12}>
<Box horizontal={3}>
<Paragraph>{text}</Paragraph>
</Box>
</FlexGrid.Col>
<FlexGrid.Col span={columns}>
<Box horizontal={3} vertical={3}>
<Card>{text}</Card>