Skip to content

Instantly share code, notes, and snippets.

View tymoshenko's full-sized avatar
🍇

Yurii Tymoshenko tymoshenko

🍇
View GitHub Profile
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@tymoshenko
tymoshenko / tidalup.sh
Created September 12, 2019 20:56 — forked from james-see/tidalup.sh
TidalCycles Installer Script for Mac OS https://tidalcycles.org/index.php/MacOS_installation
#!/bin/bash
# Author: James Campbell
# Date: September 2019
# Last Updated: September 2019
# Contact: [email protected]
# What: tidalcycles installer script for OSX
#### COLORS
COLOR_PURPLE='\033[0;35m'
normal='\033[0m'
@tymoshenko
tymoshenko / bashsnippets.sh
Created September 24, 2018 17:15 — forked from megawertz/bashsnippets.sh
Some basic bash snippets I use to introduce shell scripting to my Linux class.
#!/bin/bash
# viewing environment variables
echo "The value of the home variable is: "
echo $HOME
# issue a command
echo "The output of the pwd command is: "
pwd
@tymoshenko
tymoshenko / bjorklund.js
Created March 27, 2017 08:39 — forked from withakay/bjorklund.js
Bjorklund algorithm in JavaScript
/*
An implementation of the Bjorklund algorithm in JavaScript
Inspired by the paper 'The Euclidean Algorithm Generates Traditional Musical Rhythms'
by Godfried Toussaint

This is a port of the original algorithm by E. Bjorklund which I
found in the paper 'The Theory of Rep-Rate Pattern Generation in the SNS Timing Systems' by
E. Bjorklund.