Skip to content

Instantly share code, notes, and snippets.

@lasconic
lasconic / uncrustify.cfg
Created June 29, 2015 16:58
Uncrustify configuration file for MuseScore. To be used with https://github.com/lasconic/uncrustify/tree/indent_param
# Uncrustify 0.61
#
# General options
#
# The type of line endings
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input
"element:symbol", "Symbol"
"element:text", "Text"
"element:instrumentname", "Instrument Name"
"element:slursegment", "Slur Segment"
"element:stafflines", "Staff Lines"
"element:barline", "Bar Line"
"element:stemslash", "Stem Slash"
"element:line", "Line"
"element:bracket", "Bracket"
"element:arpeggio", "Arpeggio"
@lasconic
lasconic / symbolUseInMuseScore.py
Created March 20, 2014 16:50
Python script to find all SMuFL symbols used in MuseScore source
import os
import re
def grep(path, regex, regexcontent):
regObj = re.compile(regex)
res = set()
for root, dirs, fnames in os.walk(path):
for fname in fnames:
if regObj.match(fname) and not "sym.cpp" in fname:
accidentalBakiyeFlat
accidentalBuyukMucennebFlat
accidentalBuyukMucennebSharp
accidentalDoubleFlat
accidentalDoubleSharp
accidentalFiveQuarterTonesFlatArrowDown
accidentalFiveQuarterTonesSharpArrowUp
accidentalFlat
accidentalKomaSharp
accidentalKoron
@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')
@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})
#include <stdio.h>
int main(int argc, char* argv[])
{
union U {
int subtype;
struct {
int _accidentalType:4;
@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
!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"
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