This file contains hidden or 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
%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) |
This file contains hidden or 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
LayoutInflater inflator = context.getLayoutInflater(); |
This file contains hidden or 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_group :development, :test do | |
gem "rspec-rails" | |
end | |
gem_group :test do | |
gem "factory_girl_rails" | |
gem "capybara" | |
gem "guard-rspec" | |
end |
This file contains hidden or 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
// 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() { |
This file contains hidden or 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
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/')) |
This file contains hidden or 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 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 { |
This file contains hidden or 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 Foundation | |
class RegistrationFlow: Flow { | |
let phoneNumber: String | |
var registerToken: String | |
var navigationController: UINavigationController? | |
var completion: (() -> Void)? | |