View RegistrationFlow.swift
import Foundation
class RegistrationFlow: Flow {
let phoneNumber: String
var registerToken: String
var navigationController: UINavigationController?
var completion: (() -> Void)?
View banners-sample.json
/**
Примеры возможных урлов
darplay://video/content?id=xxx&type=video&autoplay=1 <- Автопроигрывание видео
darplay://video/content?id=xxx&type=compilation&video_id=xxx&autoplay=1 <- Автопроигрывание второго сезона, третьей серии
darplay://video/selection?id=xxx
darplay://music/selection?id=xxx
darplay://music/album?id=xxx
darplay://music/artist?id=xxx
View UIApplication+topViewController.swift
import Foundation
import UIKit
extension UIApplication {
class func topViewController(base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController? {
if let nav = base as? UINavigationController {
return topViewController(base: nav.visibleViewController)
}
if let tab = base as? UITabBarController {
View gulpfile.js
var gulp = require('gulp');
var gutil = require('gulp-util');
var cjsx = require('gulp-cjsx');
var browserify = require('gulp-browserify');
var rename = require('gulp-rename');
gulp.task('dist', function(){
gulp.src('./src/**/*.cjsx')
.pipe(cjsx({bare: true}).on('error', gutil.log))
.pipe(gulp.dest('./dist/'))
View BY8001.cpp
// BY8001.cpp, BY8001 Mp3 Player Function Library
// Date: June 2015
// Author: borland of Arduino forum
// No affiliation with Balway Electronics Technology or Shenzhen Electronics Technology Ltd.
// Released in public domain
#include "Arduino.h"
#include "BY8001.h"
BY8001::BY8001() {
View rails4_tdd_template.rb
gem_group :development, :test do
gem "rspec-rails"
end
gem_group :test do
gem "factory_girl_rails"
gem "capybara"
gem "guard-rspec"
end
View gist:8806620
LayoutInflater inflator = context.getLayoutInflater();
View gist:3881005
%a - The abbreviated weekday name (``Sun'')
%A - The full weekday name (``Sunday'')
%b - The abbreviated month name (``Jan'')
%B - The full month name (``January'')
%c - The preferred local date and time representation
%d - Day of the month (01..31)
%H - Hour of the day, 24-hour clock (00..23)
%I - Hour of the day, 12-hour clock (01..12)
%j - Day of the year (001..366)
%m - Month of the year (01..12)