[<<inyourface>>;id|item;*bold*;_ital_;{bg:cyan}]<-<>[a]^-.-++[b],[note:note]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* On every loop of `while(true)` we check: | |
* 1. If all elements in group have same head -> extract it to common head, | |
* 2. If all elements in group have same tail -> extract it to common tail, | |
* 3. If some elements have common head -> create sub group of this elements, and put there head as common head of group, | |
* 4. Same for tails. | |
* If none of previous happen - we stop loop. | |
* Then check if current group has empty entry and convert it to optional (like `(a|b|) -> (a|b)?`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# query.sh from BreachCompilation - magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3 | |
# works with older bash versions. | |
# patch by Willem <[email protected]> | |
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
if [ "$1" != "" ]; then | |
word1=$(echo $1 | tr A-Z a-z) | |
letter1=$(echo $word1|cut -b1) | |
if [[ $letter1 == [a-zA-Z0-9] ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Installation of __Composer__ to manage project dependancies | |
# save to and run script from `proj_path/scripts/` directory. | |
# verify download by checking file signature | |
EXPECTED_SIGNATURE="$(curl https://composer.github.io/installer.sig)" | |
# download the installer | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Container | |
*/ | |
class Container | |
{ | |
/** | |
* @var array | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Frequency hertz() | |
// PitchClass::A::B::C::D::E::F::G | |
// Accidental::NATURAL::SHARP::FLAT | |
// Octave number() | |
// Note pitchClass() accidental() octave() | |
# note is defined by frequency(Hz) but can translate into pitchClass/accidental/octave | |
# mode is made up of intervals | |
# scale is a mode starting from a tonic, or set of notes with key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following function recursively calls a callback function for each node contained by a root node | |
// (including the root itself): | |
function eachNode(rootNode, callback) | |
{ | |
if (!callback) | |
{ | |
const nodes = [] | |
eachNode(rootNode, function(node) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="x-man-page://netstat">man netstat</a> |
NewerOlder