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/lisp/progmodes/gud.el b/lisp/progmodes/gud.el | |
| index e2d996f..d1458a2 100644 | |
| --- a/lisp/progmodes/gud.el | |
| +++ b/lisp/progmodes/gud.el | |
| @@ -34,7 +34,7 @@ | |
| ;; and added a menu. Brian D. Carlstrom <bdc@ai.mit.edu> combined the IRIX | |
| ;; kluge with the gud-xdb-directories hack producing gud-dbx-directories. | |
| ;; Derek L. Davies <ddavies@world.std.com> added support for jdb (Java | |
| -;; debugger.) | |
| +;; debugger). llvm.org added support for lldb. |
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
| [global_config] | |
| enabled_plugins = APTURLHandler, LaunchpadCodeURLHandler, LaunchpadBugURLHandler | |
| title_transmit_bg_color = "#000000" | |
| title_inactive_bg_color = "#000000" | |
| [keybindings] | |
| hide_window = None | |
| [profiles] | |
| [[default]] | |
| scrollbar_position = hidden | |
| term = xterm-256color |
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
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;; * ycmd | |
| (ptrv/after cc-mode | |
| (message "Load config: ycmd...") | |
| (require 'ycmd) | |
| (defun ptrv/company-ycmd--init () | |
| (local-set-key (kbd "<f12>") 'company-complete-common) | |
| (make-local-variable 'company-backends) | |
| (company-ycmd-setup)) |
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
| local lua_require = require | |
| function require(mod_name) | |
| if package.preload[mod_name] == nil then | |
| package.preload[mod_name] = function() | |
| local filename = of.toDataPath("scripts/"..mod_name..".lua", true) | |
| local fn = loadfile(filename) | |
| return fn() | |
| end | |
| end |
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/bash | |
| # test args | |
| if [ ! ${#} -ge 2 ]; then | |
| echo 1>&2 "Usage: ${0} LOCAL REMOTE [MERGED BASE]" | |
| echo 1>&2 " (LOCAL, REMOTE, MERGED, BASE can be provided by \`git mergetool'.)" | |
| exit 1 | |
| fi | |
| # tools |
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 | |
| #-*- coding: utf-8 -*- | |
| import sys | |
| CONFIG_NAME = ".clang_complete" | |
| def readConfiguration(): | |
| try: | |
| f = open(CONFIG_NAME, "r") |
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/bash | |
| # test args | |
| if [ ! ${#} -ge 2 ]; then | |
| echo 1>&2 "Usage: ${0} LOCAL REMOTE [MERGED BASE]" | |
| echo 1>&2 " (LOCAL, REMOTE, MERGED, BASE can be provided by \`git mergetool'.)" | |
| exit 1 | |
| fi | |
| # tools |
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
| float convertToHost (float val, float min, float max) | |
| { | |
| float range = (max) - (min); | |
| val= (val - min)/range; | |
| return val; | |
| } | |
| float convertFromHost (float val,float min,float max) | |
| { | |
| float range = (max) - (min); |
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
| package main | |
| import ( | |
| "database/sql" | |
| "github.com/mattn/go-sqlite3" | |
| "log" | |
| "os" | |
| ) | |
| func runQuery(db *sql.DB, query string) { |
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 change-number-at-point (op val) | |
| "Change number of at point by applying OP and VAL." | |
| (save-excursion | |
| (save-match-data | |
| (or (looking-at "[0123456789]") | |
| (error "No number at point")) | |
| (replace-match | |
| (number-to-string | |
| (mod (funcall (apply-partially op (string-to-number (match-string 0))) val) 10)))))) | |
| (defun increment-number-at-point (&optional arg) |