Skip to content

Instantly share code, notes, and snippets.

@alatsombath
alatsombath / Initialize
Last active January 16, 2019 19:28
Initialize
function Initialize()
local v = { }
local match = string.match
local gmatch = string.gmatch
local max = math.max
for line in io.lines( SKIN:ReplaceVariables('#@#Variables.inc') ) do
local key,val = match(line,'^([%w_]+)%s-=%s-(.-)$')
@alatsombath
alatsombath / PluginAudioLevelBeta.cpp
Last active September 26, 2022 17:08
PluginAudioLevelBeta
/* Copyright (C) 2014 Rainmeter Project Developers
*
* This Source Code Form is subject to the terms of the GNU General Public
* License; either version 2 of the License, or (at your option) any later
* version. If a copy of the GPL was not distributed with this file, You can
* obtain one at <https://www.gnu.org/licenses/gpl-2.0.html>. */
#include <Windows.h>
#include <cstdio>
#include <AudioClient.h>
@alatsombath
alatsombath / WriteBands.inc
Created April 9, 2015 06:37
Inverted Bands
[MeasureAudio1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudio
Type=Band
BandIdx=95
[MeasureAudio2]
Measure=Plugin
Plugin=AudioLevel
@alatsombath
alatsombath / ColorChanger.lua
Created April 2, 2015 00:35
ColorChanger v2.3, Modified for Ocean visualizer
-- ColorChanger v2.3, A modification of ColorChanger v1.3 by Smurfier
-- Modified for Ocean visualizer
-- LICENSE: Creative Commons Attribution-Non-Commercial-Share Alike 3.0
local Colors,ColorsIdx,VarColors,Check,Out,Mode,OldMeasureValue,Measure,Meter={},{},{},{},{},{},{},{},{}
local random,abs,concat=math.random,math.abs,table.concat
local Counter=0
function Initialize()