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 | |
# -*- ruby -*- | |
require 'rubygems' | |
require 'daemon-spawn' | |
RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
class DelayedJobWorker < DaemonSpawn::Base | |
def start(args) | |
ENV['RAILS_ENV'] ||= args.first || 'development' |
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
PROJECT(add-todo) | |
find_package(KDE4 REQUIRED) # Находим модули KDE4 | |
find_package(KdepimLibs REQUIRED) # Находим модули KDE PIM | |
include(KDE4Defaults) | |
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) | |
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDEPIMLIBS_INCLUDE_DIR} ${KDE4_INCLUDES}) |
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
#include <iostream> | |
/** | |
* Класс, предоставляющий общие сервисы для свойств, а также используемый для хранения в классе позиции свойств. | |
*/ | |
template < | |
typename PropertyOwner // Класс владельца | |
> | |
class properties { |
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
// This is fork of http://www.felecan.com/jquery-normal-color-picker/ | |
jQuery.fn.addColorPicker = function( props ) { | |
if( !props ) { props = []; } | |
props = jQuery.extend({ | |
colors : [ | |
"#000000","#000033","#000066","#000099","#0000CC","#0000FF", | |
"#330000","#330033","#330066","#330099","#3300CC","#3300FF", |
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
LANGS = {} | |
module LangHelper | |
def l( sym ) | |
( LANGS[ current_lang ] || {} )[ sym.to_s ] || '__localization_missing__' | |
end | |
def link_for_lang( lang ) | |
current_page.sub( /\/[a-z]+\//, '/' + lang + '/' ) |
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
# Becnhmark for Ruby RSS parsers | |
# Gems: syndication, rubyrss, simple-rss, feedtools | |
require 'benchmark' | |
require 'rubygems' | |
require 'open-uri' | |
require 'rss' | |
require 'simple-rss' | |
require 'feed_tools' |
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
# Becnhmark for Ruby code highligters | |
# Gems: ultraviolet, coderay, syntax | |
require 'benchmark' | |
require 'rubygems' | |
require 'uv' | |
require 'coderay' | |
require 'syntax/convertors/html' |
NewerOlder