you should install this plugin: https://plugins.jetbrains.com/plugin/12470-esp32 and of course setup eps-idf at your laptop/pc: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#step-1-install-prerequisites
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
import android.content.Context | |
import android.net.wifi.ScanResult | |
import android.net.wifi.WifiManager | |
import android.os.Build | |
import android.os.Handler | |
import android.util.Log | |
import androidx.lifecycle.LiveData | |
class WifiScanner(private val context: Context) : LiveData<List<ScanResult>>() { |
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 id.efishery.tmanlite.ui.listfeeder; | |
import android.animation.ValueAnimator; | |
import android.content.Context; | |
import android.support.v7.widget.CardView; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.DisplayMetrics; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewTreeObserver; |
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 class ServiceGenerator { | |
private static final String API_BASE_URL = "https://api.github.com/"; | |
private static Retrofit retrofit; | |
private static Gson mGson = new GsonBuilder() | |
.setDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'SSS'Z'") | |
.create(); |
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
50 Laravel Tricks in 50 Minutes by willroth | |
Published November 19, 2015 in Technology | |
https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
SetEnvIf Host www.yoursite.tld$ CI_ENV=production | |
SetEnvIf Host test.yoursite.tld$ CI_ENV=testing | |
SetEnvIf Host localhost$ CI_ENV=development | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [L] |
** README **
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
var app = angular.module('myApp', []); | |
// some code to retrieve data or route here | |
// use angular filter to render HTML object with angular template | |
app.filter('rawHtml', ['$sce', function ($sce) { | |
return function (val) { | |
return $sce.trustAsHtml(val); | |
}; | |
}]); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |