Skip to content

Instantly share code, notes, and snippets.

Avatar

Kimmo Lindholm kimmoli

View GitHub Profile
View cpuinfo
Processor : ARMv7 Processor rev 4 (v7l)
processor : 0
BogoMIPS : 13.53
processor : 1
BogoMIPS : 13.53
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x51
CPU architecture: 7
@kimmoli
kimmoli / webview.qml
Created Jun 8, 2015
[SailfishDevel] SilicaWebView
View webview.qml
Page {
id: page
SilicaWebView {
url: "https://www.messenger.com/login"
width: parent.width
height: parent.height / 2
}
}
@kimmoli
kimmoli / vkb.qml
Last active Aug 29, 2015
VKB visible
View vkb.qml
Page
{
property bool inputVisible: Qt.inputMethod.visible
onInputVisibleChanged: console.log("vis changed " + inputVisible);
TextArea
{
anchors.centerIn: parent
width: parent.width
focus: true
View tohid
dbus-monitor --system "type=signal, interface=org.freedesktop.DBus.Properties, member=PropertiesChanged" |
while read -r line;
do
if echo $line | grep "TOHID" > /dev/null
then
read -r idline
if echo $idline | grep "string" > /dev/null
then
echo $idline | cut -d "\"" -f 2
fi
View config.txt
cma_lwm=128
cma_hwm=384
cma_offline_start=64
lcd_rotate=2
dtoverlay=rpi-ft5406
@kimmoli
kimmoli / project.pro
Created Dec 19, 2015
noarch version from spec to QML
View project.pro
...
system(echo "\\\{\\\"version\\\":\\\"$${SPECVERSION}\\\"\\\}" > qml/version.json)
...
View jstimer.qml
import QtQuick 2.0
import Sailfish.Silica 1.0
Timer
{
id: thistimer
property var callback
property var delay
View repeatertest.qml
Column {
property var raw: ["apples", "oranges", "pears", "kissa", "koira", "ei", "vain", "hedelmiä", "ananas"]
Component.onCompleted:
{
for (var i=0 ; i<Math.min(3, raw.length) ; i++)
lm.append({ name: raw[i] })
}
ListModel
{
@kimmoli
kimmoli / jolladump.txt
Last active Jan 10, 2016
Jolla kmap dumped
View jolladump.txt
keymaps 0-2,4-5,8,12
keycode 1 = Escape Escape
alt keycode 1 = Meta_Escape
keycode 2 = one exclam
alt keycode 2 = Meta_one
keycode 3 = two at at nul nul Meta_two
keycode 4 = three numbersign
control keycode 4 = Escape
alt keycode 4 = Meta_three
keycode 5 = four dollar dollar Control_backslash
View CaptureView-1.diff
Apply this to /usr/share/jolla-camera/pages/capture/CaptureView.qml
EDIT: Setting this to 0, backend makes optimal selection for framerate
http://doc.qt.io/qt-5/qcameraviewfindersettings.html#setMaximumFrameRate
diff --git a/CaptureView.qml b/CaptureView.qml
index 3ee90bb..df03e68 100644
--- a/CaptureView.qml
+++ b/CaptureView.qml