- in the 3rd class
- under age 10
- female
A:
train[(train['Age'] < 10) & (train['pclass'] == 3) & (train['sex'] == "female")]
#!/bin/sh | |
# http://article.gmane.org/gmane.linux.file-systems/54764 | |
# | |
# The script (test06.sh) makes a read-only overlayfs mount on top of | |
# another readonly overlayfs mount, repeating this in a loop, | |
# | |
# when all the read-only filesystems are mounted, then it mounts another | |
# overlayfs that uses the last read-only rootdir as lowerdir and a read-write | |
# filesystem in upperdir, |
// http://play.golang.org/p/FOe85j-O-n | |
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
) |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>checked demo</title> | |
<style> | |
div { | |
color: red; | |
} | |
</style> |
body, input { | |
font-family:Calibri, Arial; | |
margin:0px | |
} | |
h1 { | |
margin:0 0 0 20px | |
} | |
html, body, #container { | |
height:100% | |
} |
<title>Multiple Checkbox Select/Deselect - DEMO</title> | |
<h2>Multiple Checkbox Select/Deselect - DEMO</h2> | |
<table border="1"> | |
<tbody> | |
<tr> | |
<th> | |
<input type="checkbox" id="selectall"> | |
</th> | |
<th>Cell phone</th> |
$(function () { | |
$("#selectall").click(function () { | |
$('.case').prop('checked', this.checked); | |
}); | |
$(".case").click(function () { | |
if ($(".case").length == $(".case:checked").length) { | |
$("#selectall").prop("checked", true); | |
} else { | |
$("#selectall").prop("checked", false); | |
} |
Multiple Checkbox Select/Deselect Using JQuery
http://viralpatel.net/blogs/multiple-checkbox-select-deselect-jquery-tutorial-example/
CSS:
https://gist.github.com/suntong001/43ddbd9a6073202a7790
HTML:
https://gist.github.com/suntong001/6195df2353680662334f
Javascript:
<html> | |
<head> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- Include roboto.css to use the Roboto web font, material.css to include the theme and ripples.css to style the ripple effect --> | |
<link href="dist/css/roboto.min.css" rel="stylesheet"> | |
<link href="dist/css/material.min.css" rel="stylesheet"> | |
<link href="dist/css/ripples.min.css" rel="stylesheet"> |
package main | |
import ( | |
"bytes" | |
"os" | |
"text/template" | |
) | |
type Person struct { | |
Name string //exported field since it begins with a capital letter |