Skip to content

Instantly share code, notes, and snippets.

View jorgecasariego's full-sized avatar
:bowtie:

Jorge Casariego jorgecasariego

:bowtie:
View GitHub Profile
@jorgecasariego
jorgecasariego / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

AngularJS BootStrap 3 Modal Dialogs

A dialog/modal service written in AngularJS, creates predefined easy to use dialogs (error,wait,notify,confirm,create) with Angular UI and Bootstrap 3

A Pen by Michael E Conroy on CodePen.

License.

@jorgecasariego
jorgecasariego / new_gist_file.md
Last active August 29, 2015 14:21
“Code Signing” Error in Xcode 6

Often in set ups that use version control the project.pbxproj can be merged in such a way that two CODE_SIGN_IDENTITY lines can be inserted. This seems to cause Xcode problems under certain situations (like command-line builds or archiving).

A tell-tail sign is lines similar to this in the project.pbxproj file (right-click on the project and select "Show Package Contents…")

"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Distribution"; Deleting one of these lines will let you select the correct value in Build Settings and the project should once again build correctly.

I have created simple script to help diagnose this issue it can be found here: https://gist.github.com/4339226

@jorgecasariego
jorgecasariego / new_gist_file_0
Created June 16, 2015 12:28
Test Swift online
http://swiftstub.com/
@jorgecasariego
jorgecasariego / new_gist_file.md
Created June 24, 2015 20:41
android-material-drawer-template
@jorgecasariego
jorgecasariego / gist:27d807c95da8156a044fa820877ab060
Created May 3, 2017 15:51
Google_Play_Android_Application_Privacy_Policy
Privacy policy
1. Introductory
1) Please read this Privacy Policy carefully. This Privacy Policy constitutes the integral part of the agreement between you (also, the 'User') and the individual mobile application developer (also, the 'Developer').
2) This Privacy Policy describes the Developer's privacy practices with regard to your Personal Data. Personal Data includes any data about you that specifically identifies you as an individual and information about your activities, such as information about your use of the mobile application created by the Developer (also, the 'Application'), when directly linked to personally identifiable information.
3) By using the Application, you accept this Privacy Policy and consent to the collection, storage, use, and disclosure of your Personal Data in accordance with this Privacy Policy and applicable legislation. You may not withdraw your consent and/or require removal of your Personal Data at any time.
2. Collection
Privacy policy
1. Introductory
1) Please read this Privacy Policy carefully. This Privacy Policy constitutes the integral part of the agreement between you (also, the 'User') and the individual mobile application developer (also, the 'Developer').
2) This Privacy Policy describes the Developer's privacy practices with regard to your Personal Data. Personal Data includes any data about you that specifically identifies you as an individual and information about your activities, such as information about your use of the mobile application created by the Developer (also, the 'Application'), when directly linked to personally identifiable information.
3) By using the Application, you accept this Privacy Policy and consent to the collection, storage, use, and disclosure of your Personal Data in accordance with this Privacy Policy and applicable legislation. You may not withdraw your consent and/or require removal of your Personal Data at any time.
2. Collection
@jorgecasariego
jorgecasariego / gist:37cda0cbaee1cea33ccd99a7876ec15e
Last active August 1, 2017 16:20
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git

git fetch upstream

@jorgecasariego
jorgecasariego / musicPlayer.md
Last active April 1, 2018 21:27
android-UniversalMusicPlayer

Universal Android Music Player Sample

This sample shows how to implement an audio media app that works across multiple form factors and provide a consistent user experience on Android phones, tablets, Android Auto, Android Wear and Cast devices.

Pre-requisites

    Android SDK v21
fun main(args: Array<String>) {
val newDevice = SmartPhone.Builder()
.manufacture("Foxconn")
.model("Pixel 3")
.screenSize("1080 x 2160")
.storage("128Gb")
.build()
}