Skip to content

Instantly share code, notes, and snippets.

View jpoz's full-sized avatar
:shipit:

James Pozdena jpoz

:shipit:
  • Boulder, CO
  • 23:40 (UTC -06:00)
View GitHub Profile
<html>
<head>
<title>This is the title of the website</title>
<style type="text/css" media="screen">
body {
background: limegreen;
}
#main_title {
body {
background: limegreen;
}
#main_title {
font-size: 100px;
}
.main {
int max = 5;
int i = 0;
for(i = 0; i < max;i++){
printf("Tim!\n",i);
}
5.times do
puts "Tim!"
end
a_greeting = 'Well hello there'
puts a_greeting
complements = ['great','fantastic','awesome']
complements.each do |c|
puts "You are " + c
end
require 'rubygems'
require 'sinatra'
get '/' do
'Well hello there'
end
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
$.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){
$.engineer.define('basic_button', {
defaults: { title:"Load", url:"/", target:$('') },
structure: function(options) {
return $('<div/>', {
css: {
'background','lightgrey'
},
html: options.title
}
},
#!/usr/bin/env clj
(ns ols)
(defn sum [x]
(reduce + 0 x))
(defn multsum [x y]
(loop [xdata x
ydata y