A new element, describing link relation to curies. Structure:
- name - should match to a defined curie by name, required
- value - the value or values that will expand to curie template by position, optional, defaults to link name
var DynamicSlider = function() { | |
var config = { | |
wrapperSelector: '#slider-bar-wrap', | |
barSelector: '#slider-bar', | |
paneSelector: '#slider-pane', | |
contentSelector: '#slider-content', | |
paddingRight: 0, | |
focus: true | |
}; |
When you need a jQuery UI slider that adapts it's slide handle according to dynamic content, there is an issue related to setting the slider's handle size. This is a workaround that fixes the issue. Details can be found @ http://shcatula.wordpress.com/2014/11/05/jquery-ui-slider-for-dynamic-content.
A Pen by Vanja Radovanović on CodePen.
# https://github.com/mikeebert/repository_template/blob/master/lib/base_repository.rb | |
module InMemory | |
class BaseRepository | |
class RecordNotFound < StandardError | |
def initialize(id) | |
@id = id | |
end | |
def to_s |
# Task: Implement the rcat utility and get these tests to pass on a system | |
# which has the UNIX cat command present | |
# To see Gregory Brown's solution, see http://github.com/elm-city-craftworks/rcat | |
# Feel free to publicly share your own solutions | |
# If you want to see detailed commentary on how to solve this problem | |
# please subscribe to the Practicing Ruby Journal ( practicingruby.com ) | |
# An article on this topic will be released on Tuesday 10/18. |
# Requires supporting ruby files with custom matchers and macros, etc, | |
# in spec/support/ and its subdirectories. | |
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f } | |
# Requires all extra / autoload paths, @see /config/initializers/auto_require.rb | |
# Recommendation: do not rely on autoload for domain objects, use this just for specs | |
unless defined?(Rails) | |
%W( | |
app/persistence | |
app/representers |
#!/bin/sh | |
grep spec_helper_without_rails -Rl spec/* | xargs rspec |
require "net/ldap" | |
# if a project belongs to a ldap group | |
# add users from ldap group to the project | |
# remove all other users from the project | |
# else | |
# add all users as usual | |
desc "Add or removes users from projects (admin users are added as masters) respecting LDAP and project groups" | |
task :add_or_remove_users_from_project_teams_using_ldap_groups => :environment do |t, args| | |
gl = Gitlab.config |
--colour | |
-I app |
#!/bin/sh | |
# http://stackoverflow.com/questions/3878624/how-do-i-programmatically-determine-if-there-are-uncommited-changes | |
require_clean_work_tree () { | |
# Update the index | |
git update-index -q --ignore-submodules --refresh | |
err=0 | |
# Disallow unstaged changes in the working tree | |
if ! git diff-files --quiet --ignore-submodules --; then |