https://developer.apple.com/wwdc/schedule/#/
https://developer.apple.com/videos/wwdc2016/
Interesting videos:
| class ExpressionValidator < ActiveModel::EachValidator | |
| def validate_each(record, attribute, value) | |
| begin | |
| Dentaku(value) | |
| rescue Exception => e | |
| record.errors[attribute] << (options[:message] || e.message) | |
| end | |
| end | |
| end |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Open App</title> | |
| <!-- | |
| URL Params: | |
| customSchemeURL: Your custom scheme app |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| #config/initializers/carrierwave.rb | |
| module CarrierWave | |
| module MiniMagick | |
| # Rotates the image based on the EXIF Orientation | |
| def exif_rotation | |
| manipulate! do |img| | |
| img.auto_orient | |
| img = yield(img) if block_given? | |
| img | |
| end |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| gem 'thin' | |
| gem 'sevenhelpers', git: 'https://github.com/sevenview/sevenhelpers.git' | |
| #gem_group :assets do | |
| # gem 'zurb-foundation', '~>4.0.0' | |
| #end | |
| gem_group :test, :development, :staging do | |
| gem 'factory_girl_rails', '~> 4.2' | |
| gem 'ffaker' |
| function whichTransitionEvent(){ | |
| var t; | |
| var el = document.createElement('fakeelement'); | |
| var transitions = { | |
| 'transition':'transitionend', | |
| 'MSTransition':'msTransitionEnd', | |
| 'MozTransition':'transitionend', | |
| 'WebkitTransition':'webkitTransitionEnd' | |
| } |