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
import Data.Word | |
freq = 0.3 | |
spread = 8.0 | |
unbase :: Integral int => int -> Word8 -> Word8 -> Word8 -> int | |
unbase base r g b = (fi r*base+fi g)*base+fi b | |
where fi = fromIntegral | |
-- | Approximate a 24-bit Rgb colour with a colour in the xterm256 6x6x6 colour cube, returning its index. |
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
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
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
def run_spec(file) | |
unless File.exist?(file) | |
puts "#{file} does not exist" | |
return | |
end | |
puts "==> Running #{file}" | |
system "bundle exec rspec #{file}" | |
puts | |
puts "*" * 100 |
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
~> ~ time ruby -e "10000.times { %w(one two).include?('two')}" | |
ruby -e "10000.times { %w(one two).include?('two')" 0.02s user 0.01s system 30% cpu 0.091 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 74% cpu 0.046 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 42% cpu 0.084 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 24% cpu 0.153 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 85% cpu 0.040 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 31% cpu 0.117 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 38% cpu 0.093 total | |
ruby -e "10000.times { %w(one two).include?('two')}" 0.03s user 0.01s system 30% cpu 0.115 total |
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
Исповедь офисной сотрудницы. | |
Месяц первый. Здрасссьте. | |
Вот это ужас - кругом одни мужики! Я одна, а их десять (и среди них есть симпатичные)! Свихнуться можно: юбку лучше не одевать (все равно, что голая), никого ни о чем не просить (или еще час вокруг тебя будет толпа галдящих мужиков), пописать не сходишь (перед картонной дверью в туалет всегда стоит группа курящих сотрудников (и среди них, естественно, все симпатичные)). | |
Все напряженно работают - пялятся в монитор, как сумасшедшие. С подругой не поговоришь-v все мужики разговаривают по телефону не дольше 5 минут и исключительно по работе, на сайт с колготками не полезешь, и Дженифер Лопез не пообсуждаешь. Свихнуться можно! | |
Месяц второй. Ну, вроде бы ничего. | |
Писать можно ходить к соседям (там отдельный женский туалет), на сайте с колготками можно сидеть, если сделать морду кирпичом. Дженифер Лопез тут не катит, катит тут какая то Анита Блонд. | |
Все разговоры про зимнюю резину, моторное масло и компьютерные мозги, мой Пежо 206 вызывает у них презрительн |
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
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
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
Hosted ci:https://semaphoreapp.com | |
https://magnum.travis-ci.com | |
https://circleci.com/privacy | |
Open source CI: |
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
Инструкция для ускорения ОТА: | |
1) Настройки - Приложения - Все - Google Services Framework. | |
2) Стереть данные. Остановить. | |
3) Затем вЫключаю Wi-fi и Apn. | |
4) Перезагружаюсь. | |
4) После перезагрузки вылезло окно "Позволить ли Гуглу определять местоположение", ответ НЕТ. | |
5)Включаем сеть и тут сразу предложение обновления. |
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
Инструкция для ускорения ОТА: | |
1) Настройки - Приложения - Все - Google Services Framework. | |
2) Стереть данные. Остановить. | |
3) Затем вЫключаю Wi-fi и Apn. | |
4) Перезагружаюсь. | |
4) После перезагрузки вылезло окно "Позволить ли Гуглу определять местоположение", ответ НЕТ. | |
5)Включаем сеть и тут сразу предложение обновления. |
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
App = Ember.Application.create(); | |
App.Router.map(function() { | |
this.resource("questions", { path: '/'}, function () { | |
this.resource("question", { path: ':question_id'}) | |
}); | |
this.resource("result") | |
}); | |
App.QuestionsRoute = Ember.Route.extend({ |
OlderNewer