Skip to content

Instantly share code, notes, and snippets.

View loucimj's full-sized avatar

Javier Loucim loucimj

  • Vicente López, Buenos Aires, Argentina.
View GitHub Profile
@loucimj
loucimj / .zshrc
Last active November 17, 2020 18:09
export TERM=xterm-256color
source /Users/jloucim/workspaces/olivierverdier/zsh-git-prompt/zshrc.sh
#PROMPT='%B%m%~%b$(git_super_status) %# '
PROMPT='%~%b$(git_super_status) %# '
#export PS1="\[\e[1;30m\]\W\[\e[m\] \\$ "
alias ll='ls -lG'
export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme
@loucimj
loucimj / playground.swift
Last active September 24, 2020 18:10
tracking
import UIKit
var str = "Hello, playground"
class Action {
var id: String = ""
var eventData: Dictionary<String,Any> = [:]
var link: String = ""
}
@loucimj
loucimj / .bash_profile
Last active May 23, 2019 19:31
.bash_profile
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Presenter/MLCQLListingPresenter.m
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Presenter/MLCQLListingPresenter.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLListingPresenterProtocol.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLListingViewProtocol.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLReusableCell.swift
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/View
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/View/MLCQLListingViewController.xib
.//mobile-ios/Pods/MLClassifiedsQuoteListing
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Presenter/MLCQLListingPresenter.m
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Presenter/MLCQLListingPresenter.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLListingPresenterProtocol.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLListingViewProtocol.h
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/Protocol/MLCQLReusableCell.swift
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/View
.//mobile-ios/Pods/MLClassifiedsQuoteListing/LibraryComponents/Classes/Implementation/Listing/View/MLCQLListingViewController.xib
.//mobile-ios/Pods/MLClassifiedsQuoteListing
@loucimj
loucimj / UIView+GlowBackground.swift
Created September 9, 2017 03:14
UIView+GlowBackground.swift
//
// UIView+GlowBackground.swift
// GlowBackgroundView
//
// Created by Javier Loucim on 9/8/17.
// Copyright © 2017 Qeeptouch. All rights reserved.
//
import Foundation
import UIKit
@loucimj
loucimj / TicketShort+Diffable.swift
Created August 7, 2017 15:12
Customizing structs to use Diffable
extension TicketShort: Diffable {
var diffIdentifier: String {
return id
}
static func ==(lhs: TicketShort, rhs: TicketShort) -> Bool {
return lhs.id == rhs.id
}
@loucimj
loucimj / MessagesViewController.swift
Created August 7, 2017 15:11
Using DiffableBox with ListAdapterDataSource
extension MessagesViewController: ListAdapterDataSource {
func objects(for listAdapter: ListAdapter) -> [ListDiffable] {
var objects:Array<ListDiffable> = Array<ListDiffable>()
for item in data {
switch item {
case is String:
objects.append(item as! ListDiffable)
case is TicketShort:
objects.append((item as! TicketShort).diffable())
@loucimj
loucimj / SectionController.swift
Created August 7, 2017 15:09
SectionController using DiffableBox
//
// TicketSectionController.swift
//
// Created by Javier Loucim on 8/5/17.
// Copyright © 2017 Javier Loucim. All rights reserved.
//
import Foundation
import UIKit
import IGListKit
@loucimj
loucimj / Diffable.swift
Last active April 12, 2018 16:38
Diffable workaround for structs with IGListKit
//
// Diffable.swift
//
// Created by danielgalasko on 8/5/17.
//
import Foundation
import IGListKit
import Foundation
import UIKit
extension String {
//MARK: - Localized
var localized: String {
return NSLocalizedString(self, tableName: "Main", bundle: Bundle.main, value: "", comment: "")