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
# Understanding expected results: username[rank] | |
Feature: Ranking System | |
Before: | |
Given these users | |
| username | | |
| user1 | | |
| user2 | | |
| user3 | |
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
textarea::-webkit-input-placeholder | |
color: $color | |
textarea:-moz-placeholder | |
color: $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
! function($){ | |
$(document) | |
.on('click', '[data-focus]', function(e){ | |
e.preventDefault(); | |
$($(this).data('focus')).focus(); | |
}) | |
.on('click', 'body', function(e){ $('.open-active').not('[data-persistent]').click(); }) | |
.on({ | |
click: function(e){ | |
e.preventDefault(); |
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
! function($){ | |
$(document).on({ | |
click: function(e){ | |
e.preventDefault(); | |
var $this = $(this), | |
scope = $this.data('scope'), | |
$scope = $(scope), | |
$filter = $($this.data('filter')); | |
$('[data-filter][data-scope="'+scope+'"].active').removeClass('active'); | |
$('[data-filter="' + $this.data('filter') + '"][data-scope="'+scope+'"]').addClass('active'); |
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
* { margin:0; padding:0; text-decoration:none; border:none; outline:none; } | |
body { font-family:helvetica; font-weight:200; font-size:14px; } | |
.clearfix { *zoom:1; } | |
.clearfix:before, .clearfix:after { content:''; display:table; } | |
.clearfix:after { clear:both; } | |
#everything { | |
max-width:960px; padding:20px; margin:20px auto; | |
border-radius:15px; box-shadow: inset 0px 1px 2px rgba(0,0,0,0.5); | |
border:1px solid rgba(0,0,0,0.05); |
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
<%= detail do %> | |
<strong>9</strong> | |
<small>Messages</small> | |
<% 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
def generateID | |
"hello" | |
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
# used in the generation of shopping | |
def generateID | |
"hello" | |
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
def protect | |
chars = ('a'..'z').to_a - ['a','e','o','u','i'].to_a | |
#chars = ('a'..'z').to_a | |
code_array=[] | |
1.upto(6) {code_array << chars[rand(chars.length)]} | |
session[:code] = code_array.to_s | |
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
def check_for_profanity(field) | |
if field | |
if field=~/(fuck)|(cunt)/i | |
return true | |
end | |
end | |
return false | |
end |
OlderNewer