This file contains 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 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 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 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 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 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 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 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 <string> | |
/* this is a test: åøæ */ | |
namespace { | |
int føø(const std::string& x) { | |
} |
This file contains 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
# svn recipes by http://github.com/htxt | |
# Remove deleted files | |
svn status | grep '\!' | awk '{print $2;}' | xargs svn rm | |
# Add all new files | |
svn add * --force | |
# Recursively remove .svn directories | |
rm -rf `find . -type d -name .svn` |
OlderNewer