Skip to content

Instantly share code, notes, and snippets.

View atest.csv
template count
m 38
w 4
l 2
lb 1
View result.json
{
"hourly":[
{
"time":"00:00",
"conso":111
},
{
"time":"00:30",
"conso":113
},
@lasconic
lasconic / generateTs.py
Created Dec 21, 2018
generate .h file for MuseScore's tours
View generateTs.py
#!/usr/bin/env python
import os
import xml.etree.ElementTree as ET
def addMessage(f, text, comment=''):
text = text.replace('"', r'\"')
if (comment):
f.write('QT_TRANSLATE_NOOP3("TourXML", "' + text.encode('utf8') + '", "' + comment.encode('utf8') + '"),\n')
View readall_musescore.js
(function() {
function readAll() {
const links = document.querySelectorAll("div.forum__topic-status--new + div.forum__title div.forum__name a")
for (const a of links) {
console.log(a.href)
var sArray = a.href.split("/")
var nid = sArray[sArray.length - 1];
@lasconic
lasconic / randomvelocity.qml
Last active Sep 25, 2018
This plugin for MuseScore 2 randomizes the velocity of notes between minRandom and maxRandom
View randomvelocity.qml
//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2018 Nicolas Froment
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
View gist:fdbe87c15908bc1d6281d33e3514ea12
SvgPaintEngine() : QPaintEngine(svgEngineFeatures()),
stateStream(&stateString)
{
d_ptr = new SvgPaintEnginePrivate;
}
View gist:7ef3458dd0aae5dd50e3ff3ddd9de2ac
targetOS=macosx-x86_64
:git_build
:generateProgramId
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:test UP-TO-DATE
View score_mnx_scope.xml
<?xml version="1.0" encoding="UTF-8"?>
<mnx>
<head>
<identification>
<title>Hot Cross Buns</title>
</identification>
</head>
<score content="cwmn">
<part>
<part-name>Melody</part-name>
View gist:1a642794ecc2c9969bd7630a98b24e57
accidentalBakiyeFlat
accidentalBuyukMucennebFlat
accidentalBuyukMucennebSharp
accidentalDoubleFlat
accidentalDoubleSharp
accidentalFlat
accidentalKomaSharp
accidentalKoron
accidentalKucukMucennebSharp
accidentalNatural
View gist:712f15ff9fddbd5edb7b
import fontforge #Load the module
import json
import shutil
import os
source = "mscore"
#source = "MScoreText"
fontFile = source + ".sfd"
tmpFile = source + "tmp.sfd"
outFile = "out/" + source + ".ttf"