Skip to content

Instantly share code, notes, and snippets.

View yomybaby's full-sized avatar

Jong Eun Lee yomybaby

View GitHub Profile
@yomybaby
yomybaby / README.md
Created May 3, 2016 10:05 — forked from nuno/README.md
Titanium TSS for Transparent NavigationBar / Shadow on iOS

Creating a transparent NavigationBar using Titanium Style Sheets

Appcelerator Titanium offers many ways to style the navigation bar for iOS apps, from changing out the title view all together, or just using simple colors. However, one of the most frequent requests I hear is how to make a truly transparent NavigationBar. This tutorial will cover that.

Getting started

Lets start with a pretty simple window style in the app.tss. This will ensure that the window style is applied globally.

Note: This can be used in a specific controller *.tss file if you only want this effect on a particular window.

@yomybaby
yomybaby / path.js
Created January 29, 2016 02:41
path module for Titanium Alloy(base on path of Nodejs)
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 furnished to do so, subject to the
// following conditions:
//
@yomybaby
yomybaby / README.md
Last active November 17, 2015 00:05
Titanium 시작할 때 알아야 할 내용들 (강좌 소재)
@yomybaby
yomybaby / README.md
Last active March 1, 2016 11:32
TiNy CLI auto-competition script

This i a TiNy CLI auto-competition bash script. I'm not sure this code works on Windows and Linux.

How to use

Download tn_completion.bash. Copy this file to your home directory, and add this to your .bashrc file:

source ~/tn_completion.bash
@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 / 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 / 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 / README.md
Last active March 1, 2016 12:20
iOS7 Colors CommonJS module.Color code from http://codepen.io/ChrisNager/pen/qjbdt I had a test for Titanium Mobile only. But you can use this for any platform supporting hex color code.
// Use to clear all cookies from webViews
// - Very useful when logging in users via third party webView login forms.
// Kosso
// October 2012
/*
Usage:
var cookiejar = require('com.hashpan.cookiedroid');
cookiejar.clearCookies();
# 모르는것
# archetype, post_serializer
# incase net/http is not required
require "net/http"
require "uri"
require "json"
# ...?
require_dependency 'rate_limiter'