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
| // Mixin to use fonts generated by Font Squirrel (http://www.fontsquirrel.com) | |
| @mixin font_squirrel_font($font-name, $file-name){ | |
| $font-url: "/font/#{$file-name}"; | |
| @font-face { | |
| font-family: $font-name; | |
| src: "#{$font-url}.eot"; | |
| src: local("#{$font-name}"), url("#{$font-url}.eot?#iefix") format("embedded-opentype"), | |
| url("#{$font-url}.woff") format("woff"), |
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
| bourbon_bin = Gem::Specification.find_by_name("bourbon").gem_dir | |
| bourbon_path = File.join(bourbon_bin, 'app', 'assets', 'stylesheets') | |
| Compass.configuration.add_import_path(bourbon_path) | |
| Stasis::Options.set_template_option 'sass', { :load_paths => Compass.configuration.sass_load_paths } |
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
| require 'google_drive' | |
| def recursive(i=0) | |
| $arr[i].each do |row| | |
| subs = [] | |
| recursive(i+1) if $arr[i+1] | |
| if (i+1) < ($arr.length) | |
| $arr[i+1].each do |sub_row| |
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
| require 'google_drive' | |
| require 'json' | |
| def get_json_table(key, username, password) | |
| # Create Columns | |
| columns = [] | |
| labels = ["id", "Manager", "ToolTip"] | |
| labels.each do |column| |
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
| drawChart = -> | |
| $.getJSON '/js/org.json', (json) -> | |
| data = new google.visualization.DataTable(json) | |
| chart = new google.visualization.OrgChart(document.getElementById('org')) | |
| chart.draw data, | |
| allowHtml: true | |
| nodeClass: 'org-node' | |
| selectedNodeClass: 'org-node-selected' | |
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
| doctype html | |
| html lang="en" | |
| head | |
| meta charset="utf-8" | |
| meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" | |
| title | |
| meta name="description" content="" | |
| meta name="author" content="" | |
| meta name="keywords" content="" | |
| meta name="viewport" content="width=device-width, initial-scale=1.0" |
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
| class String | |
| VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i | |
| def is_valid_email? | |
| if self.match(VALID_EMAIL_REGEX) | |
| return true | |
| else | |
| return false | |
| end | |
| end |
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
| // Responsive Mixin | |
| @mixin responsive($width) | |
| @if $width == 300 | |
| @media all and (min-width:300px) | |
| @content | |
| @if $width == 600 | |
| @media all and (min-width:600px) |
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
| equalize_heights = (selector) -> | |
| max_height = 0 | |
| $(selector).each -> | |
| height = $(this).outerHeight() | |
| max_height = height if height > max_height | |
| $(selector).height(max_height) |
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
| h1 This #{foo} is here. |
OlderNewer