Permalink
Browse files

First version

  • Loading branch information...
1 parent 58cfc8f commit 3814b485e12d9a7d3c16f3e54309c411abfb7edf @andreareginato andreareginato committed Aug 26, 2012
View
@@ -0,0 +1,22 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore temporary files
+*.swp
+*.swo
+*.DS_Store
+
+# Ignore .rvmrc file.
+/.rvmrc
+
+# Ignore nanoc files
+/tmp/*
+
+# Ignore compiled files
+/public
+
+# Ignore .env
+.env
View
@@ -0,0 +1,12 @@
+= Changelog
+
+
+== Release v0.0.2
+
+* Review Device API content
+* Refactoring animation svg
+
+
+== Release v0.0.1 (2012/02/15)
+
+* First version Lelylan Dev Center
View
16 Gemfile
@@ -0,0 +1,16 @@
+source :gemcutter
+
+gem 'rack'
+gem 'rake'
+gem 'nanoc3'
+gem 'builder'
+gem 'adsf'
+gem 'foreman'
+
+# Thin to serve content from Heroku
+gem 'thin'
+gem 'rack-rewrite', :require => 'rack-rewrite'
+gem 'rack-contrib', :require => 'rack/contrib'
+
+# Mime-types for handling mime types
+gem 'mime-types', :require => 'mime/types'
View
@@ -0,0 +1,39 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ adsf (1.1.1)
+ rack (>= 1.0.0)
+ builder (3.0.0)
+ cri (2.0.2)
+ daemons (1.1.5)
+ eventmachine (0.12.10)
+ foreman (0.57.0)
+ thor (>= 0.13.6)
+ mime-types (1.17.2)
+ nanoc3 (3.2.4)
+ cri (~> 2.0)
+ rack (1.4.0)
+ rack-contrib (1.1.0)
+ rack (>= 0.9.1)
+ rack-rewrite (1.2.1)
+ rake (0.9.2.2)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.16.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ adsf
+ builder
+ foreman
+ mime-types
+ nanoc3
+ rack
+ rack-contrib
+ rack-rewrite
+ rake
+ thin
View
@@ -0,0 +1 @@
+Copyright (c) 2013 Lelylan
View
@@ -0,0 +1 @@
+web: bundle exec nanoc3 compile && bundle exec thin start -R config.ru -e production -p $PORT
View
@@ -0,0 +1,62 @@
+= Introduction
+
+Betterspecs is a collection of best practices on your specs.
+Learn more about at {betterspecs.org}[http://betterspecs.org]
+
+= Requirements
+
+This site is bilt with {nanoc}[http://nanoc.stoneship.org/].
+
+Ruby ~> {1.9.3}[www.ruby-lang.org/en/]
+
+= Installation
+
+ bundle install
+
+= Usage
+
+Compile the site locally.
+
+ nanoc3 autocompile # start the autocompiler and run the local server
+
+The web site is now visible at localhost:3000. All changes will be
+automatically added.
+
+= Contribute
+
+If you find some errors or you want to improve the documentation fork the repository on github
+and issue a pull request with your changes. No other means of supplying code to the team will
+be accepted.
+
+== Documentation guidelines
+
+* Do not duplicate existing knowledge (read twice what already exists).
+* Add the right information in the right place.
+* Bump to the new version and Update the CHANGELOG.
+
+= Feedback
+
+Use the {issue tracker}[http://github.com/lelylan/developer_site/issues]
+for any but you find or to discuss new best practices. Feedback is always welcome.
+
+= Links
+
+* {GIT Repository}[https://github.com/Lelylan/developer_site]
+* {Lelylan}[http://lelylan.com]
+* {Lelylan | Dev Center}[http://dev.lelylan.com]
+
+= Authors
+
+{Andrea Reginato}[http://lelylan.com]
+
+= Contributors
+
+Special thanks to the following people for submitting patches.
+
+= Changelog
+
+See CHANGELOG
+
+= Copyright
+
+Copyright (c) 2013 {Andrea Regianto}[http://lelylan.com]. See LICENSE for details.
View
@@ -0,0 +1 @@
+require 'nanoc3/tasks'
View
29 Rules
@@ -0,0 +1,29 @@
+#!/usr/bin/env ruby
+
+# General
+preprocess do
+ copy_static # add assets to the output directory
+end
+
+
+# Sitemap
+compile '/sitemap/' do
+ filter :erb
+end
+
+route '/sitemap/' do
+ '/sitemap.xml'
+end
+
+
+# General
+compile '*' do
+ filter :erb
+ layout 'default'
+end
+
+route '*' do
+ item.identifier + 'index.html'
+end
+
+layout '*', :erb
View
@@ -0,0 +1 @@
+v0.0.1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,103 @@
+$(function () { $('.tabs').tabs(); })
+$(function () { hljs.initHighlightingOnLoad(); })
+
+var Site = {}
+Site.animation = (function() {
+
+ var me = {};
+
+ me.init = function(container_id) {
+
+ // Page structure
+ var container = $(container_id),
+ canvas = container.find('.canvas'),
+ paper = Raphael(canvas.attr('id'));
+
+ // Lines visualization settings
+ var path_attr = {"stroke-width": 2, stroke: "#ddd"},
+ first_line = paper.path("M18 20L292 20").attr(path_attr),
+ second_line = paper.path("M308 20L610 20").attr(path_attr);
+
+ // Circle visualization settings
+ var circle_attr = {stroke: "none", fill: "#ddd"},
+ first_circle = paper.circle(15, 20, 10).attr(circle_attr);
+ second_circle = paper.circle(300, 20, 10).attr(circle_attr);
+ third_circle = paper.circle(615, 20, 10).attr(circle_attr);
+
+ // Moving circle visualization settings
+ var moving_circle_attr = {stroke: "#FF7600", "stroke-width": 4},
+ moving_circle = paper.circle(15, 20, 4).attr(moving_circle_attr);
+
+ // Apply a bouncing animation to the first circle
+ setTimeout(fade(first_circle, container.find('.first-step')), 1000);
+
+ // Show the first stem description
+ show_step('.first-step');
+
+ // Buttons click
+ container.find(".first-step .btn-warning").click(function (e) { go_to_second_step(e) })
+ container.find(".second-step .btn-warning").click(function (e) { go_to_third_step(e) })
+ container.find(".third-step .btn-warning").click(function (e) { go_to_first_step(e) })
+
+ first_circle.click(function (e) { go_to_first_step(e) })
+ second_circle.click(function (e) { go_to_second_step(e) })
+ third_circle.click(function (e) { go_to_third_step(e) })
+
+ // ----------
+ // Private
+ // ----------
+
+ // Node arrival animation
+ // - circle: object to animate at the end of the animation
+ // - content_id: step description to show
+ function fade(circle, step) {
+ return function () {
+ show_step(step);
+ circle.attr({fill: "#FF7600", r: 14}).animate({fill: "#ddd", r: 10, easing: '>'}, 1000);
+ };
+ }
+
+ // Create animation
+ // - x: final x position
+ // - circle: object to animate at the end of the animation
+ // - content_id: step description to show
+ function animate(x, circle, content_id) {
+ moving_circle.stop().animate({"100%": {cx: x, easing: '<', callback: fade(circle, content_id)}});
+ }
+
+ // Visible step description
+ // - step: id related to the step description to show
+ function show_step(step) {
+ container.find('.first-step').hide();
+ container.find('.second-step').hide();
+ container.find('.third-step').hide();
+ container.find(step).show();
+ }
+
+ // Animation to first position
+ function go_to_first_step(e) {
+ moving_circle.attr({cx: 15});
+ setTimeout(fade(first_circle, '.first-step'), 0);
+ e.preventDefault();
+ }
+
+ // Animation to second position
+ function go_to_second_step(e) {
+ moving_circle.attr({cx: 15});
+ animate(300, second_circle, '.second-step', 0);
+ e.preventDefault();
+ }
+
+ // Animation to third position
+ function go_to_third_step(e) {
+ moving_circle.attr({cx: 300});
+ animate(615, third_circle, '.third-step', 0);
+ e.preventDefault();
+ }
+
+ }
+
+ return me;
+})();
+
+
@@ -0,0 +1,80 @@
+/* ========================================================
+ * bootstrap-tabs.js v1.4.0
+ * http://twitter.github.com/bootstrap/javascript.html#tabs
+ * ========================================================
+ * Copyright 2011 Twitter, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ======================================================== */
+
+
+!function( $ ){
+
+ "use strict"
+
+ function activate ( element, container ) {
+ container
+ .find('> .active')
+ .removeClass('active')
+ .find('> .dropdown-menu > .active')
+ .removeClass('active')
+
+ element.addClass('active')
+
+ if ( element.parent('.dropdown-menu') ) {
+ element.closest('li.dropdown').addClass('active')
+ }
+ }
+
+ function tab( e ) {
+ var $this = $(this)
+ , $ul = $this.closest('ul:not(.dropdown-menu)')
+ , href = $this.attr('href')
+ , previous
+ , $href
+
+ if ( /^#\w+/.test(href) ) {
+ e.preventDefault()
+
+ if ( $this.parent('li').hasClass('active') ) {
+ return
+ }
+
+ previous = $ul.find('.active a').last()[0]
+ $href = $(href)
+
+ activate($this.parent('li'), $ul)
+ activate($href, $href.parent())
+
+ $this.trigger({
+ type: 'change'
+ , relatedTarget: previous
+ })
+ }
+ }
+
+
+ /* TABS/PILLS PLUGIN DEFINITION
+ * ============================ */
+
+ $.fn.tabs = $.fn.pills = function ( selector ) {
+ return this.each(function () {
+ $(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab)
+ })
+ }
+
+ $(document).ready(function () {
+ $('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
+ })
+
+}( window.jQuery || window.ender );
Oops, something went wrong.

0 comments on commit 3814b48

Please sign in to comment.