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>syntax-check.pl6</title> | |
<style media="screen"> | |
#atom-text-editor, | |
:host { | |
background-color: #002b36; | |
color: #839496; | |
} |
This file has been truncated, but you can view the full file.
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>Perl6Grammar.nqp</title> | |
<style media="screen"> | |
atom-text-editor, | |
:host { | |
background-color: #002b36; | |
color: #839496; | |
} |
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
{ patterns = ( | |
{ name = 'comment.block.perl6'; | |
begin = '^=begin'; | |
end = '^=end'; | |
}, | |
{ name = 'comment.line.number-sign.perl6'; | |
match = '#.*$'; | |
}, | |
{ name = 'string.quoted.single.perl6'; | |
begin = "'"; |
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' | |
gem 'dm-core' | |
require 'dm-core' | |
require 'pp' | |
DataMapper.setup(:default, 'sqlite3::memory:') | |
DataMapper::Logger.new(STDOUT, :info) | |
DataObjects::Sqlite3.logger = DataObjects::Logger.new(STDOUT, 0) | |
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
<html> | |
<head> | |
<title>Hello World</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> | |
<script> | |
$(document).read(function () { | |
alert("hello World"); | |
}); | |
</script> |
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
## router.rb | |
namespace :admin do | |
match('/').to(:controller => 'dash', :action => 'index').name(:dash) | |
resources :users | |
resources :teams | |
resources :seasons do | |
resources :games | |
end | |
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
Merb.logger.info("Compiling routes...") | |
Merb::Router.prepare do | |
authenticate do | |
namespace :admin do | |
match('/').to(:controller => 'dash', :action => 'index').name(:dash) | |
resources :users | |
resources :teams | |
resources :seasons do | |
resources :games | |
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
class HelloWorld | |
def call(env) | |
[200, {"Content-Type" => "text/plain"}, ["Hello world!"]] | |
end | |
end | |
Rack::Handler::FastCGI.run(HelloWorld) |
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' | |
gem 'dm-core' | |
require 'dm-core' | |
DataMapper.setup(:default, 'sqlite3::memory:') | |
DataMapper::Logger.new(STDOUT, :debug) | |
DataObjects::Sqlite3.logger = DataObjects::Logger.new(STDOUT, :debug) | |
class User | |
include DataMapper::Resource |
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 'dm-core' | |
require 'dm-more' | |
require 'dm-timestamps' | |
require 'dm-is-versioned' | |
DataMapper.setup(:sqlite3, 'sqlite3::memory:') | |
DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[:sqlite3] | |
DataMapper::Logger.new(STDOUT, :debug) | |
DataObjects::Sqlite3.logger = DataObjects::Logger.new(STDOUT, :debug) |
OlderNewer