Skip to content

Instantly share code, notes, and snippets.

@BenjaminZ
BenjaminZ / JS-LINQ.js
Created February 18, 2020 06:34 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<ul id="source">
<li>北京空气质量:<b>90</b></li>
<li>上海空气质量:<b>70</b></li>
<li>天津空气质量:<b>80</b></li>
<li>广州空气质量:<b>50</b></li>
@BenjaminZ
BenjaminZ / activity_camera.xml
Created October 3, 2015 13:00
camera layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/frameLayout_camera">
<cliq.com.cliqgram.views.AutoFitTextureView
android:layout_width="wrap_content"
android:layout_height="wrap_content"