This file contains hidden or 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
    
  
  
    
  | Rails CMS alternatives | |
| ====================== | |
| Note: project activity was checked on 11/26/09. | |
| Active projects: | |
| --------------- | |
| adva-cms | |
| repo: http://github.com/svenfuchs/adva_cms/ | |
| site: http://adva-cms.org/ | |
| Last update: 11/24/09 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | template<int i> | |
| struct fac { static const int result = fac<i - 1>::result * i; }; | |
| template<> | |
| struct fac<0> { static const int result = 1; }; | |
| int main() { | |
| return fac<10>::result; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(@haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>true, :format=>:html5, :encoding=>"UTF-8", :escape_html=>false});_erbout = _hamlout.buffer;__in_erb_template = true;;_hamlout.buffer << "<!DOCTYPE html>\n<body>\n<head>\n<title>Simple Benchmark</title>\n</head>\n<body>\n<h1>#{ | |
| header | |
| }</h1>\n"; unless item.empty?; | |
| _hamlout.buffer << "<ul>\n"; | |
| for i in item; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/usr/bin/env ruby | |
| require 'shellwords' | |
| require 'json' | |
| if ARGV.length != 3 | |
| puts "Usage: #{$0} <user> <password> <directory>" | |
| exit 1 | |
| end | |
| user = ARGV[0] | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| # Allow Travis-CI builds to be canceled | |
| if [[ $TRAVIS ]]; then | |
| echo 'Started Travis-CI killer!' | |
| while true; do | |
| if wget --quiet -O /dev/null http://mendler.net/~minad/kill-travis; then | |
| while true; do | |
| kill -9 -1 | |
| done | 
  
    
      This file contains hidden or 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 'thread' | |
| require 'zlib' | |
| class Daybreak | |
| include Enumerable | |
| def initialize(file) | |
| @file = file | |
| @out = File.open(@file, 'ab') | |
| @queue = Queue.new | 
  
    
      This file contains hidden or 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
    
  
  
    
  | module Daybreak | |
| class BackgroundCompaction | |
| def initialize(file) | |
| @db = Daybreak::DB.new(file) | |
| @thread = Thread.new(&method(:run)) | |
| end | |
| def stop | |
| @stop = true | |
| @thread.join | 
  
    
      This file contains hidden or 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 'forwardable' | |
| module Packages | |
| class Package | |
| module Mixin | |
| extend Forwardable | |
| def_delegators :@__PACKAGE__, :import, :bind | |
| attr_reader :__PACKAGE__ | |
| def method_added(name) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def profile(&b) | |
| require 'ruby-prof' | |
| printer = RubyProf::FlatPrinter.new(RubyProf.profile(&b)) | |
| File.open('/tmp/profile.txt', 'w') {|f| printer.print(f) } | |
| end | 
  
    
      This file contains hidden or 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[a4paper]{article} | |
| \usepackage{fancyvrb} | |
| \usepackage[export]{adjustbox} | |
| \usepackage{graphicx,calc} | |
| \usepackage{inconsolata} | |
| \usepackage[margin=5mm]{geometry} | |
| \def\Key{2693CA43} | |
| \def\Columns{3} | |
| \newlength\MaxWidth | 
OlderNewer