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
package utils | |
import ch.qos.logback.core.AppenderBase | |
import ch.qos.logback.classic.spi.ILoggingEvent | |
import ch.qos.logback.classic.spi.IThrowableProxy | |
import com.ning.http.client._ | |
import scala.beans.BeanProperty | |
import scala.collection.convert.WrapAsScala._ | |
import java.net.InetAddress |
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
# Becnhmark for Ruby code highligters | |
# Gems: ultraviolet, coderay, syntax | |
require 'benchmark' | |
require 'rubygems' | |
require 'uv' | |
require 'coderay' | |
require 'syntax/convertors/html' |
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
# 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 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 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 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 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 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 | |
class String | |
def sel? | |
not (empty? || self =~ /^[-._\w\d]+[:=]/) | |
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
-- | |
-- Name: categories; Type: TABLE; Schema: public; Owner: kalugamap; Tablespace: | |
-- | |
CREATE TABLE categories ( | |
id integer NOT NULL, | |
ancestry character varying(255), | |
"table" character varying(255), | |
types character varying(255)[], |
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
/* | |
* В этой программе осуществляется построение лексического анализатора для булевых выражений, | |
* который разбивает входной поток символов на лексемы. | |
* | |
* Предполагается, что выражения записываются следующим образом: | |
* | |
* (true && false) && !true | |
*/ | |
OlderNewer