This file contains hidden or 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
#include <iostream> | |
#include <tuple> | |
#include <string> | |
std::tuple<std::string, int> | |
func(int i) | |
{ | |
if (i == 0) { | |
return std::tuple<std::string, int>(std::string("hello world"), 0); | |
} else { |
This file contains hidden or 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
(defun go-add-tags (type begin end) | |
(interactive | |
(list | |
(or (and current-prefix-arg (completing-read "Type: " '(json yaml toml))) | |
"json") | |
(or (and (use-region-p) (region-beginning)) | |
(line-beginning-position)) |
This file contains hidden or 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
(source gnu) | |
(source melpa) | |
(depends-on "evil") | |
;; company-mode | |
(depends-on "company") | |
;; region | |
(depends-on "wrap-region") |
This file contains hidden or 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
diff --git a/anzu.el b/anzu.el | |
index 4d0cf62..84d099d 100644 | |
--- a/anzu.el | |
+++ b/anzu.el | |
@@ -408,7 +408,7 @@ | |
(defconst anzu--from-to-separator | |
(propertize | |
(or (ignore-errors | |
- (if (char-displayable-p ?\u2192) " \u2192 " " -> ")) | |
+ (if (char-displayable-p ?\u2192) " \u2192 " " -> ")) |
This file contains hidden or 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
diff --git a/git-gutter.el b/git-gutter.el | |
index 15dc837..29c0425 100644 | |
--- a/git-gutter.el | |
+++ b/git-gutter.el | |
@@ -1057,6 +1057,72 @@ start revision." | |
(message "Added %d lines, Deleted %d lines" added deleted)) | |
(cons added deleted)))) | |
+(defvar git-gutter:list-mode-map | |
+ (let ((map (make-sparse-keymap))) |
This file contains hidden or 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
autoconf | |
automake | |
bazaar | |
cmake | |
coreutils | |
elixir | |
erlang | |
fontconfig | |
freetype | |
gauche |
This file contains hidden or 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
#!/bin/sh | |
set -e | |
set -x | |
for file in src syssrc sharesrc | |
do | |
curl -LO http://ftp.jaist.ac.jp/pub/NetBSD/NetBSD-7.0.1/source/sets/${file}.tgz | |
tar xvf ${file}.tgz | |
done |
This file contains hidden or 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
#!/usr/bin/env python | |
import sys | |
import os | |
import json | |
def usage(): | |
print("Usage: json2gostruct.py struct_name") | |
os.exit(0) | |
def indent(nest): |
This file contains hidden or 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
#!perl | |
use strict; | |
use warnings; | |
use JSON::PP (); | |
use Getopt::Long (); | |
use Scalar::Util (); | |
my $struct_name = ""; | |
Getopt::Long::GetOptions( |
This file contains hidden or 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
diff --git a/swoop-lib.el b/swoop-lib.el | |
index d95459c..98cfbdd 100644 | |
--- a/swoop-lib.el | |
+++ b/swoop-lib.el | |
@@ -369,6 +369,7 @@ swoop-overlay-target-buffer-selection moved." | |
($point (point)) | |
($point-min (point-min)) | |
($point-max (point-max)) | |
+ ($min-line (save-restriction (widen) (line-number-at-pos $point-min))) | |
($max-line (line-number-at-pos $point-max)) |