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 'rack/utils' | |
require 'hpricot' | |
module Rack | |
class Codehighlighter | |
include Rack::Utils | |
# for logging use | |
FORMAT = %{%s - [%s] [%s] "%s %s%s %s" (%s) %d %d %0.4f\n} | |
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 'sinatra' | |
require 'coderay' | |
require 'rack-codehighlighter' | |
use Rack::Codehighlighter, :coderay, | |
:element => "pre", :pattern => /\A:::(\w+)\s*\n/ | |
get "/" do | |
erb :index |
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
%%% Skróty | |
%%% czasopisma: | |
@String{j-LECT-NOTES-COMP-SCI = "Lecture Notes in Computer Science"} | |
%%% wydawcy: | |
@String{pub-PH = "Pren{\-}tice-Hall"} | |
@String{pub-PH:adr = "Englewood Cliffs, NJ 07632, USA"} |
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
\documentclass[12pt]{amsbook} | |
\usepackage{amsrefs} | |
\usepackage{fontspec} | |
\defaultfontfeatures{Mapping=tex-text} | |
\usepackage{xunicode} | |
\usepackage{xltxtra} | |
\usepackage[polish]{polyglossia} | |
\raggedbottom |
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
// *stdio.h* declares *puts* | |
#include <stdio.h> | |
//### code hello world | |
// every C program contains function *main*. | |
int main (int argc, char *argv[]) { | |
puts("hello world"); | |
return 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
require 'rubygems' | |
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib' | |
require 'sinatra' | |
require 'erubis' | |
set :erubis, :pattern => '\{% %\}' | |
require 'rdiscount' |
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
Druhá světová válka | |
Z Wikipedie, otevřené encyklopedie | |
Druhá světová válka | |
Animace vývoje války v Evropě | |
Trvání: 1. září 1939 – 2. září 1945 | |
Místo: Evropa, Středomoří, Afrika, Tichomoří, Jihovýchodní Asie, Čína, Střední východ | |
Výsledek: Vítězství Spojenců | |
Strany |
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
> db.dropDatabase(); | |
{ "dropped" : "test", "ok" : 1 } | |
> | |
> // These points are one degree apart, which (according to Google Maps) is about 110 km apart | |
> // at this point on the Earth. | |
> db.points.insert({location: [-122, 37]}); | |
> db.points.insert({location: [-122, 38]}); | |
> db.points.ensureIndex({location:"2d"}); | |
> | |
> |
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
remove_file 'README' | |
create_file "README.md" do | |
"# Fortunka\n\nTODO" | |
end | |
remove_file "public/index.html" | |
gem "simple_form" | |
generate "simple_form:install" |
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
chkconfig —add mongodb | |
chkconfig mongodb on |
OlderNewer