- Integrate the same concept as Spotify Apps, but a bit more flexible (not only Apps, but more of a plugin-system)
- HTML5+JavaScript
- QWebkit View inside Tomahawk
- Can have an entry in the TreeView on the left side in "Apps -> " and declare subentries
- Add addtional functionality such as: ** Custom sharing ** Charts
(Client == Process talking to the Tomahawk instance)
- Client requests auth via GET /2/access/request_auth
- Client indicates that it requires Authorization in the running Tomahawk instance and provides it UUID to the User
- User sees authorization request in JobView and accepts it (for headless instances:
tomahawk --grant-api-access <UUID>
- Tomahawk indicates granted access to the client / Client polls if it has been granted access.
- Tomahawk stores the UUID and some additional information (e.g. client name) in its DB
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 --git a/src/shared/CLucene/LuceneThreads.h b/src/shared/CLucene/LuceneThreads.h | |
index 97072ee..297cdef 100644 | |
--- a/src/shared/CLucene/LuceneThreads.h | |
+++ b/src/shared/CLucene/LuceneThreads.h | |
@@ -7,6 +7,9 @@ | |
#ifndef _LuceneThreads_h | |
#define _LuceneThreads_h | |
+#if defined(_CL_HAVE_PTHREAD) | |
+ #include <pthread.h> |
Dashing widget to display a Jenkins build status and build progress
The widget is based on the meter-widget which is default in the Dashing installation
The widget can also see the progress of a "pre-build", i.e if you have a job triggering the actual build you want to define, you can configure this job in the jenkins_build.rb as a prebuild.
For more information, please see Coding Like a tosser
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
/* To enable changing tabs by using the mouse wheel, | |
* enter this code into the browser console (Ctrl+Shift+J) */ | |
var onTabWheel = function(ev) { | |
if (ev.deltaMode == 1 /* DOM_DELTA_LINE */) { | |
var idx = gBrowser.tabContainer.getIndexOfItem(gBrowser.selectedTab); | |
var direction = ev.deltaY > 0 ? 1 : -1; | |
gBrowser.selectTabAtIndex((idx + direction) % gBrowser.tabs.length); | |
} | |
} |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"plugin" |
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
#!/bin/sh | |
set -x | |
# adb shell pm list packages -d | |
# adb shell pm list packages | |
adb shell pm uninstall -k --user 0 com.sonymobile.entrance | |
adb shell pm uninstall -k --user 0 com.sonymobile.xperiatransfermobile | |
adb shell pm uninstall -k --user 0 com.sonymobile.phoneusage | |
adb shell pm uninstall -k --user 0 com.sonymobile.googleanalyticsproxy |
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
# This method finds related articles using Jaccard index (optimized for PostgreSQL). | |
# More info: http://en.wikipedia.org/wiki/Jaccard_index | |
class Article < ActiveRecord::Base | |
def related(limit=10) | |
Article.find_by_sql(%Q{ | |
SELECT | |
a.*, | |
( SELECT array_agg(t.name) FROM taggings tg, tags t |
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
#!/bin/bash | |
# Per-repo installation | |
# 1. Place this file in `.git/hooks/pre-push` | |
# 2. `chmod +x` it | |
clippy=' | |
_________________________________________ | |
/ It looks like youre trying to force \ | |
| push on master... | |
OlderNewer