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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Folder\shell\Create KMZ for IGC files] | |
@="Create KMZ for IGC files" | |
[HKEY_CLASSES_ROOT\Folder\shell\Create KMZ for IGC files\command] | |
@="\"C:\\igc\\igc2kmz.bat\" \"%1\"" |
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
@echo off | |
setlocal enabledelayedexpansion | |
set targetfolder=%1 | |
cd /d %targetfolder% | |
for /f "usebackq delims=|" %%F in (`dir /s /b %targetdir%*.igc`) do ( | |
for %%a in ("%%F") do for %%b in ("%%~dpa\.") do set "pname=%%~nxb" |
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 | |
# | |
# Uses perfetct lib https://github.com/twpayne/igc2kmz to convert | |
# all *.igc files in dir to *.kmz | |
# Put color.txt with color line like FF00FFFF in each subfolder to define track color | |
IGC2KMZ="/home/iv/asa/igc2kmz/bin/igc2kmz.py" | |
PY="/usr/bin/python2.7" | |
usage() { echo "Usage: $0 [-d <string> directory to search for igc files]" 1>&2; exit 1; } |
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 bash | |
# | |
# Generate a set of TLS credentials that can be used to run development mode. | |
# | |
# Based on script by Ash Wilson (@smashwilson) | |
# https://github.com/cloudpipe/cloudpipe/pull/45/files#diff-15 | |
# | |
# usage: sh ./genkeys.sh NAME HOSTNAME IP | |
set -o errexit |
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
A=260/2; %Половина амплитуды дышла | |
L=800; %Длинна дышла | |
d= 0; %От центральной оси до центра ролика. | |
R=-155; % До кулака | |
X= -38; | |
Rr=-155; % Радиус на котором находятся ролики | |
t=0:0.05:2*pi; | |
w = 1; | |
k=(-A + 2*A*w*t/pi).*(t<=pi/w) + (3*A - 2* A*w*t/pi).*(t>pi/w); % боковое отклонение конца дышла |
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
// ==UserScript== | |
// @name MathJax for Gists | |
// @include *://gist.github.com/* | |
// @version 0.1 | |
// @description Adds MathJax support to Gists. | |
// ==/UserScript== | |
if ((window.unsafeWindow == null ? window : unsafeWindow).MathJax == null) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; |