Randomized is a theme generator for syntax highlighters Rouge, Redcarpet, and Pygments. This is an experimental demo inspired by Solarized, and may change until the project stabilizes.
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
Share your current theme to Twitter, Facebook, Google+.
def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
<!doctype html>
<html>
<head>
<title>Title!</title>
</head>
<body>
<h1 id="title" class="heading">Example</h1>
<p id="foo">Hello, World!</p>
<script type="text/javascript">var a = 1;</script>
<style type="text/css">#foo { font-weight: bold; }</style>
</body>
</html>
// Load the http module to create an http server.
var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
// Listen on port 8000, IP defaults to 127.0.0.1
server.listen(8000);
// Put a friendly message on the terminal
console.log("Server running at http://127.0.0.1:8000/");
diff(plus(A,B), X, plus(DA, DB))
<= diff(A, X, DA) and diff(B, X, DB).
diff(times(A,B), X, plus(times(A, DB), times(DA, B)))
<= diff(A, X, DA) and diff(B, X, DB).
equal(X, X).
diff(X, X, 1).
diff(Y, X, 0) <= not equal(Y, X).
service { 'ntp':
name => $service_name,
ensure => running,
enable => true,
subscribe => File['ntp.conf'],
}
void main() {
var collection=[1,2,3,4,5];
for(var a in collection){
print(a);
}
}
Markdown has cool [reference links][ref 1]
and [regular links too](http://example.com)
[ref 1]: http://example.com
Copy the following code and paste it into your Jekyll styles, it also works with any Rouge or Redcarpet compatible highlighters:
Source not generated
This is a side project by Tunghsiao Liu, if you like this service, please consider buying me a cup of coffee. Thanks.
© Sparanoid, Inc.