Skip to content

Instantly share code, notes, and snippets.

View michaellee8's full-sized avatar

michaellee8

View GitHub Profile

abcd test

@michaellee8
michaellee8 / log.txt
Created January 4, 2017 12:43
NativeScript/sample-Groceries issue #197
This file has been truncated, but you can view the full file.
execFile: D:\Android\Sdk\platform-tools\adb "help"
execFile: D:\Android\Sdk\platform-tools\adb "help"
spawn: D:\Android\Sdk\platform-tools\adb "--help"
Socket {
connecting: false,
_hadError: false,
_handle:
Pipe {
bytesRead: 0,
_externalStream: {},
@michaellee8
michaellee8 / SbaReport.md
Last active March 2, 2017 07:01
SBA Report

Homework Monitor

Objective

  1. To provide an utility to help students manage their homework schedule and time used more efficiently.

Function

  1. A Planner including the tittle for Homework and the time supplied for each of them.
  2. A Countdown Timer specifically designed to follow the items in the planner and provide useful reminders so that students will do their homework faster.
  3. A Statistics and Score system so that students can review their efficiency on their homework.
  4. (Future) Allow teachers to review time on students on their Homework provided.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@michaellee8
michaellee8 / 1617_Chin_SBA_2nd.json
Created June 2, 2017 15:07
json data for the second sba
{
"symbols": [
"。",
":",
",",
"!",
"?",
";",
"、",
"......"
[{"lastName":"CHAN","firstName":["MEI","CHUN"],"class":"1A","classNo":1},{"lastName":"CHAN","firstName":["WING","YI"],"class":"1A","classNo":2},{"lastName":"CHAN","firstName":["YU","FUNG"],"class":"1A","classNo":3},{"lastName":"CHAU","firstName":["KIN","HANG"],"class":"1A","classNo":4},{"lastName":"CHAU","firstName":["WAI","YEE"],"class":"1A","classNo":5},{"lastName":"CHEN","firstName":["CHUN","HON"],"class":"1A","classNo":6},{"lastName":"CHENG","firstName":["HO","HEI"],"class":"1A","classNo":7},{"lastName":"CHEUNG","firstName":["YUN","TONG"],"class":"1A","classNo":8},{"lastName":"HAU","firstName":["CHEUK","LING"],"class":"1A","classNo":9},{"lastName":"HO","firstName":["KA","TUNG"],"class":"1A","classNo":10},{"lastName":"LAM","firstName":["HING","YI"],"class":"1A","classNo":11},{"lastName":"LAU","firstName":["YU","CHING"],"class":"1A","classNo":12},{"lastName":"LEE","firstName":["CHEUK","LAM"],"class":"1A","classNo":13},{"lastName":"LEUNG","firstName":["WING","KIU"],"class":"1A","classNo":14},{"lastName":"LI"

abcd

amsss

[TOC]

@michaellee8
michaellee8 / android-file-transfer.sh
Last active July 23, 2017 05:38
Fast android file transfer between devices/phones/tablets using adb
# Mini bash script to quickly copy files between android devices using adb
# dependencies : depends on adb, install first by sudo apt install adb
# $1 : serialno of source device
# $2 : serialno of destination device
# $3 : parent directory of file/dir to be copied
# $4 : name of file/dit to be copied
# example : bash android-file-transfer <device-sn-source> <device-sn-destination> /sdcard/ DCIM
# remarks : if it shows the devices is currently offline, set the device's USB mode to MTP
# remarks : to get serialno of connected devices, used adb devices -l
# remarks : uses USB 3.0 port if aviliable
@michaellee8
michaellee8 / data.json
Last active September 12, 2017 09:37
graphl script for query
{
"includeAll": [
{
"model": "User",
"as": "user",
"where": {
"userId": 1
}
}
],