Skip to content

Instantly share code, notes, and snippets.

View multiplier's full-sized avatar

John Kamuchau multiplier

View GitHub Profile

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@multiplier
multiplier / sticky_menu_bar
Created November 1, 2013 14:27
Sticky top menu
// To menu moniter
$(window).scroll(function(e) {
// Get the position of the location where the scroller starts.
var scroller_anchor = $(".scroller_anchor").offset().top;
// Check if the user has scrolled and the current position is after the scroller start location and if its not already fixed at the top
if ($(this).scrollTop() >= scroller_anchor && $('.scroller').css('position') != 'fixed')
{ // Change the CSS of the scroller to hilight it and fix it at the top of the screen.
$('.scroller').css({
'background': '#FFFFFF',
@multiplier
multiplier / gist:4141546
Created November 24, 2012 21:57
backbonejserror
class Trainer.Views.LessonsIndex extends Backbone.View
template: JST['lessons/index']
initialize: ->
@collection.on('reset', @render, this);
@collection.on('add', @render, this);
render: ->
$(@el).html(@template(lessons: @collection))
@multiplier
multiplier / example.js
Created September 15, 2012 16:44 — forked from jaimeiniesta/example.js
jQuery-UI autocomplete with multiple comma-separated values from a JSON remote source
$(function() {
function split( val ) {
return val.split( /,\s*/ );
}
function extractLast( term ) {
return split( term ).pop();
}
$( "#new_interest" ).autocomplete({
@multiplier
multiplier / gist:3631239
Created September 5, 2012 05:50 — forked from 23inhouse/gist:3594808
Customizing simple_form and bootstrap

Customization

  <%= f.input :state, :collection => ['SA', 'WA'] %>
  <%= f.input :state,
              :as => :radio_buttons,
@multiplier
multiplier / gist:3630835
Created September 5, 2012 05:03 — forked from 23inhouse/gist:3594808
Customizing simple_form and bootstrap

Customization

  <%= f.input :state, :collection => ['SA', 'WA'] %>
  <%= f.input :state,
              :as => :radio_buttons,
@multiplier
multiplier / deploy.rb
Created June 25, 2012 16:37 — forked from robzolkos/deploy.rb
deploy.rb for Linode
#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require 'bundler/capistrano'
require 'rvm/capistrano'
require "capistrano_colors"
require 'thinking_sphinx/deploy/capistrano'
require 'delayed/recipes'
set :normalize_asset_timestamps, false
set :rvm_type, :user
set :rvm_ruby_string, 'ruby-1.9.3-p125@appname'