Skip to content

Instantly share code, notes, and snippets.

@40
40 / gist:5321440
Created April 5, 2013 18:18
send email bb10 cascades qml
InvokeActionItem {
title: qsTr("Email")
query {
invokeTargetId: "sys.pim.uib.email.hybridcomposer"
invokeActionId: "bb.action.SENDEMAIL"
uri: "mailto:someemail@email.com?subject=Hey!&body=w00tw00t"
}
}
@40
40 / gist:5306182
Created April 3, 2013 22:48
Small Business - "the heart of the American economy."
10. Small businesses make up more than 99.7% of all employers.
9. Small businesses create more than 50 percent of the nonfarm private gross domestic product (GDP).
8. Small patenting firms produce 13 to 14 times more patents per employee than large patenting firms.
7. The 22.9 million small businesses in the United States are located in virtually every neighborhood.
6. Small businesses employ about 50 percent of all private sector workers.
@40
40 / gist:5259304
Created March 28, 2013 00:02
BB10 User Agent Detection php & js
// php
if(preg_match('/BB10|/i', $_SERVER['HTTP_USER_AGENT'])) {
echo 'You\'re on BlackBerry 10!';
}
// js
if(navigator.userAgent.match(/BB10/i)){
alert('BlackBerry 10!!');
@40
40 / gist:5252342
Created March 27, 2013 07:07
go to last line of listview - bb10 cascades
how do i obtain the number of elements from dataModel?
It depends on dataModel type which you are using, consult the docs of corresponding classes.
For ArrayDataModel and GroupDataModel:
var n = dataModel.size() // or dataModel.childCount(0) - number of children in first section
indexPath is an array where the first number is section and the second one is row in section.
Something like this should work:
@40
40 / Saving Instructions
Created March 21, 2013 16:23
Save text BB10
SAVING
TO SAVE
1. You need to add an objectName to the field you want to save
i.e. a TextField would look something like this
TextField{
id: targetWeightNumber
@40
40 / Saving Instructions
Created March 21, 2013 16:21
Save text BB10
SAVING
TO SAVE
1. You need to add an objectName to the field you want to save
i.e. a TextField would look something like this
TextField{
id: targetWeightNumber
@40
40 / Saving Instructions
Created March 21, 2013 16:21
Save text BB10
SAVING
TO SAVE
1. You need to add an objectName to the field you want to save
i.e. a TextField would look something like this
TextField{
id: targetWeightNumber
@40
40 / gist:5165303
Created March 14, 2013 21:10
YouTube JavaScript Player API Reference
http://youtu.be/3MFn7ptHQG0
@40
40 / gist:5150511
Created March 13, 2013 09:24
progress bar my
http://jsfiddle.net/2a5S7/7/
@40
40 / gist:5145739
Created March 12, 2013 18:47
sms code bb10
http://www.zvjer.com/blog/?p=501