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
[data-link] { | |
cursor: pointer; | |
} |
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
<div id="first"> | |
<div id="second"> | |
Item you want centered | |
</div> | |
</div> | |
for example: | |
<a href="mailto:info@email.com?Subject=Web%20Page" target="_top" id="first"> | |
<img src="photo.png" alt="photo"> |
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
# Use this if you only want to use the checkbox as a clicker | |
$('#checkbox-id').click -> | |
$('.what-you-want-to-hide').slideToggle('slow') | |
# Use this if you actually care about checking to see if the checkbox has been checked | |
$('#checkbox-id').click -> | |
if $(@).prop('checked') | |
$('.what-you-want-to-hide, .what-you-want-to-hide-also').slideDown 'slow' | |
else | |
$('.what-you-want-to-hide, .what-you-want-to-hide-also').slideUp 'slow' |
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
= link_to 'Link to Nowhere', 'javascript:;' |
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
# The basic idea here is that you set a num of pixels before triggering the css "fixed" | |
# which would freeze whatever you div attribute you set, in this case"nav". | |
# This is a simple way to do it but there's a library you can use to do the same thing. | |
# http://imakewebthings.com/jquery-waypoints/shortcuts/sticky-elements/ | |
num = 250 #number of pixels before modifying styles | |
$(window).bind "scroll", -> | |
if $(window).scrollTop() > num | |
$("nav").addClass "fixed" | |
else |
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
$min-font-size: 10 | |
$max-font-size: 50 | |
@mixin font-sizes | |
@for $i from $min-font-size through $max-font-size | |
.font-#{$i}px | |
font-size: ($i / 16)em | |
@extend .font-normal | |
@include font-sizes |
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
. | |
_ | |
_._ _..._ .-', _.._(`)) | |
'-. ` ' /-._.-' ',/ | |
) \ '. | |
/ _ _ | \ | |
| a a / | | |
\ .-. ; | |
'-('' ).-' ,' ; | |
'-; | .' |
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
#fade { | |
width: 100px; | |
height: 100px; | |
border-radius: 50%; | |
border: none; | |
} |
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
img { | |
cursor:pointer; | |
} |
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/ruby | |
# | |
# This script fixes /usr/local only. | |
# | |
# 6th January 2010: | |
# Modified the script to just fix, rather than install. - rpavlik | |
# | |
# 30th March 2010: | |
# Added a check to make sure user is in the staff group. This was a problem | |
# for me, and I think it was due to me migrating my account over several |
OlderNewer