Ideas for CSS support in Android
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
package test; | |
import android.view.View; | |
import android.widget.TextView; | |
import com.google.appinventor.components.annotations.DesignerComponent; | |
import com.google.appinventor.components.annotations.SimpleFunction; | |
import com.google.appinventor.components.annotations.SimpleObject; | |
import com.google.appinventor.components.common.ComponentCategory; | |
import com.google.appinventor.components.runtime.AndroidViewComponent; | |
import com.google.appinventor.components.runtime.ComponentContainer; |
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
#include <stdio.h> | |
int main() { | |
int n;scanf("%d", &n); | |
int arr[n]; | |
int i, j; | |
for(i=0;i<n;i++) | |
scanf("%d", &arr[i]); | |
int res[n]; |
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
val max = 17 | |
val numTypes = 4 | |
val types = listOf(2, 5, 6, 8) | |
fun main() { | |
val r = types.mapIndexed { i, t -> i to t } | |
.sortedByDescending { (i, t) -> t } | |
val f = mutableListOf<Int>() |
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
#define MAT(name, T, n, d) \ | |
vector<vector<T>> name(n, vector<T>(n, d)) | |
#define MAT2(name, T, n, m, d) \ | |
vector<vector<T>> name(n, vector<T>(m, d)) | |
#define DBG(e) \ | |
cout << #e << " = " << (e) |
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
package tk.pavi2410; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateEncodingException; |
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
import android.graphics.*; | |
import android.view.*; | |
import android.util.*; | |
round(n) { | |
return Math.round(n*100.0)/100.0; | |
} | |
WindowManager wm = (WindowManager) ctx.getSystemService("window"); | |
dm = new DisplayMetrics(); |
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
/* | |
LiquidCrystal Library - Hello World | |
Demonstrates the use a 16x2 LCD display. The LiquidCrystal | |
library works with all LCD displays that are compatible with the | |
Hitachi HD44780 driver. There are many of them out there, and you | |
can usually tell them by the 16-pin interface. | |
This sketch prints "Hello World!" to the LCD | |
and shows the time. |
http://play.inginf.units.it/#/level/1
\d+
http://play.inginf.units.it/#/level/2
(\w+)(\:\w+){5}
(\w+:){5}\w+
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
Press the black button😉 | |
<⚫> 👈🏻 |