Skip to content

Instantly share code, notes, and snippets.

View michalciolek's full-sized avatar
🎯
Focusing

Michał Ciołek michalciolek

🎯
Focusing
View GitHub Profile
@michalciolek
michalciolek / SkippPass.js
Created September 14, 2022 13:24
SkippPass.js
setTimeout(function() {
Java.perform(function () {
var mmiszczyk_AuthenticationHelper_class = null;
try {
mmiszczyk_AuthenticationHelper_class = Java.use('mmiszczyk.verysecureapp.auth.AuthenticationHelper');
} catch (err) {
console.log('[-] mmiszczyk.verysecureapp.auth.AuthenticationHelper class not found. Skipping.');
mmiszczyk_AuthenticationHelper_class = null;
}
Git Fork
SourceTree
GitKraken
╭─michael@MacBook-Pro-3be1 ~
╰─$ cd .ssh
╭─michael@MacBook-Pro-3be1 ~/.ssh
╰─$ ls
total 52
@michalciolek
michalciolek / Plot.java
Created May 22, 2018 06:13
javafx plot sin
package sample;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.chart.LineChart;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
@RuntimePermissions
public class RecordActivity extends AppCompatActivity {
ProgressBar progressBar;
TextView status;
MediaRecorder mediaRecorder;
@Override
protected void onCreate(Bundle savedInstanceState) {
EditText titleQuery;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_find_book);
titleQuery = (EditText) findViewById(R.id.title_query);
}
@michalciolek
michalciolek / ResultActivity.java
Created May 7, 2015 08:26
Generowanie audiogramu
left = getIntent().getBundleExtra("bundle").getIntArray("left");
right = getIntent().getBundleExtra("bundle").getIntArray("right");
calculateResult();
ArrayList<Entry> leftVals = new ArrayList<>();
ArrayList<Entry> rightVals = new ArrayList<>();
for (int i = 0; i < left.length; i++) {
leftVals.add(new Entry(left[i], i));
@michalciolek
michalciolek / CommentsRequest.java
Created April 15, 2015 17:18
Żądanie pobrania komentarzy.
public class CommentsRequest extends RetrofitSpiceRequest<Comment.List, ApiInterface> {
public CommentsRequest() {
super(Comment.List.class, ApiInterface.class);
}
@Override
public Comment.List loadDataFromNetwork() {
return getService().comments();
}
}
@michalciolek
michalciolek / ApiService.java
Created April 15, 2015 17:15
Usługa do komunikacji z API.
public class ApiService extends RetrofitGsonSpiceService {
private final static String BASE_URL = "http://bookweb.ciolek.info/api/v1";
@Override
public void onCreate() {
super.onCreate();
addRetrofitInterface(ApiInterface.class);
}
@michalciolek
michalciolek / ApiInterface.java
Created April 15, 2015 17:14
Interfejs do komunikacji z API.
public interface ApiInterface {
@GET("/comments")
Comment.List comments();
@GET("/comments/{id}")
Comment comment(@Path("id") long id);
@GET("/comments")
Comment.List comments(@Query("q") String bookId);
@michalciolek
michalciolek / Book.java
Created April 15, 2015 09:50
Model książki
public class Book implements Serializable {
public String id;
public VolumeInfo volumeInfo;
public class Items implements Serializable {
public Items(ArrayList<Book> items) {
this.items = items;
}