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
#include <iostream> | |
/** | |
* Класс, предоставляющий общие сервисы для свойств, а также используемый для хранения в классе позиции свойств. | |
*/ | |
template < | |
typename PropertyOwner // Класс владельца | |
> | |
class properties { |
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 a callback function to be used with training of Keras models. | |
# It create an exponential moving average of a model (trainable) weights. | |
# This functionlity is already available in TensorFlow: | |
# https://www.tensorflow.org/versions/r0.10/api_docs/python/train.html#ExponentialMovingAverage | |
# and can often be used to get better validation/test performance. For an | |
# intuitive explantion on why to use this, see 'Model Ensembles" section here: | |
# http://cs231n.github.io/neural-networks-3/ | |
import numpy as np | |
import scipy.sparse as sp |
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 'benchmark' | |
count = 1000000 | |
Benchmark.benchmark do |bm| | |
bm.report("concat") { count.times { 11.to_s + '/' + 12.to_s } } | |
bm.report("interp") { count.times { "#{11}/#{12}" } } | |
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
== Resque | |
Гем для обработки фоновых задач. Использует Redis для хранения очереди. | |
+ redis | |
+ web-интерфейс для просмотра текущих задач, перезапуска зафэйленых и т.п. | |
+ разные очереди, можно создавать отдельные обработчики для них | |
+ можно обрабатывать задачи, не загружая полностью рельсовое окружение | |
- polling (так же как и в delayed_job) |
This file has been truncated, but you can view the full file.
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
Gem::Specification.new do |s| | |
s.name = "jruby-openssl" | |
s.version = "0.8.2" | |
s.summary = "OpenSSL add-on for JRuby" | |
s.description = "JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library." | |
s.authors = ["Ola Bini and JRuby contributors"] | |
s.email = "ola.bini@gmail.com" | |
s.date = "2012-12-11" |
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) | |
*/ | |
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 | |
*/ | |
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
#!/usr/bin/env ruby | |
class String | |
def sel? | |
not (empty? || self =~ /^[-._\w\d]+[:=]/) | |
end | |
end |
NewerOlder