This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git checkout feature_a | |
$ git merge master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git switch -c new_feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir images | |
$ touch images/.gitkeep | |
$ git status | |
On branch master | |
Untracked files: | |
(use "git add <file>..." to include in what will be committed) | |
images/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit b0d3c42d003152d1195a299ee5a11bb7b82c07d4 (HEAD -> development) | |
Author: Thomas Seng Hin Mak <mak@makzan.net> | |
Date: Wed Mar 10 20:55:54 2021 +0800 | |
Example commit. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{box-sizing: border-box;} | |
img {max-width: 100%;} | |
.row { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.row .row { | |
margin-left: -.5em; | |
margin-right: -.5em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mobile-web-2020-test-suite", | |
"version": "1.0.0", | |
"description": "Automated test cases for mobile web technologies competition 2020", | |
"devDependencies": { | |
"axe-core": "^4.0.2", | |
"cy-mobile-commands": "^0.2.1", | |
"cypress": "^5.0", | |
"cypress-axe": "0.8.1", | |
"cypress-commands": "^1.1.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. I like the AsciiDoc that uses `+` to connect paragraphs inside list item, instead of adding indent in markdown. | |
2. The URL example `:1:` in AsciiDoc looks similar to `[1]` in markdown. But actually `:1:` is a variable that can be used any where. | |
3. This is just a simple comparasion for a simple document. I find markdown is good enough for a short article writing. On the other hands, AsciiDoc is better for longer writings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="TODO List Example" /> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>TODO List</title> | |
<style id="jsbin-css"> | |
.templates { | |
display: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Upload Image Example | |
// | |
import UIKit | |
import Alamofire | |
class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class Student { | |
var enrolledAt:Date = Date() | |
init(enrolledAt:String) { | |
let dateFormatter = ISO8601DateFormatter() | |
dateFormatter.formatOptions = .withFullDate | |
self.enrolledAt = dateFormatter.date(from: enrolledAt)! | |
} |