Skip to content

Instantly share code, notes, and snippets.

template count
m 38
w 4
l 2
lb 1
{
"hourly":[
{
"time":"00:00",
"conso":111
},
{
"time":"00:30",
"conso":113
},
@lasconic
lasconic / generateTs.py
Created December 21, 2018 16:02
generate .h file for MuseScore's tours
#!/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')
(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 September 25, 2018 08:16
This plugin for MuseScore 2 randomizes the velocity of notes between minRandom and maxRandom
//=============================================================================
// 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
SvgPaintEngine() : QPaintEngine(svgEngineFeatures()),
stateStream(&stateString)
{
d_ptr = new SvgPaintEnginePrivate;
}
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
<?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>
accidentalBakiyeFlat
accidentalBuyukMucennebFlat
accidentalBuyukMucennebSharp
accidentalDoubleFlat
accidentalDoubleSharp
accidentalFlat
accidentalKomaSharp
accidentalKoron
accidentalKucukMucennebSharp
accidentalNatural
@lasconic
lasconic / gist:712f15ff9fddbd5edb7b
Created July 13, 2015 14:21
reorder musescore font
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"