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/bash | |
tmp_branch=tmp_deploy | |
default_stage=frontend | |
STAGE=${STAGE:-$default_stage} | |
current_branch=$(git symbolic-ref --short -q HEAD) | |
git remote add $STAGE [email protected]:$STAGE | |
git branch -D $tmp_branch | |
git checkout -b $tmp_branch | |
rm -rf app Gemfile Gemfile.lock Guardfile Rakefile config/ config.rb config.ru data/ | |
mv dist/* . |
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
.task-block{ "test-case" => "click-task-block"} | |
-# markup |
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/bash | |
for f in *.css; do sass-convert $f ${f%css}sass ; done | |
rm *.css |
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
angular.module('app').directive('rmPopovers', | |
function($document, $rootScope, $timeout, $popover, $location) { | |
return { | |
restrict: 'EA', | |
link : function(scope, element, attrs, $location) { | |
var $element = $(element); | |
function closeAllPopovers(){ | |
$('[popover-block]').each(function(){ | |
var $this = $(this); |
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 bash | |
git branch -D gh-pages | |
git checkout --orphan gh-pages | |
git rm -rf . | |
git clean -fd -e dist | |
shopt -s dotglob | |
mv dist/* ./ | |
rmdir dist | |
git add . |
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
# config/initializers/0_settings.rb | |
class Settings < Settingslogic | |
source "#{Rails.root}/config/application.yml" | |
source "#{Rails.root}/config/application.local.yml" | |
namespace Rails.env | |
suppress_errors Rails.env.production? | |
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
// http://www.w3schools.com/cssref/css3_pr_appearance.asp | |
=appearance($a) | |
appearance: $a | |
-webkit-appearance: $a | |
-moz-appearance: $a | |
select | |
+appearance(none) | |
line-height: 1 | |
background: #fff |
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
.map-container, | |
.menu-container | |
position: fixed | |
top: 0 | |
bottom: 0 | |
left: 0 | |
right: 0 | |
// map region | |
.map-container |
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
$sansFontFamily: 'PT Sans', 'HelveticaNeue', 'Helvetica', Arial, sans-serif | |
$baseFontFamily: $sansFontFamily | |
$serifFontFamily: 'PT Serif', 'Georgia', 'Geneva', serif | |
$headingsFontFamily: $sansFontFamily | |
$headingsLineHeight: 1.3em | |
$baseFontSize: 22px | |
$baseLineHeight: $baseFontSize * 1.6em |
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
.isotope-item | |
z-index: 2 | |
.isotope-hidden.isotope-item | |
pointer-events: none | |
z-index: 1 | |
/**** Isotope CSS3 transitions *** | |
.isotope |