This file contains hidden or 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
| <html> | |
| <head> | |
| <title>This is the title of the website</title> | |
| <style type="text/css" media="screen"> | |
| body { | |
| background: limegreen; | |
| } | |
| #main_title { |
This file contains hidden or 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
| body { | |
| background: limegreen; | |
| } | |
| #main_title { | |
| font-size: 100px; | |
| } | |
| .main { |
This file contains hidden or 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
| int max = 5; | |
| int i = 0; | |
| for(i = 0; i < max;i++){ | |
| printf("Tim!\n",i); | |
| } |
This file contains hidden or 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
| 5.times do | |
| puts "Tim!" | |
| end |
This file contains hidden or 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_greeting = 'Well hello there' | |
| puts a_greeting | |
| complements = ['great','fantastic','awesome'] | |
| complements.each do |c| | |
| puts "You are " + c | |
| end |
This file contains hidden or 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
| require 'rubygems' | |
| require 'sinatra' | |
| get '/' do | |
| 'Well hello there' | |
| end |
This file contains hidden or 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
| require 'rubygems' | |
| require 'sinatra' | |
| get '/' do | |
| 'Welcome to my great site' | |
| end | |
| get '/what_time_is_it' do | |
| time_right_now = Time.now.to_s | |
| 'The current time is ' + time_right_now |
This file contains hidden or 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
| $.objects.define('message_box',{ | |
| defaults: {html:""}, | |
| structure: function(options) { | |
| return $('<div/>', { html: options.html, css: { padding: '30px', border: '1px solid black' } }); | |
| }, | |
| behavior: function(options) { | |
| var self = this; | |
| self | |
| .click(function(event){ |
This file contains hidden or 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
| $.engineer.define('basic_button', { | |
| defaults: { title:"Load", url:"/", target:$('') }, | |
| structure: function(options) { | |
| return $('<div/>', { | |
| css: { | |
| 'background','lightgrey' | |
| }, | |
| html: options.title | |
| } | |
| }, |
This file contains hidden or 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/env clj | |
| (ns ols) | |
| (defn sum [x] | |
| (reduce + 0 x)) | |
| (defn multsum [x y] | |
| (loop [xdata x | |
| ydata y |