Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block suntong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
suntong /
Created Feb 1, 2014
overlayfs: mounting overlayfs on top of overlayfs
# The script ( 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,
View main.go
package main
import (
View gist:9cb494214aea24c2c5ff

Challenge: select all the people that are:

  • in the 3rd class
  • under age 10
  • female


train[(train['Age'] < 10) & (train['pclass'] == 3) & (train['sex'] == "female")]
suntong / gist:dad3c1c19936861d90a5
Last active Aug 29, 2015
jQuery Checkbox :checked Selector: Travers the selected checkboxes
View gist:dad3c1c19936861d90a5
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>checked demo</title>
div {
color: red;
View gist:43ddbd9a6073202a7790
body, input {
font-family:Calibri, Arial;
h1 {
margin:0 0 0 20px
html, body, #container {
View gist:6195df2353680662334f
<title>Multiple Checkbox Select/Deselect - DEMO</title>
<h2>Multiple Checkbox Select/Deselect - DEMO</h2>
<table border="1">
<input type="checkbox" id="selectall">
<th>Cell phone</th>
View gist:91fae43535138b9d25e5
$(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);
View gist:9b9276bedbb6cd0b8443
<link href="//" 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">
View gist:3539307ef77ddee95f10
package main
import (
type Person struct {
Name string //exported field since it begins with a capital letter
You can’t perform that action at this time.