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
; get ip and mx | |
(let ((domain "mydomain.com")) | |
(switch-to-buffer-other-window "*temp*") | |
(erase-buffer) | |
(setq www (format "www.%s" domain)) | |
(setq ip "") | |
(setq mx "") | |
(setq ret-val (call-process "ping" nil t nil domain "-n" "1")) | |
(if (equal ret-val 0) | |
(progn |
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
-- create phrases to pitch sample | |
-- get current insturment and selected sample | |
local instrIndex = renoise.song().selected_instrument_index | |
local smplIndex = renoise.song().selected_sample_index | |
local instr = renoise.song().instruments[instrIndex] | |
local basenote =instr.sample_mappings[renoise.Instrument.LAYER_NOTE_ON][smplIndex].base_note | |
-- how many steps | |
local steps = 12 |
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
<?php | |
$path = ""; //add your avenger expansion path here | |
$dir = scandir( $path ); | |
$dir = array_diff($dir,["." , ".." ]); | |
//all expansions | |
foreach($dir as $exp) { | |
$presetpath = $path . $exp . "\\presets\\"; | |
$presettypes = scandir($presetpath); |
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
(require 'bindat) | |
;;; put your avengers content path here | |
(setq avenger-content-path "") | |
(mapcar (lambda (filename) | |
;; show current patch in message buffer | |
(message filename) | |
;; read file |
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
git config --add core.createobject link |
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 | |
rem Initialize values | |
set /A a=16807, s=40 | |
rem APA Modification: use current centiseconds for initial value | |
for /F "tokens=2 delims=," %%a in ("%time%") do if "%%a" neq "00" set /A s=1%%a %% 100 | |
setlocal EnableDelayedExpansion | |
rem replace *** witht the correct numbers, where the screenshots are located |
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
<?php | |
/** | |
The current openproject api is missing some exmaples. This is what i got working in PHP. | |
*/ | |
function _request( $req, $postdata = false, $requesttype = 'POST' ) | |
{ | |
$ch = curl_init(); | |
if ( preg_match( '~^/api/v3(.*)~', $req, $temp ) ) { | |
$req = $temp[ 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
//pretty dirty autoreload script | |
var lastMod = []; | |
var files = [window.location.href]; | |
var countReq = 0; | |
var hidden = false; | |
function __autoreload() { | |
var checkfiles = true; | |
if (document.hasFocus()) { | |
checkfiles = false; |
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
require "include/protoplug" | |
lastoff = 0 | |
function plugin.processBlock(samples, smax, midiBuf) | |
playEvents = {} | |
for ev in midiBuf:eachEvent() do | |
if ev:isNoteOn() and ev:getNote() ~= lastoff and lastoff>0 then | |
table.insert(playEvents, midi.Event(ev)) | |
table.insert(playEvents, midi.Event.noteOff( |
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
require "include/protoplug" | |
noteOn = 0 | |
function plugin.processBlock(samples, smax, midiBuf) | |
blockEvents = {} | |
-- drone note, 72 = C | |
local rootNote = 69 | |
for ev in midiBuf:eachEvent() do |
OlderNewer