Skip to content

Instantly share code, notes, and snippets.

@lasconic
lasconic / cmhd_scores.md
Last active December 11, 2015 21:59
List of scores for classical MHD
@lasconic
lasconic / colorNoteSel.qml
Last active December 12, 2015 06:49
colorNoteSel.qml
import QtQuick 1.0
import MuseScore 1.0
MuseScore {
version: "1.0"
description: "This demo plugin colors notes in the selection depending on pitch"
menuPath: "Plugins.colornotes"
property variant colors : [
"#e21c48", "#f26622", "#f99d1c",

MuseScore 1.3 all included (cloc mscore)

  --------------------------------------------------------------------------------
  Language                      files          blank        comment           code
  --------------------------------------------------------------------------------
  C++                             998          42647          29127         346825
  XML                             214            952           1481         148280
  HTML                             34             37             54          30425
  C/C++ Header                    537           6800           6961          25966

C 20 1044 1513 5729

From 39a3aedd36c5463ca076f2ec5aa6cbcfc06500e6 Mon Sep 17 00:00:00 2001
From: lasconic <lasconic@gmail.com>
Date: Tue, 21 May 2013 17:01:04 +0200
Subject: [PATCH] add llvm condition to not use fpu
---
lib/os.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/os.h b/lib/os.h
!insertmacro MUI_LANGUAGE "English" ;first language is the default language
!insertmacro MUI_LANGUAGE "Albanian"
!insertmacro MUI_LANGUAGE "Arabic"
!insertmacro MUI_LANGUAGE "Basque"
!insertmacro MUI_LANGUAGE "Belarusian"
!insertmacro MUI_LANGUAGE "Bosnian"
!insertmacro MUI_LANGUAGE "Breton"
!insertmacro MUI_LANGUAGE "Bulgarian"
!insertmacro MUI_LANGUAGE "Croatian"
!insertmacro MUI_LANGUAGE "Czech"
@lasconic
lasconic / gist:5965542
Last active July 30, 2022 06:10
replace double slashes by simple slash in library paths before running macdeployqt
BIN_FILE=YOURBINARY
for P in `otool -L $BIN_FILE | awk '{print $1}'`
do
if [[ "$P" == *//* ]]
then
PSLASH=$(echo $P | sed 's,//,/,g')
install_name_tool -change $P $PSLASH $BIN_FILE
fi
done
#include <stdio.h>
int main(int argc, char* argv[])
{
union U {
int subtype;
struct {
int _accidentalType:4;
@lasconic
lasconic / aws
Created February 19, 2014 10:05 — forked from QaDeS/aws
IAMUSERID %{NUMBER:iam_user_id}
IAMUSERNAME [a-zA-Z0-9._-]+
IAMUSER arn:aws:iam::%{IAMUSERID}:user/%{IAMUSERNAME:iam_user_name}
S3TYPE [a-zA-z_]+
S3OP [a-zA-z]+
S3SOAPOPERATION (?:SOAP\.%{S3OP})
S3RESTOPERATION (?:REST\.%{S3OP}(\.%{S3TYPE})?)
S3WEBSITEOPERATION (?:WEBSITE\.%{S3OP}\.%{S3TYPE})
S3OPERATION (?:%{S3SOAPOPERATION}|%{S3RESTOPERATION}|%{S3WEBSITEOPERATION})
@lasconic
lasconic / createHeaderFromGlyphnames.py
Last active August 29, 2015 13:57
Create header files to include in MuseScore from SMuFL glyphnames
import json
import collections
with open('glyphnames.json') as data_file:
data = json.load(data_file)
data = collections.OrderedDict(sorted(data.items()))
f = open('glyphnames.txt', 'w')
accidentalBakiyeFlat
accidentalBuyukMucennebFlat
accidentalBuyukMucennebSharp
accidentalDoubleFlat
accidentalDoubleSharp
accidentalFiveQuarterTonesFlatArrowDown
accidentalFiveQuarterTonesSharpArrowUp
accidentalFlat
accidentalKomaSharp
accidentalKoron