Skip to content

Instantly share code, notes, and snippets.

View viteinfinite's full-sized avatar

Simone Civetta viteinfinite

View GitHub Profile
@viteinfinite
viteinfinite / app.js
Created August 17, 2012 08:54
FIXED: Flame on! A beginner's guide to Ember.js
App.recentUsersController = Em.ArrayController.create({
content: [],
addUser: function(name) {
if ( this.contains(name) ) {
this.removeObject(name);
}
this.pushObject(name);
},
removeUser: function(event){
this.removeObject(event.context);
@viteinfinite
viteinfinite / XBImageGalleryLayout.m
Last active December 18, 2015 05:49
Implementation of XBImageGalleryLayout used in the blog post "À la (re)découverte de la UICollectionView"
//
// XBImageGalleryLayout.m
//
// Created by Simone Civetta on 4/24/13.
// Copyright (c) 2013 Xebia IT Architects. All rights reserved.
//
#import "XBImageGalleryLayout.h"
#import <UICollectionView/UICollectionView.h>
@viteinfinite
viteinfinite / RunTests.sh
Created September 22, 2013 01:33
RunTests.sh to be used with GHUnit-iOS in XCode 5 projects.
#!/bin/sh
# Kill simulator if running
killall -s "iPhone Simulator" &> /dev/null
if [ $? -eq 0 ]; then
killall -m -KILL "iPhone Simulator"
fi
# Remove Springboard daemon which may be pending
launchctl remove 'com.apple.iPhoneSimulator:com.apple.SpringBoard' &> /dev/null
@viteinfinite
viteinfinite / nsspain2014-slides.md
Last active April 26, 2016 06:28
NSSpain 2014 Slides
//
// PhotoDownloadManager.swift
// XebiaSki
//
// Created by Simone Civetta on 11/11/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import UIKit
//
// SkiResortTableRowController.swift
// XebiaSki
//
// Created by Simone Civetta on 28/11/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
//
// InterfaceController.swift
// XebiaSki WatchKit Extension
//
// Created by Simone Civetta on 03/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import Foundation
//
// DetailInterfaceController.swift
// XebiaSki
//
// Created by Simone Civetta on 02/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
//
// DetailInterfaceController.swift
// XebiaSki
//
// Created by Simone Civetta on 02/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
@viteinfinite
viteinfinite / Appfile
Last active February 27, 2016 23:47
Xebia's Blog Fastfile Example
# Definit le bundle identifier
app_identifier "fr.xebia.monAppli"
# Definit l'Apple ID du compte associé au compte de l'appli
apple_id "[email protected]"