I hereby claim:
- I am imjn on github.
- I am imjn (https://keybase.io/imjn) on keybase.
- I have a public key ASA1lICOykwqpmFSsGbRKHyqiqONNuBAi6vBQRzz7MBB9wo
To claim this, I am signing this object:
| name: Swift Package Dependency Check | |
| on: | |
| schedule: | |
| - cron: '0 8 * * 1' | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| permissions: |
I hereby claim:
To claim this, I am signing this object:
| function scroll_fadein(){ | |
| jQuery('.fadein').each(function(){ | |
| var elemPos = jQuery(this).offset().top; | |
| var scroll = jQuery(window).scrollTop(); | |
| var windowHeight = jQuery(window).height(); | |
| if (scroll > elemPos - windowHeight + 60){ | |
| jQuery(this).addClass('scrollin'); | |
| } | |
| }); | |
| } |
| add_action('rest_api_init', 'register_rest_images' ); | |
| function register_rest_images(){ | |
| register_rest_field( array('post'), | |
| 'fimg_url', | |
| array( |
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
| import Foundation | |
| import UIKit | |
| import FirebaseStorage | |
| struct StorageService { | |
| // provide method for uploading images | |
| static func uploadImage(_ image: UIImage, at reference: StorageReference, completion: @escaping (URL?) -> Void) { | |
| guard let imageData = UIImageJPEGRepresentation(image, 0.5) else { | |
| return completion(nil) | |
| } |
| cell.postImage.af_setImage( | |
| withURL: URL(string: post.haiku)!, | |
| placeholderImage: PostCellView.defaultImage, | |
| imageTransition: .curlUp(0.7) | |
| ) |
| cell.postImage.af_setImage( | |
| withURL: URL(string: post.haiku)!, | |
| placeholderImage: PostCellView.defaultImage, | |
| imageTransition: .curlUp(0.7) | |
| ) |
| function slideSwiper(index) { | |
| var w = $(window).width(); | |
| var x = 768; | |
| if (w < x) { | |
| swiper.slideTo(index); | |
| } else { | |
| swiper.slideTo(index+2); | |
| } | |
| } |