Skip to content

Instantly share code, notes, and snippets.

View dio's full-sized avatar
💥

Dhi Aurrahman dio

💥
  • Bandung, Indonesia
View GitHub Profile
@dio
dio / bahan dan bumbu. cara olah
Created April 2, 2011 10:30
parsing raw detail
// bahan bumbu
QString detailRaw = "Bahan-bahan/bumbu-bumbu :\n\n150 gram beras, dicuci bersih 2 batang serai, dimemarkan 1 cm jahe, dimemarkan 1750 ml air 1 blok kaldu ayam 1/2 sendok teh garam Bahan kuah ayam kuning: 1 ekor ayam kampung, dibagi empat bagian 2 batang serai, dimemarkan 4 lembar daun jeruk, dibuang tulangnya 2 cm lengkuas, dimemarkan 2 lembar daun salam 21/2 sendok teh garam 1/2 sendok teh merica bubuk 1/2 sendok teh gula pasir 1.000 ml air Bumbu halus: 10 butir bawang merah 6 siung bawang putih 4 butir kemiri sangrai 1 cm jahe 1/2 sendok teh ketumbar 3 cm kunyit Bahan pelengkap: 100 gram kerupuk kanji 1 sendok makan bawang merah goreng 1 sendok makan seledri, diiris halus\n\n\n\n\nCara Pengolahan : 1. Masak beras, serai, dan jahe di dalam air dan kaldu blok sampai meresap dan kental. Sisihkan. 2. Kuah ayam. Tumis bumbu halus, daun salam, serai, lengkuas, dan daun salam sampai harum. Masukkan ayam. Aduk sampai berubah warna. Masukkan air. Masak sampai matang dan bumbu meresap ke ayam. 3.
{
"id": "239",
"title": "CUMI GORENG TELUR ASIN",
"raw_desc": "CUMI GORENG TELUR ASIN",
"html_desc": "<p>CUMI GORENG TELUR ASIN<\/p>",
"raw_detail": "CUMI GORENG TELUR ASINCara membuat:\n\nLumuri cumi dengan air jeruk lemon, minyak wijen, garam, dan merica bubuk. Diamkan 15 menit.\nGulingkan cumi satu per satu di bahan pelapis sampai terbalut rata sambil diangkat-angkat. \nGoreng dalam minyak yang dipanaskan di atas api sedang sampai kekuning-an. Sisihkan. \nSaus, panaskan margarin. Tumis bawang putih dan cabai merah keriting sampai harum. \nTambahkan kucai, saus tiram, merica bubuk, dan gula pasir. Aduk rata.\nMasukkan kuning telur asin. Aduk sampai berbutir. Tambahkan cumi goreng. Aduk sampai terbalut rata.\n\n(tips) Sesudah cumi dibalut, sebaiknya cumi langsung digoreng agar tidak keras\n&nbsp;\nUntuk 7 porsi\n&nbsp;",
"html_detail": "CUMI GORENG TELUR ASINCara membuat:\n\nLumuri cumi dengan air jeruk lemon, minyak wijen, garam, dan merica bubuk. Diamkan 15 menit.\nGulingkan cumi sa
desc: ""
porsi: "Untuk 6 porsi"
step - 0
step - 1
- "Tumis bawang putih dan bawang bombay sampai harum"
- "Tambahkan paprika merah dan paprika hijau"
- "Aduk sampai layu"
step - 2
- "Masukkan buntut"
- "Aduk sampai berubah warna"
void XQMessaging::CreateAndSendMessageL( int aType, TBool aEmbedded, QString aSubject, QStringList aAddressList, QString aBody ){
TUid serviceUid;
if (aType == 1)
serviceUid = KSenduiMtmSmsUid;
else if (aType == 2)
serviceUid = KSenduiMtmSmtpUid;
CMessageData* message = CMessageData::NewLC();
if (aSubject.length() != 0){
TBufC<256> subject(aSubject.utf16());
I share your sentiments about Indonesian literatue and look forward to having a conversation with you regarding the disseminationn of Indonesian literature through the internet -- a venture we intend to concentrate on in the next few years.
// checksum 0xa193 version 0x30001
/*
This file was generated by the Mobile Qt Application wizard of Qt Creator.
MainWindow is a convenience class containing mobile device specific code
such as screen orientation handling.
It is recommended not to modify this file, since newer versions of Qt Creator
may offer an updated version of it.
*/
#include "mainwindow.h"
@dio
dio / qmlview1
Created July 5, 2011 00:33
qmlviews: 1 vs. 2
// engine
QDeclarativeEngine engine;
QDeclarativeComponent component(&engine, QUrl::fromLocalFile("main.qml"));
QDeclarativeItem * item = qobject_cast<QDeclarativeItem * >(component.create());
// scene
QGraphicsScene scene;
scene.addItem(item);
nodester info initializing git repo for yeah3 into folder yeah3
nodester info cloning the repo git clone ec2-user@nodester.com:/node/hosted_apps/diorahman/2593-87dda904e2cd73b70b0da15cdedf4d06.git yeah3
nodester info clone complete
nodester info writing app data to config
fs.js:221
return binding.open(path, stringToFlags(flags), mode);
^
Error: EBADF, Bad file descriptor 'yeah3/.nodester.appconfig'
at Object.openSync (fs.js:221:18)
@dio
dio / errorlog
Created July 5, 2011 09:19
Error on creating new app
[~/Develop/lab/apps/nodester]$ nodester app init cumi
nodester info initializing git repo for cumi into folder cumi
nodester info cloning the repo git clone ec2-user@nodester.com:/node/hosted_apps/diorahman/2600-59bf266b2820c451f23e16edd28b72b4.git cumi
nodester info clone complete
nodester info writing app data to config
fs.js:221
return binding.open(path, stringToFlags(flags), mode);
^
Error: EBADF, Bad file descriptor 'cumi/.nodester.appconfig'
@dio
dio / fscreateWriteStream
Created July 7, 2011 10:55
fscreateWriteStream
var r = request({
method: 'GET'
, uri: root + imageSourceUrl
, headers: {'Authorization' : auth}
});
r.pipe(fs.createWriteStream('image'));