Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <vector>
#include "myTcpLib.hpp"
using namespace std;
int main()
{
string LOCALHOST="127.0.0.1";
int PORT=50001;
@tasuwo
tasuwo / toggle-magit.el
Created February 8, 2016 04:11
Toggle magit status
(defun get-displayed-buffer-name-list ()
""
(interactive)
(catch 'displayed-buffer-name-list
(let ((base-buffer (window-buffer))
(buffer-name-list nil))
(if (eq base-buffer nil)
(message "no buffer")
(let ((target-window (next-window (car (get-buffer-window-list)))))
(add-to-list 'buffer-name-list (buffer-name base-buffer))