This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PODS: | |
- CocoaAsyncSocket (7.6.4) | |
- DACircularProgress (2.3.1) | |
- dsBridge (3.0.6) | |
- EZAudio (1.1.5): | |
- EZAudio/Full (= 1.1.5) | |
- EZAudio/Core (1.1.5) | |
- EZAudio/Full (1.1.5): | |
- EZAudio/Core | |
- TPCircularBuffer (= 1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Copyable { | |
func copy<V1>(_ keypath1: WritableKeyPath<Self, V1>, _ value1: V1) -> Self | |
func copy<V1, V2>(_ keypath1: WritableKeyPath<Self, V1>, _ value1: V1, _ keypath2: WritableKeyPath<Self, V2>, _ value2: V2) -> Self | |
func copy<V1, V2, V3>(_ keypath1: WritableKeyPath<Self, V1>, _ value1: V1, | |
_ keypath2: WritableKeyPath<Self, V2>, _ value2: V2, | |
_ keypath3: WritableKeyPath<Self, V3>, _ value3: V3) -> Self | |
func copy<V1>(_ copiedValue: CopiedValue<Self, V1>) -> Self | |
func copy<V1, V2>(_ copiedValue: CopiedValue<Self, V1>, _ copiedValue2: CopiedValue<Self, V2>) -> Self | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ipsum = """ | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dui libero, vehicula non mauris ac, bibendum porta sem. Vestibulum id mauris sit amet elit venenatis auctor id et ante. Praesent laoreet feugiat neque quis maximus. Mauris ac dignissim nibh. Morbi aliquam lacus dignissim, tempus urna interdum, bibendum elit. Integer iaculis non tortor a pretium. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tellus ipsum, iaculis euismod euismod non, porttitor eget justo. Fusce lacinia vestibulum lectus molestie molestie. Maecenas in ornare ipsum. Etiam suscipit convallis dapibus. Maecenas bibendum ornare risus et porta. In tortor lorem, porttitor quis dignissim sed, pharetra non sem. | |
Curabitur sapien sapien, porta a dolor vitae, commodo laoreet ligula. Etiam placerat varius erat, sit amet finibus ligula. Mauris ullamcorper lectus sed nulla egestas, in vestibulum ex placerat. Maecenas at ligula ac justo pharetra sagittis volutpat eget sem. Nam mattis vehicula mauris, vel commodo leo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Dip | |
// | |
// Copyright (c) 2015 Olivier Halligon <olivier@halligon.net> | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Async.swift | |
// | |
// Used as: Async().delay(2).onBackground({ ... }).onMainThread({ ... }).start() | |
// | |
// Created by Arasthel on 22/04/15. | |
// Copyright (c) 2015 Arasthel. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Handler; | |
import android.os.Looper; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.FutureTask; | |
/** | |
* Created by Arasthel on 08/07/14. | |
*/ | |
public class AsyncJob<JobResult> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GetImagesTask extends AsyncTask<Long, Bitmap, Void>{ | |
@Override | |
protected ArrayList<Bitmap> doInBackground(Long... id) { | |
long projectId = id[0]; | |
Project project = getProject(projectId); | |
ArrayList<Bitmap> i = new ArrayList<Bitmap>(); | |
File[] files = MediaHelper.getProjectFilenames(project.getImagePath()); | |
if(files != null && files.length > 0){ | |
for(File aFile : files){ | |
Bitmap bitmap = MediaHelper.getScaledImage(aFile, screenSize.y / 2, screenSize.x / 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arasthel.wfspain.views; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Point; | |
import android.util.AttributeSet; | |
import android.util.DisplayMetrics; | |
import android.util.Log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomAdapter extends ArrayAdapter<Algo> { | |
// Indice en la lista del item seleccionado | |
private int selected = -1; | |
public View getView(final int position, ...) { | |
convertView.setOnClickListener(new OnClickListener() { | |
@Override |