- IETF communicaion protocols: RTCWEB, JSEP
- W3C API standards: WebRTC, Media Capture and Streams
- Media and communication stach: libjingle, VP8, OPUS
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
-module(listprac). | |
-export([product/1, maximum/1, productT/1, maximumT/1]). | |
product([]) -> 1; | |
product([X|Xs]) -> X*product(Xs). | |
productT([], S) -> S; | |
productT([X|Xs], S) -> productT(Xs, X*S). | |
productT(X) -> productT(X, 1). |
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
public static int parse(String str, int fallback) { | |
try { | |
return Integer.parseInt(str); | |
} catch (NumberFormatException e) { | |
return fallback; | |
} | |
} |
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
private InverseBindingListener mboundView1androidTe = new InverseBindingListener() { | |
public void onChange() { | |
String callbackArg_0 = TextViewBindingAdapter.getTextString(ActivityMainBinding.this.mboundView1); | |
Object stringAgeUser = null; | |
boolean intAndroidDatabindin = false; | |
User user = ActivityMainBinding.this.mUser; | |
boolean androidDatabindingDy = false; | |
boolean ageUser = false; | |
boolean userObjectnull = false; | |
userObjectnull = user != null; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layout xmlns:android="http://schemas.android.com/apk/res/android"> | |
<data> | |
<import type="me.anwarshahriar.twowayprimitive.MainActivity.User" /> | |
<variable | |
name="user" | |
type="User" /> | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layout xmlns:android="http://schemas.android.com/apk/res/android"> | |
<data> | |
<import type="me.anwarshahriar.twowayprimitive.MainActivity.User" /> | |
<variable | |
name="user" | |
type="User" /> |
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
public class MainActivity extends AppCompatActivity { | |
User user; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main); | |
user = new User(); | |
binding.setUser(user); |
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
{ | |
"name": "example-app-name", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "webpack-dev-server" | |
}, | |
"author": "", | |
"license": "ISC", |
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 java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
final String regex = "^[a-z]([.]?[a-z0-9]+)+$"; | |
final String string = "Aacch.aa.dssfsfs"; | |
final Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE); | |
final Matcher matcher = pattern.matcher(string); | |
while (matcher.find()) { |
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
using System; | |
using System.Text.RegularExpressions; | |
public class Example | |
{ | |
public static void Main() | |
{ | |
string pattern = @"^[a-z]([.]?[a-z0-9]+)+$"; | |
string input = @"Aacch.aa.dssfsfs"; | |
RegexOptions options = RegexOptions.IgnoreCase; |