FlexBox 50/50 columns with rows
div[layout="row"]>div[flex="50"]*2>div[layout="column"]>div[layout="row"]>div[flex="50"]*2
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function write (message) { | |
document.getElementById('message').innerHTML += message + '<br/>'; | |
} | |
function calculateCircumference(diameter){ |
bool EditTopic(int id, Search newSearch); |
namespace MyProject.Controllers.api | |
{ | |
public class FavoritesController : ApiController | |
{ | |
private IFavoritesRepository _favRepo; | |
public FavoritesController(IFavoritesRepository favRepo) | |
{ | |
_favRepo = favRepo; | |
} |
app.filter('bytes', function(){ | |
return function(bytes, precision){ | |
if (typeof bytes !== 'number') { | |
bytes = parseFloat(bytes); | |
} | |
if (bytes === 0) { | |
return '0 B'; | |
} else if (isNaN(bytes) || !isFinite(bytes)) { | |
return '-'; |
export class ArrayFilterValueConverter { | |
toView(array, value) { | |
var regex = new RegExp(value, 'gi'); | |
var matcher = (item) => | |
item.utilityName.match(regex); | |
return array.filter( | |
matcher | |
); | |
} | |
} |
//aurelia ValueConverter | |
export class GenericFilterValueConverter { | |
toView(array, value, cols, showResults=false) { | |
if (!value) { return showResults ? array : []; }; | |
var arrayOut = array.filter( | |
function(arrayIn) { | |
for (var col in arrayIn) { | |
if (arrayIn.hasOwnProperty(col)) { | |
if (cols.indexOf(col) != -1 && arrayIn[col].toLowerCase() |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FibonacciGenerator | |
{ | |
internal class Program | |
{ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="play-with-svg"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<style> | |
#one { fill: #444; } |
import React, { Component } from 'react'; | |
class ComponentName extends Component { | |
render() { | |
return (""); | |
} | |
} | |
export default ComponentName |