Skip to content

Instantly share code, notes, and snippets.

View yomybaby's full-sized avatar

Jong Eun Lee yomybaby

View GitHub Profile
@yomybaby
yomybaby / post-merge
Last active August 29, 2015 14:07 — forked from hcurotta/post-merge
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi
@yomybaby
yomybaby / MediaModule.m
Created July 7, 2015 11:19
get exif data from Titanium Camera and photoGallery
- (void)imagePickerController:(UIImagePickerController *)picker_ didFinishPickingMediaWithInfo:(NSDictionary *)editingInfo
{
// ...
// ...
NSDictionary *metadataDictionary =
(NSDictionary *)[editingInfo valueForKey:UIImagePickerControllerMediaMetadata];
[dictionary setObject:metadataDictionary forKey:@"metadata"];
[self sendPickerSuccess:dictionary];
@yomybaby
yomybaby / README.md
Created September 18, 2015 12:47
Titanium : AttributedString in ListItem with link event.

Yes, you can do that in Titanium.

screenshot

@yomybaby
yomybaby / app.js
Created January 2, 2012 03:35 — forked from pec1985/app.js
FaceBook slide in views
// Create a new project and copy this code into app.js
// if you use this code, please give me credit :)
function JustAView(text){
var view = Ti.UI.createView({
backgroundColor:"#"+((1<<24)*Math.random()|0).toString(16),
width:200,
height:100
});
var label = Ti.UI.createLabel({
@yomybaby
yomybaby / TiViewProxy.h
Created July 2, 2012 09:32
titanium disable clipping option for iOS view
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiProxy.h"
#import "TiUIView.h"
#import "TiRect.h"
#import <pthread.h>
@yomybaby
yomybaby / ActionBarView.js
Created August 15, 2012 03:59 — forked from Mode54/ActionBarView.js
Action Bar Module for Titanium Mobile
/*
* Android API Guide
* http://developer.android.com/guide/topics/ui/actionbar.html
* Android Design Guide
* http://developer.android.com/design/patterns/actionbar.html
* Titanium Mobile will support someday
* https://jira.appcelerator.org/browse/TIMOB-2371
*/
var osName = Ti.Platform.osname,
isAndroid = osName==='android',
@yomybaby
yomybaby / README.md
Last active November 17, 2015 00:05
Titanium 시작할 때 알아야 할 내용들 (강좌 소재)
@yomybaby
yomybaby / LICENSE.md
Last active December 16, 2015 20:39 — forked from brandonb927/LICENSE.md
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004

Copyright (C) 2012 Brandon B. brandon@brandonbrown.io

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

#!/bin/bash
#
# Build and iPhone Simulator Helper Script
# Shazron Abdullah 2011
#
# WARN: - if your .xcodeproj name is not the same as your .app name,
# this won't work without modifications
# - you must run this script in where your .xcodeproj file is
PROJECTNAME=$1
@yomybaby
yomybaby / readme.md
Last active December 24, 2015 05:09
How to add a Alloy custome formFactor