This file contains 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
directory 'vendor' | |
desc 'Install Ruby gems into vendor/' | |
task :install_gems => 'vendor' do | |
sh 'jruby -S gem install -i vendor rubyzip' | |
end | |
desc 'Build Java launcher that will start the Ruby program' | |
task :build_launcher do | |
sh 'javac -cp jruby-complete.jar JavaLauncher.java' |
This file contains 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
directory 'vendor' | |
desc 'Install Ruby gems into vendor/' | |
task :install_gems => 'vendor' do | |
sh 'jruby -S gem install -i vendor rubyzip' | |
end | |
desc 'Build Java launcher that will start the Ruby program' | |
task :build_launcher do | |
sh 'javac -cp jruby-complete.jar JavaLauncher.java' |
This file contains 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
Manifest-Version: 1.0 | |
Class-Path: jruby-complete.jar | |
. | |
Main-Class: JavaLauncher |
This file contains 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 "bundler/setup" | |
require 'yaml' | |
require 'aws-sdk' | |
#require 'jruby-openssl' | |
bucket_name = "talim" | |
file_name = "jrubyaws.txt" |
This file contains 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@COMP /e/gitlocalrepo | |
$ git --version | |
git version 1.7.6.msysgit.0 | |
A@COMP /e/gitlocalrepo | |
$ |
This file contains 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 'benchmark' | |
def factorial(n) | |
(1..n).inject(1) { |product, value| product * value } | |
end | |
3.times do | |
timing = Benchmark.measure do | |
result = factorial(10000) | |
end |
This file contains 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
[core] | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = true | |
symlinks = false | |
ignorecase = true | |
hideDotFiles = dotGitOnly | |
[remote "origin"] | |
url = https://github.com/joshsoftware/golang-challenge.git |
This file contains 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
###Francesc Campoy Flores from Google | |
During my long flight back to San Francisco I had the time to work on the Go challenge. Congrats on the organization! The problem was fun to solve and I'm sure people will learn a lot from it. | |
###Others | |
1. Thank you for the challenge. It was fun and an awesome "excuse" to read through some golang source code such as encode/json and image/png. | |
2. I had a great time working on this. I got a great excuse to browse parts of the standard library I hadn't visited before. I really appreciate the initiative that you guys are taking with this. |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/google/go-github/github" | |
"golang.org/x/oauth2" | |
githuboauth "golang.org/x/oauth2/github" | |
"html/template" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dosa Diner</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="stylesheets/dosasite.css"> | |
</head> | |
<body> |