This file contains hidden or 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 Toybox.Lang; | |
import Toybox.WatchUi; | |
class TouchAwareBehaviorDelegate extends WatchUi.BehaviorDelegate { | |
private var isTouchDisabled as Boolean = false; | |
enum Action {Select, Back, Menu} | |
private var action as Action?; |
This file contains hidden or 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 com.fletech.android.preference; | |
import android.content.Context; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.preference.Preference; | |
import android.util.AttributeSet; | |
/* | |
Author: Gavriel Fleischer <[email protected]> |
This file contains hidden or 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 | |
// Credits: http://stackoverflow.com/a/24683083/351947 | |
import ( | |
"encoding/binary" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"unicode/utf16" |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'colorize' | |
require 'optparse' | |
class LOLCat | |
def initialize options = {} | |
@adb_args = options[:adb_args] || [] | |
@tagspecs = options[:tagspecs] || [] | |
@whitelist = options[:processes] || [] | |
@processes = Hash.new |
This file contains hidden or 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 | |
PACKAGE=$1 | |
APPPID=`adb -d shell ps | grep "${PACKAGE}" | cut -c10-15 | sed -e 's/ //g'` | |
adb -d logcat -v long \ | |
| tr -d '\r' | sed -e '/^\[.*\]/ {N; s/\n/ /}' | grep -v '^$' \ | |
| grep " ${APPPID}:" |