Skip to content

Instantly share code, notes, and snippets.

View diorahman's full-sized avatar

Dhi Aurrahman diorahman

  • Cokelatia
  • Bandung
View GitHub Profile
@diorahman
diorahman / client.html
Created December 26, 2011 01:32
Ajax, jquery JSONP call to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');
@diorahman
diorahman / client.html
Created December 26, 2011 03:34
Ajax, call jQuery POST to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');
@diorahman
diorahman / sendok.cpp
Created December 29, 2011 04:17
Sendok
...
void Sendok::share(QString title, QString url)
{
#ifndef Q_WS_SIMULATOR
MDataUri dataUri;
dataUri.setMimeType("text/x-url");
dataUri.setTextData(url);
dataUri.setAttribute("title", title);
@diorahman
diorahman / response.xml
Created January 12, 2012 22:18
GTA-XML Test Request
HTTP/1.1 200 OK
Date: Thu, 12 Jan 2012 22:15:22 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP08 (build: SVNTag=JBPAPP_4_3_0_GA_CP08 date=201004202136)/JBossWeb-2.0
X-GTA-CBS-RESPONSE-REFERENCE: REF_D_013_287-1326406523910
X-GTA-STATUS-SUBREQUEST: OK
X-GTA-STATUS-GLOBAL: OK
Content-Language: en-US
X-GTA-CORRELATION-ID: t=132640652289868141
Connection: close
@diorahman
diorahman / list.xml
Created February 9, 2012 11:59
supported targets
<target>
<os>maemo5</os> <d>Maemo 5</d>
<qt>4_7_0_m1_0_2</qt> <d>Qt 4.7.0 with Mobility 1.0.2</d>
<qt>4_6_2_m1_0_1</qt> <d>Qt 4.6.2 with Mobility 1.0.1</d>
</target>
<target>
<os>meego_1_2_harmattan</os> <d>MeeGo 1.2 Harmattan</d>
<qt>4_7_4</qt> <d>Qt 4.7.4</d>
@diorahman
diorahman / params.json
Created February 22, 2012 15:14
harmattan params
var params = {
os: 'harmattan',
qt: '4_7_4',
token: '',
projectTempId: 'test',
app : {
name : "Campur Sari",
version: "0.0.1",
color : ['green', '#d1d2d3', '#f0f1f3'],
feedViewType : "List",
@diorahman
diorahman / ROADMAP.txt
Created February 22, 2012 15:51
ROADMAP OVERVIEW
TODO
1. Manage secure connection (through Google's AppSpot (https://appengine.google.com))
- (current) scenario
- By using the standard frameworks and provided api (http://code.google.com/appengine/docs/python/apis.html)
- redirecting request from web app (PHPServer) to application server (NodeServer)
- manage images (tentative)
- refs
- http://code.google.com/appengine/docs/python/gettingstartedpython27/
@diorahman
diorahman / process.txt
Created February 23, 2012 01:23
Process
#Login Process
1. Open IndexPage [Browser] <- [http] <- [PHPServer]
2. Serve 'login web widget' (Facebook, Twitter) [Browser] <- [http] <- [PHPServer][http]
3. Send user credentials (username, password) to service (Facebook, Twitter) [Browser] -> [https] -> [ServicesServer]
4. Receive valid access token [PHPServer] <- [https] <- [ServiceServer]
5. Send valid user access token (Facebook: access_token, Twitter: key/secret token pair) [PHPServer] -> [http] -> [LynxAppServer]
- params:
type : ServiceServer's name, i.e. facebook, twitter
token : User's valid access token from ServiceServer
6. Receive valid LynxUserToken [PHPServer] <- [http] <- [LynxAppServer]
@diorahman
diorahman / console.js
Created February 27, 2012 23:48
Silence
import QtQuick 1.1
import QtWebKit 1.0
import com.nokia.meego 1.0
Page {
id: root
tools: commonTools
WebView {
javaScriptWindowObjects: QtObject {
@diorahman
diorahman / lynx.js
Created March 2, 2012 08:30
Curl Order Lynx
curl -is -d 'params={"session": "123", "token":"HE7qkv8lGaK2Mht684m79bJkT3", "action":"joborders", "mode" : "dev", "params":{"app":{"os":"harmattan", "qt": "4_7_4", "name" : "Campur Sari", "version": "0.0.1", "color":["green", "#d1d2d3","#f0f1f3"], "feedViewType": "Grid", "feeds": "Gamasutra News=http://feeds.feedburner.com/GamasutraNews, Gamasutra Feature Articles=http://feeds.feedburner.com/GamasutraFeatureArticles";}}}' "localhost:8080/send/action"