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
^(?!.*(Choreographer)).*$ |
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
// MARK: TextViewDelegate methods for hiding keyboard by tapping anywhere and restrincting 500 chars | |
extension UIViewController { | |
@objc func textViewDidBeginEditing(_ textView: UITextView) { | |
} | |
@objc func textViewDidEndEditing(_ textView: UITextView) { | |
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
@RequestMapping(value = "/change/text", method = RequestMethod.POST) | |
public OutputMessage changeText(@RequestBody InputMessage msg) { | |
String fileName = "/home/a/temp/writtenByJava.txt"; | |
System.out.println("Writing to file " + fileName); | |
writeToFileHelper(fileName, msg.getText()); | |
return new OutputMessage(msg.getFrom(), msg.getText() + " - this is response!", new Date().toString()); |
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
public static void main(String[] args) { | |
String[] cmd = new String[]{"/bin/sh", "/home/a/temp/notify.sh"}; | |
try { | |
Process pr = Runtime.getRuntime().exec(cmd); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
} |
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
// if localhost do not forget add http:// before url | |
package ru.redsys.event_manager_rea.configuration; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.config.annotation.CorsRegistry; | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | |
@Configuration |
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 ru.redsys.rea_conference.network; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.support.annotation.NonNull; | |
import android.support.v4.app.JobIntentService; | |
import android.util.Log; | |
import org.greenrobot.eventbus.EventBus; |
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 rubenpla.develop.privtmdbendlesslist.data.api | |
import retrofit2.Retrofit | |
import retrofit2.converter.gson.GsonConverterFactory | |
import retrofit2.http.GET | |
import retrofit2.http.Query | |
import rubenpla.develop.privtmdbendlesslist.data.model.MoviesResultsItem | |
interface TmdbApi { |
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 premiumapp.org.jtimer.dialogs; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.graphics.drawable.ColorDrawable; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.DialogFragment; | |
import android.view.Window; |
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
/* | |
* Licensed Materials - Property of IBM | |
* | |
* (C) COPYRIGHT IBM CORP. 2015 All Rights Reserved | |
* | |
* US Government Users Restricted Rights - Use, duplication or | |
* disclosure restricted by GSA ADP Schedule Contract with | |
* IBM Corp. | |
*/ |
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/bash | |
cd /home/dev/maxidroid/ | |
su -c '( | |
until java -Xms512m -Xmx1024m -jar maxidroid_asio*.jar --jar.name=`ls | grep maxidroid_asio` --app.started=`date "+%d.%m.%Y_at_%H:%M:%S"` ; do | |
echo "Application crashed with exit code $?. Respawning... " >&2 | |
sleep 5 | |
done |