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
@mixin psd-letter-spacing($tracking) { | |
letter-spacing: ($tracking / 1000) * 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
@mixin scrollbar($pill-color = "#000") { | |
overflow-x: hidden; | |
overflow-y: auto; | |
scrollbar-face-color: $pill-color; | |
scrollbar-arrow-color: $pill-color; | |
scrollbar-track-color: transparent; | |
scrollbar-shadow-color: $pill-color; | |
scrollbar-highlight-color: $pill-color; | |
scrollbar-3dlight-color: $pill-color; | |
scrollbar-darkshadow-Color: $pill-color; |
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
#Add this to ~/.inputrc to enable partial searching of bash history with arrow keys | |
## arrow up | |
"\e[A":history-search-backward | |
## arrow down | |
"\e[B":history-search-forward |
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
def remote_file_exists?(url) | |
uri = URI.parse(url) | |
http = Net::HTTP.new(uri.host, uri.port) | |
http = Net::HTTP.new(uri.host, uri.port) | |
if uri.scheme == 'https' | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_PEER | |
end |
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
# https://github.com/causes/scss-lint/tree/master/lib/scss_lint/linter | |
exclude: 'app/assets/stylesheets/settings/*' | |
linters: | |
BorderZero: | |
enabled: true | |
ColorKeyword: | |
enabled: false | |
Comment: |
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 "premailer" | |
require "optparse" | |
OptionParser.new do |o| | |
o.on('-d OUTPUT_FOLDER') { |b| $destination = b } | |
o.on('-o OUTPUT_FILENAME') { |b| $output = b } | |
o.on('-f INPUT_FILENAME') { |filename| $filename = filename } | |
o.on('-h') { puts o; exit } |
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
def round_price(price) | |
amount = price.ceil() | |
if amount % 10 < 5 | |
amount = amount + 5 - (amount % 5) | |
else | |
amount = amount + 9 - (amount % 9) | |
end | |
amount |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme", | |
"fade_fold_buttons": false, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gemtags", | |
".gitkeep", | |
".tags", |
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
class Link | |
constructor: ({@$link, @$activator}) -> | |
@original_text = @$link.text() | |
@registerHandlers() | |
registerHandlers: -> | |
@$activator.on 'click', => @toggleLinkState() | |
toggleLinkState: -> | |
@$link.toggleClass('active').text(@linkText()) |
OlderNewer