Skip to content

Instantly share code, notes, and snippets.

View OdNairy's full-sized avatar

Roman Gardukevich OdNairy

View GitHub Profile
GET /questionary/scripts/helper.php?callback=jQuery172032966944482177496_1385636607054&cmd=vote&scheduleId=121&questionId=14844&value=1&_=1385636609975 HTTP/1.1
Host: www.tut.by
Accept: */*
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
Referer: http://i.tut.by/missit2013.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,ru;q=0.6,pl;q=0.4
Cookie: __utuid=d8scu643-48f9zlvp-5fqjukg-37idfwih-27a5x3jw; lvutm=0; muid=54149114075; __utma=108158727.1610473201.1385636607.1385636607.1385636607.1; __utmb=108158727.1.10.1385636607; __utmc=108158727; __utmz=108158727.1385636607.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); by4_tut_questionary=5ecacf00b380c48011d263736727eabb
\e[36m/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
\e[36m/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
000000000001eca4 leaq 0x180882(%rip), %rdi ## literal pool for: "VECLIB_MAXIMUM_THREADS"
000000000001ecab callq 0x19f084 ## symbol stub for: _getenv
--
000000000001ef7c leaq 0x180abc(%rip), %rdi ## literal pool for: "APPLE_LAPACK_FILL_NAN"
000000000001ef83 callq 0x19f084 ## symbol stub for: _getenv
--
0000000000059865 leaq 0x1461d3(%rip), %rdi ## literal pool for: "APPLE_LAPACK_FILL_NAN"
000000000005986c callq 0x19f084 ## symbol stub for: _getenv
func generateSunColor(progress: Double) -> UIColor {
if progress < 0.2 {
return interpolateColor(from: .white,
to: UIColor(red: 255/255, green: 242/255, blue: 0/255, alpha: 1), // Yellow
with: (progress) / 0.2)
} else if progress < 0.4 {
return interpolateColor(from: UIColor(red: 255/255, green: 242/255, blue: 0/255, alpha: 1), // Yellow
to: .white,
with: (progress - 0.2) / 0.2)
} else if progress < 0.7 {
class Swiftlint < Formula
desc "Tool to enforce Swift style and conventions"
homepage "https://github.com/realm/SwiftLint"
url "https://github.com/realm/SwiftLint.git",
tag: "0.44.0",
revision: "e820e750b08bd67bc9d98f4817868e9bc3d5d865"
license "MIT"
head "https://github.com/realm/SwiftLint.git", branch: "master"
bottle do
@OdNairy
OdNairy / HD Video URLs
Created January 5, 2020 20:46 — forked from agassiyzh/HD Video URLs
#WWDC14 HD Videos & PDFs URLs
http://devstreaming.apple.com/videos/wwdc/2014/101xx36lr6smzjo/101/101_hd.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/102xxw2o82y78a4/102/102_hd_platforms_state_of_the_union.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/103xx8s53gk94hl/103/103_hd_apple_design_awards.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/201xx2xfazhzce8/201/201_hd_advanced_topics_in_internationalization.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/202xx3ane09vxdz/202/202_hd_whats_new_in_cocoa_touch.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/203xxh9oqtm0piw/203/203_hd_introducing_healthkit.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/204xxhe1lli87dm/204/204_hd_whats_new_in_cocoa.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/205xxqzduadzo14/205/205_hd_creating_extensions_for_ios_and_os_x,_part_1.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2014/206xxdiurnffagr/206/206_hd_introducing_the_modern_webkit_api.mov?dl=1
@OdNairy
OdNairy / Priorbank.txt
Created June 21, 2019 09:49
Как переводить деньги на Приорбанк без комиссии
1. Откройте Интернет-Банкинг Приорбанк, выберите карту на которую хотите и нажмите кнопку "Подробнее".
2. Скопируйте номер договора для пополнения
3. Откройте ЕРИП для перевода с карты
4. Финансовые услуги - Банки, НКФО - Приорбанк - Пополнение
5. Вводите сумму
6. ...
7. Вы восхитительны. Profit!
@OdNairy
OdNairy / update_tf_data.rb
Last active June 2, 2019 19:43
Wait build to be processed and update changelog afterwards. fastlane 2.125+ required.
require 'spaceship'
module Fastlane
module Actions
module SharedValues
UPDATE_TF_CHANGELOG_CUSTOM_VALUE = :UPDATE_TF_CHANGELOG_CUSTOM_VALUE
end
class UpdateTfDataAction < Action
def self.run(params)
@OdNairy
OdNairy / Swift Events.swift
Created April 18, 2019 09:20 — forked from ColinEberhardt/Swift Events
An eventing mechanism for Swift
/// An object that has some tear-down logic
public protocol Disposable {
func dispose()
}
/// An event provides a mechanism for raising notifications, together with some
/// associated data. Multiple function handlers can be added, with each being invoked,
/// with the event data, when the event is raised.
public class Event<T> {
import Foundation
//
// XcodeKitDefines.h
// Xcode
//
// Copyright © 2016 Apple Inc. All rights reserved.
//
/** The build version of XcodeKit itself.
#!/usr/bin/env swift
import Foundation
protocol TestProtocol {
func foo(_ param: Int)
}
extension TestProtocol {
func foo() {
print("Default implementation")