Skip to content

Instantly share code, notes, and snippets.

a=-1.4:0.02:1.4;
[X,Y,Z] = meshgrid(a);
F =((X.^2)+(9/4).*(Y.^2)+(Z.^2)-1).^3-(X.^2).*(Z.^3)-(9/80).*(Y.^2).*(Z.^3);
patch(isosurface(X,Y,Z,F,0),'EdgeColor','r')
axis equal
view([-43 13]);
@shrijitsingh99
shrijitsingh99 / git-mv-with-history
Created September 29, 2018 10:14 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
[ 158.229231] applespi: --- Keyboard Event ---------------------------
[ 158.229251] applespi: read 20 01 00 00 00 00 14 00 10 01 00 5c 00 00 0a 00 01 00 00 00 00 00 00 00 00 00 40 b1 00 00 00 00
[ 158.229255] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229259] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229263] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229266] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229270] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229274] applespi: read 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 158.229277] applespi: read 00 00 00 00 00 00 00 00
[ 61.844741] PM: suspend entry (deep)
[ 61.882441] applespi: spi-device suspend done.
[ 64.516859] applespi: drain=0 cmd_msg_queued=0
[ 64.516862] applespi: applespi_async: sts=0
[ 64.516862] applespi: spi-device resume done.
[ 64.516865] applespi: drain=0 cmd_msg_queued=1
[ 64.517099] nvme nvme0: detected Apple NVMe controller, set queue depth=2 to work around controller resets
[ 64.803852] video LNXVIDEO:00: Restoring backlight state
[ 64.803962] PM: suspend exit
DKMS make.log for applespi-0.1 for kernel 4.14.0-041400-generic (x86_64)
Mon Jan 1 01:09:52 IST 2018
make -C /lib/modules/4.14.0-041400-generic/build M=/var/lib/dkms/applespi/0.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.0-041400-generic'
CC [M] /var/lib/dkms/applespi/0.1/build/applespi.o
In file included from ./include/linux/kernel.h:14:0,
from ./include/linux/list.h:9,
from ./include/linux/kobject.h:20,
from ./include/linux/device.h:17,
from ./include/linux/platform_device.h:14,
@interface TableViewController ()
@end
@implementation TableViewController
- (id)initWithStyle:(UITableViewStyle)style {
self = [super initWithStyle:style];
if (self) {
// Custom initialization