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
/** | |
* Hooked.java | |
* <br><br> | |
* Controls custom hook information by easily helping you figure out what is what without recieving errors on the matter. | |
* | |
* @author Nijikokun <[email protected]> | |
*/ | |
public class Hooked { | |
public Hooked() { |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
class AudioRecordThread implements Runnable { | |
@Override | |
public void run() { | |
int bufferLength = 0; | |
int bufferSize; | |
short[] audioData; | |
int bufferReadResult; | |
try { | |
bufferSize = AudioRecord.getMinBufferSize(sampleAudioBitRate, |
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
task runChromeAppDebug(type: Exec) { | |
executable "bash" | |
args "--login", "-c", "google-chrome --load-and-launch-app=${projectDir}/${android.defaultConfig.applicationId}.android" | |
} | |
task copyChromeAppDebug(type: Copy) { | |
from "${buildDir}/outputs/apk/${project.name}-debug.apk" | |
into "${projectDir}/${android.defaultConfig.applicationId}.android/vendor/chromium/crx/" | |
} |
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 void sendRequests() { | |
new DataSender().execute(); | |
} | |
public static class DataSender extends AsyncTask<Void, Void, Void> { | |
@Override | |
protected Void doInBackground(Void... params) { | |
db=openOrCreateDatabase("StudentDB", Context.MODE_PRIVATE, null); | |
Cursor c=db.rawQuery("SELECT * FROM student", null); |
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 | |
java -Xms512M -Xmx1024M -XX:MaxPermSize=128M -jar spigot.jar |
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
// | |
// Created by Filip Prochazka (@filipproch) | |
// | |
#include <jni.h> | |
#ifdef __cplusplus | |
extern "C" | |
{ | |
#endif |
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
// AsrSessionOperator.kt | |
// nova metoda | |
fun setSensitivityLevel(newLevel: Float): Observable<CommandResponse> { | |
val bundle = Bundle() | |
bundle.putFloat(AsrControlCommand.EXTRA_SENSITIVITY, newLevel) | |
val cmd = AsrControlCommand(AsrControlCommand.CMD_UPDATE_SENSITIVITY_LEVEL, bundle) | |
return AsrServiceConnection.operator.sendAsrControlCommand(cmd) | |
} |
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 { | |
implementation 'com.google.dagger:dagger-android:2.x' | |
implementation 'com.google.dagger:dagger-android-support:2.x' // if you use the support libraries | |
annotationProcessor 'com.google.dagger:dagger-android-processor:2.x' | |
} |
OlderNewer