Skip to content

Instantly share code, notes, and snippets.

@jlnquere
jlnquere / UICollectionViewScroll.swift
Last active June 10, 2022 14:25
XCUITests: scroll UICollectionView to find one of it's offscreen UICollectionViewCell by id
// Thanks to @MonsieurDart for the idea :)
func scroll(collectionView:XCUIElement, toFindCellWithId identifier:String) -> XCUIElement? {
guard collectionView.elementType == .collectionView else {
fatalError("XCUIElement is not a collectionView.")
}
var reachedTheEnd = false
var allVisibleElements = [String]()
while !reachedTheEnd {
@jlnquere
jlnquere / deploy.php
Created February 19, 2014 15:57 — forked from oodavid/README.md
<?php
/**
* GIT DEPLOYMENT SCRIPT
*
* Used for automatically deploying websites via github or bitbucket, more deets here:
*
* https://gist.github.com/1809044
*/
// The commands
@jlnquere
jlnquere / .uncrustify.cfg
Created December 11, 2012 09:59
Configuration de base pour Uncrustify dans un environement objective-c ou objective-c++.
#
# Configuration de base pour Uncrustify dans un environement objective-c ou
# objective-c++.
#
# Plus d'informations ici: http://wp.me/p2VLPv-Js
#
# Travail basé sur https://gist.github.com/261662/ et
# https://github.com/octo-online/Xcode-formatter/blob/master/CodeFormatter/uncrustify_objective_c.cfg
#
# Julien Quéré - http://webd.fr