git rebase -i HEAD~N
Example, remove the latest commit:
git rebase -i HEAD~2
> c = db.products
pcat.products
> c.find()
{ "_id" : "ac3", "name" : "AC3 Phone", "brand" : "ACME", "type" : "phone", "price" : 200, "warranty_years" : 1, "available" : true }
{ "_id" : "ac7", "name" : "AC7 Phone", "brand" : "ACME", "type" : "phone", "price" : 320, "warranty_years" : 1, "available" : false }
{ "_id" : ObjectId("507d95d5719dbef170f15bf9"), "name" : "AC3 Series Charger", "type" : [ "accessory", "charger" ], "price" : 19, "warranty_years" : 0.25, "for" : [ "ac3", "ac7", "ac9" ] }
{ "_id" : ObjectId("507d95d5719dbef170f15bfa"), "name" : "AC3 Case Green", "type" : [ "accessory", "case" ], "color" : "green", "price" : 12, "warranty_years" : 0 }
{ "_id" : ObjectId("507d95d5719dbef170f15bfb"), "name" : "Phone Extended Warranty", "type" : "warranty", "price" : 38, "warranty_years" : 2, "for" : [ "ac3", "ac7", "ac9", "qp7", "qp8", "qp9" ] }
{ "_id" : ObjectId("507d95d5719dbef170f15bfc"), "name" : "AC3 Case Black", "type" : [ "accessory", "case" ], "color" : "black", "price" : 12.5, "warranty_year
// require a lot of bullshit to "talk is cheap" | |
var talkIsCheap = require('talk-is-cheap'); | |
// of course you will got TypeError: Cannot call method 'say' of undefined, because talk is cheap! | |
talkIsCheap.say('Talk is cheap!') |
test: | |
npm install --dev | |
mysql -u ubuntu -e 'CREATE DATABASE IF NOT EXISTS circle_test' | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows some-test/*-spec.js | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows another-test/*-spec.js | |
mysql -u ubuntu -e 'DROP DATABASE IF EXISTS circle_test' |
{ | |
"url": "http://example.com/event/511206849146c42125000001", | |
"data": { | |
"title": "Free event", | |
"shortDescription": "Free event for students", | |
"times": [ | |
{ | |
"milliseconds": 1613028781634, | |
"fullFormat": "Thu Feb 11 2021 14:33:01 GMT+0700 (WIT)", | |
"year": 2021, |
{ | |
"url": "http://example.com/events", | |
"data": [ | |
{ | |
"title": "Free event", | |
"shortDescription": "Free event for students", | |
"times": [ | |
{ | |
"milliseconds": 1613028781634, | |
"fullFormat": "Thu Feb 11 2021 14:33:01 GMT+0700 (WIT)", |
<response> | |
<url>http://localhost:3000/event1</url> | |
<data id="1"> | |
<title>Diam nisl tation.</title> | |
<shortDescription>Amet dolore praesent consequat te.</shortDescription> | |
<times> | |
<time> | |
<milliseconds>1613028781634</milliseconds> | |
<fullFormat>Thu Feb 11 2021 14:33:01 GMT+0700 (WIT)</fullFormat> | |
<year>2021</year> |
<response> | |
<url>http://localhost:3000/events</url> | |
<data> | |
<data id="1"> | |
<title>Diam nisl tation.</title> | |
<shortDescription>Amet dolore praesent consequat te.</shortDescription> | |
<times> | |
<time> | |
<milliseconds>1613028781634</milliseconds> |