Ducky Momo
- tool to query results from launchpad crawler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru qtbase-opensource-src-5.0.0-beta1/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp qtbase-opensource-src-5.0.0-beta1-hackeglfs/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | |
--- qtbase-opensource-src-5.0.0-beta1/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp 2012-08-28 21:40:54.000000000 +0200 | |
+++ qtbase-opensource-src-5.0.0-beta1-hackeglfs/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp 2012-10-06 14:50:22.748034778 +0200 | |
@@ -130,7 +130,20 @@ | |
QSurfaceFormat QEglFSHooks::surfaceFormatFor(const QSurfaceFormat &inputFormat) const | |
{ | |
- return inputFormat; | |
+ QSurfaceFormat newFormat = inputFormat; | |
+ QByteArray depthString = qgetenv("QT_QPA_EGLFS_DEPTH"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import com.canonical.Oxide 0.1 | |
WebView { | |
width: 800 | |
height: 600 | |
url: 'http://google.com' | |
context: WebContext { | |
userAgent: "Mozilla/5.0 (Ubuntu; Tablet) WebKit/537.21" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
for i in `find rootfs/ -type f`; do \ | |
if [ "$$i" = "rootfs//lib64/ld-linux-x86-64.so.2" ]; then continue; \ | |
else \ | |
for j in `ldd $$i | cut -d \( -f1 | cut -d \> -f2 | sed 's/[ \t]*//g'`; do \ | |
if [ ! "$$j" = "notadynamicexecutable" ] && [ ! "$$j" = "staticallylinked" ]; then \ | |
mkdir -p rootfs/`dirname $$j`; \ | |
cp -v -rfpL --remove-destination $$j rootfs/$$j; fi; \ | |
done; \ | |
fi \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- oxide-qt-1.5.5.orig/qt/core/browser/oxide_qt_browser_startup.cc | |
+++ oxide-qt-1.5.5/qt/core/browser/oxide_qt_browser_startup.cc | |
@@ -155,7 +155,7 @@ void BrowserStartup::EnsureChromiumStart | |
if (platform == QLatin1String("xcb")) { | |
supported_gl_impls |= oxide::SUPPORTED_GL_IMPL_DESKTOP_GL; | |
supported_gl_impls |= oxide::SUPPORTED_GL_IMPL_EGL_GLES2; | |
- } else if (platform.startsWith("ubuntu")) { | |
+ } else if (platform.startsWith("ubuntu") || platform.startsWith("egl")) { | |
supported_gl_impls |= oxide::SUPPORTED_GL_IMPL_EGL_GLES2; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fetch Oxide WebView repo | |
bzr branch lp:oxide | |
# install gclient | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=$PATH:`pwd`/depot_tools | |
# get Chromium source and dependencies (~7.8G) | |
cd oxide/chromium/ | |
gclient sync --gclientfile=../gclient.conf |
##遊戲玩法 輪流抽取「問事」事件牌, 對手玩家回應「問神/解籤」
- 成功 - 獲取資源 (例:『隨喜功德』)
- 失敗 - 上社會新聞, 失去特定資源 (例:『搬去南投貨櫃屋, 損失財產 30 萬』)
###遊戲道具: 筊杯一組、角色卡、事件牌、資源卡
###角色卡? 按照不同派別有技能加成 (感覺可以一次得罪所有宗教團體)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: phantomjs async-phantom.js | |
var async = require('async'), | |
links = [ | |
"http://google.com", | |
"http://yahoo.com", | |
"http://duckduckgo.com", | |
"http://bing.com", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* oauth.js - Obtain oauth_token from Launchpad.net using Casper.js | |
* Copyright (c) 2013, Ping-Hsun (penk) Chen <penk.chen@canonical.com> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* Usage: casperjs oauth.js <OTP> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import QtWebKit 3.0 | |
import QtWebKit.experimental 1.0 | |
import QtQuick.Window 2.0 | |
import Ubuntu.Components 0.1 | |
MainView { | |
width: Screen.width | |
height: Screen.height |