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
// ==UserScript== | |
// @name Google+ Mute Keyboard Shortcut | |
// @namespace http://antimatter15.com/ | |
// @description Mute conversations in your stream by hitting "m" | |
// @include https://plus.google.com/* | |
// @include http://plus.google.com/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js | |
// @version 1.3 | |
// ==/UserScript== |
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
using System.IO; | |
using System.Text.RegularExpressions; | |
namespace AndroidAutoIncrementVersion | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
try |
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 com.example.androidnative; | |
import android.app.Activity; | |
import android.app.ActivityManager; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends Activity { | |
@Override |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My Chart</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<p class="my-chart" style="text-align:center"></p> |
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
dependencies { | |
compile project(':core') | |
// Parser for scanRecord byte array returned from | |
// android.bluetooth.BluetoothAdapter.LeScanCallback.onLeScan() | |
// This is only needed for pre-Lollipop devices. | |
// https://github.com/TakahikoKawasaki/nv-bluetooth | |
// Apache 2.0 | |
compile 'com.neovisionaries:nv-bluetooth:1.7' |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Add this as a debug manifest so the permissions won't be required by your production app --> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | |
</manifest> |
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
public class RainbowLightsActivity extends Activity { | |
private static final String TAG = RainbowLightsActivity.class.getSimpleName(); | |
private List<Gpio> buttons = new ArrayList<>(); | |
private Map<Color, Gpio> leds = new HashMap<>(); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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 | |
# Based on https://gist.github.com/johnjohndoe/5398030 | |
checkForAndroidDevice() { | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Android device seems to be missing." |
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 com.goeshow.barcodescanner.utils.objectReferenceMap; | |
import android.content.Context; | |
import android.support.v4.app.Fragment; | |
import java.util.HashMap; | |
/** | |
* Created by ekuivi on 8/24/16. | |
* |
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 android.app.Activity; | |
import android.support.annotation.Nullable; | |
import android.support.test.runner.lifecycle.ActivityLifecycleMonitorRegistry; | |
import java.util.Collection; | |
import static android.support.test.InstrumentationRegistry.getInstrumentation; | |
import static android.support.test.runner.lifecycle.Stage.RESUMED; | |
public final class CurrentActivityUtil { |
OlderNewer