Skip to content

Instantly share code, notes, and snippets.

View dodyw's full-sized avatar
🎯
Focusing

Dody RW dodyw

🎯
Focusing
View GitHub Profile
@dodyw
dodyw / app.js
Created January 20, 2012 13:38 — forked from dawsontoth/app.js
Rate my app in Appcelerator Titanium Mobile
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {
@dodyw
dodyw / php.js
Created January 28, 2012 00:42
wpapp 1.1 fix for mappress
function str_replace (search, replace, subject, count) {
// Replaces all occurrences of search in haystack with replace
//
// version: 1109.2015
// discuss at: http://phpjs.org/functions/str_replace
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + improved by: Gabriel Paderni
// + improved by: Philip Peterson
// + improved by: Simon Willison (http://simonwillison.net)
// + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
@dodyw
dodyw / map.php
Created January 28, 2012 01:49
combining geocode and infowindow
<?php
$address = "Sutorejo Utara, Surabaya, Indonesia";
$address = urlencode($address);
$url = "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false";
$raw = file_get_contents($url);
$data = json_decode($raw);
$lat = $data->results[0]->geometry->location->lat;
$lng = $data->results[0]->geometry->location->lng;
@dodyw
dodyw / detail_link.html
Created January 30, 2012 02:16
indexu deluxe google map v3 integration
254348 http://www.artron.net/ 雅昌艺术网 提供古玩拍卖资讯及古玩论坛。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.xuancaoyuan.com/ 萱草园 介绍如何鉴定历代官窑瓷器,并提供照片资料。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.manyart.com/ 博雅艺术网 提供艺术品资讯、拍卖、交易,汇艺术家交流、知识、学习等内容。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.chinajdsj.com/ 中国世家鉴定收藏网 提供的文物鉴定、古玩鉴定、文物修复、培训咨询服务。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.m6789.com/ 中国文物之门 提供收藏资讯、鉴定论坛、古玩行情、楚宬书画、楚宬古玩、真伪标本库等内容。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.sssc.cn/ 盛世收藏 古董、古玩的收藏、鉴定、交流、交易论坛。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.cguwan.com/ 中国古玩网 古玩交易,古玩论坛,古玩欣赏,古玩鉴定。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.artwork.net.cn/ 中国艺品网 展示以国画、书法为主的中国艺术品,为爱好者、收藏者提供一个艺术品鉴、艺术交流的平台。 Top/World/Chinese_Simplified/休闲/古玩
254348 http://www.gg-art.com/ 今古博达网 古文物的鉴定资讯,艺术家和藏品介绍,拍卖活动等。 Top/World/Chinese_Simplified/休闲/古玩
254327 http://www.chinapet.net/ 中国宠物网 提供宠物论坛、新闻、供求信息、商城等内容。 Top/World/Chinese_Simplified/休闲/宠物
{
"query": {
"count": 6,
"created": "2012-02-01T02:54:13Z",
"lang": "en-US",
"results": {
"item": [
{
"title": "Frontpage Slideshow - Uber slideshow system",
"link": "http://demo.joomlaworks.gr/extensions/49-frontpage-slideshow-uber-slideshow-system",
269259 http://www.gittigidiyor.com/ Gittigidiyor.com Çeşitli kategorilerde farklı satıcıların alım ve satım işlemi yapabildiği alışveriş sitesi. Top/World/Türkçe/Alışveriş/Açık_Artırma
269259 http://www.superalsat.com/ Superalsat.com Çeşitli kategorilerde ikinci el ürünlerin yeraldığı satış ve müzayede sitesinde SMS ile uyarı seçeneği var. Top/World/Türkçe/Alışveriş/Açık_Artırma
269259 http://www.mezatsalonu.net/ Mezat Salonu İkinci el ve sıfır ürünler kullanıcılar arasında açık artırma veya eksiltme yöntemi ile satılmaktadır. Top/World/Türkçe/Alışveriş/Açık_Artırma
269259 http://www.evdefazla.com/ EvdeFazla Çeşitli kategorilerde açık artırma ile alım ve satım. Top/World/Türkçe/Alışveriş/Açık_Artırma
269259 http://www.satayim.com/ Satayim.com Açık artırma ve ikinci el alışveriş sitesi. Top/World/Türkçe/Alışveriş/Açık_Artırma
@dodyw
dodyw / modify_form.html
Created February 6, 2012 09:11
get listing types (indexu deluxe)
<%include file="header.html"
title=$smarty.const.PT_MODIFY_URL
meta_keywords=""
meta_description=""
%>
<!-- mod: retrieve listing type from database -->
<%php%>
global $dbConn;
@dodyw
dodyw / modify_form.html
Created February 6, 2012 09:22
Part 1: retrieve listing type from database
<!-- mod: retrieve listing type from database -->
<%php%>
global $dbConn;
$id = $_GET['id'];
// premium sponsored
$query = "select * from idx_paid_listing where link_id = '$id'";
$row2 = $dbConn->FetchOne($query);
@dodyw
dodyw / modify_form.html
Created February 6, 2012 09:23
Part 2: how to use it
<!-- this is how to call the listing type from mod above -->
<%if $status_basic%>
Basic Listing
<%/if%>
<%if $status_premium%>
Premium Listing
<%/if%>
<%if $status_sponsored%>
Sponsored Listing
<%/if%>