Skip to content

Instantly share code, notes, and snippets.

View pelevesque's full-sized avatar
💭
looking for work

Pierre-Emmanuel Lévesque pelevesque

💭
looking for work
View GitHub Profile
@pelevesque
pelevesque / sherbrooke-trip.txt
Last active October 2, 2024 23:27
Sherbrooke trip
https://orpailleur.ca/en
Fromage
https://fromagerielastation.com/boutique/
https://www.cantonsdelest.com/article/691/top-5-des-meilleurs-fromages-des-cantons
https://www.easterntownships.org/article/1271/agritourism-activities-to-experience
@pelevesque
pelevesque / lilypond-custom-notehead-stem-length-issue-example.ly
Last active September 23, 2024 00:55
Lilypond Custom Notehead Stem Length Issue Example
\version "2.24.4"
noteheadPath = #'(
(M -0.0002496 0.72211449)
(C -0.0002496 0.72211449 1.97353590702 2.2953056 2.3640189070199997 2.6311482)
(C 2.702207 2.9220137 3.4315411 2.185533 3.2018007 1.9309118)
(C 2.992187 1.718216 0.86545999 0 0.86658549 0)
(C 0.86658549 0 2.9495123 -1.6717892 3.1937539999999998 -1.8947996)
(C 3.4789443999999996 -2.1551992 2.6757286 -2.9105102 2.3691337999999997 -2.6413624)
(C 2.0363879 -2.3492576 -0.00024960702000020873 -0.7241839400000003 -0.00024960702000020873 -0.7241839400000003)
void KeepinItTightMan (int value, int outdent) {
int indent = outdent - (NumLength (value) - 1);
for (auto x : Range (1, indent, 1)) {
std::cout << " ";
}
std::cout << y;
for (auto x : Range (1, outdent, 1)) {
std::cout << " ";
}
std::cout << "|";
for (auto x : Range (1, indent, 1)) {
std::cout << " ";
}
std::cout << value;
for (auto x : Range (1, outdent, 1)) {
std::cout << " ";
}
std::cout << "|";
@pelevesque
pelevesque / SVGWriterTest.js
Created January 9, 2021 04:30 — forked from carlynorama/SVGWriterTest.js
Write SVG to file in Javascript
let centerX = 15
let centerY = 15
let radius = 10
let style = "fill:rgb(200,200,255);"
const fs = require('fs')
let svg = ""
svg += '<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n'
svg += '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'
@pelevesque
pelevesque / summertime.orfeo
Last active August 9, 2020 05:06
Summertime by George Gershwin (melodic excerpt)
(:=
(:0 "Summertime by George Gershwin (melodic excerpt)")
(:4 _ _ E5 C5)
(:4 E5-)
(:4 (-E _) (D5. ^C5) (D5. ^E5) C5)
(:4 A4 E4-)
(:4 -E _ E5 C5)
(:4 ^D5 D5-. (:2 -D))
)
function setSumOfDatumDurationsPerMusicExpression(tokens) {
let areSummingDatumDurations = false
let sumOfDatumDurations
let indexOfOpenMusicExpr
let numExprFlags
let numExprDots
for (let i = deepestDepth; i >= 0; i--) {
tokens.forEach((token, j) => {
if(token.depth === i+1 && areSummingDatumDurations && token.type === 'OPEN_MUSIC_EXPR'){
sumOfDatumDurations += token.duration
<Orfeo_0.1.0> ::= <keyword_score> <ws>+ <music_expr>
<music_expr> ::= <left_curly_bracket> <ws>* (<voice_expr> (<ws>* <comma> <ws>* <voice_expr>)* (<ws>* <comma>)?)? <ws>* <right_curly_bracket>
<voice_expr_content> ::= <datum> | <voice_expr>
<voice_expr> ::= <left_parenthesis> <ws>* (<duration>? | ((<duration> <ws>+)? <voice_expr_content> (<ws+ <voice_expr_content>)*)) <ws>* <right_parenthesis>
<duration_sigil> ::= ':'
<duration_equal> ::= <duration_sigil> "="
<duration_nonnegative_int> ::= <duration_sigil> <nonnegative_int>
<duration_nonnegative_real> ::= <duration_sigil> <nonnegative_real>
<duration_time_signature> ::= <duration_sigil> <time_signature>
<duration> ::= <duration_time_signature> | <duration_nonnegative_real> | <duration_nonnegative_int> | <duration_equal>
@pelevesque
pelevesque / website_verification_tools.txt
Created October 29, 2019 04:02
website verification tools
https://www.seocentro.com/tools/seo/seo-analyzer.html
https://search.google.com/test/mobile-friendly
https://www.woorank.com
https://developers.google.com/speed/pagespeed/insights/
https://gtmetrix.com/
https://www.webpagetest.org/
https://search.google.com/test/mobile-friendly
https://www.screamingfrog.co.uk/seo-spider/
https://www.link-assistant.com
http://siteliner.com/
@pelevesque
pelevesque / i-love-you-world.js
Created May 21, 2019 02:29
I love you world! (An alternative to the traditional hello-world.js)
console.log('I love you world!')