Skip to content

Instantly share code, notes, and snippets.

View dirkvranckaert's full-sized avatar

Dirk Vranckaert dirkvranckaert

  • APP3
  • Belgium
View GitHub Profile
#include <ESPAsyncTCP.h> // Manual installation from https://github.com/me-no-dev/ESPAsyncTCP
#include <AsyncHTTPRequest_Generic.h> // Docs available at https://github.com/khoih-prog/AsyncHTTPRequest_Generic
#include <ESP8266WiFi.h>
AsyncHTTPRequest request;
void setup() {
Serial.begin(9600);
WiFi.mode(WIFI_STA);
# Force use HDMI
hdmi_force_hotplug=1
# force a specific HDMI mode
hdmi_group=2
hdmi_mode=87
# custom display resolution
# /----------------- Width: 800px
# | /------------- Height: 480px
# | | /--------- Refresh: 60Hz
@dirkvranckaert
dirkvranckaert / KeyboardAndScrollViewController.m
Last active September 7, 2017 09:04
Keyboard and ScrollView behaviour example
@interface KeyboardAndScrollViewController ()
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *scrollViewBottomConstraint;
@end
@implementation KeyboardAndScrollViewController
- (void)viewDidLoad {
[super viewDidLoad];
@dirkvranckaert
dirkvranckaert / ProfileImageActivity.java
Created September 5, 2017 22:38
Fixing the profile image selection for Samsung devices
package be.uest.terva.activity;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Build;
@dirkvranckaert
dirkvranckaert / AndroidManifest.xml
Last active September 19, 2021 00:26
Taking a picture using a FileProvider
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
...
<provider