View getMidiNumber.js
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
/** | |
* Get the midi note number of a note string | |
* | |
* @param {string} note | |
* | |
* @returns {number} MIDI note number | |
*/ | |
function getMidiNumber(note) { | |
// Based on 1st octave of each note |
View ParseLaravelSessionStorage.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 | |
namespace App; | |
use Parse\ParseStorageInterface; | |
class ParseLaravelSessionStorage implements ParseStorageInterface | |
{ | |
/** | |
* Parse will store its values in a specific key. |
View bootstrap-sass-mixin-cheatsheet.scss
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
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
View SassMeister-input-HTML.html
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
<div class="container"> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> | |
<div class="block"></div> |
View fb_invite.js
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
// First, open your admin panel on your Facebook page | |
// Click See All in the "Invite Friends" section | |
// Scroll to the bottom of the popup window so all of your friends are loaded | |
// Open your Console in your development tools and enter this Javascript | |
elms=document.getElementsByClassName("uiButton _1sm");for (i=0;i<elms.length;i++){ elms[i].click()}; | |
// If developer tools aren't enabled, paste this in your address bar | |
// Note: You might need to manually type the "javascript:" part if you paste | |
// this because Chrome strips it when you paste it. |
View directory_tree.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 | |
$dir = __DIR__; | |
function gather($dir){ | |
$tree = []; | |
$allFilesAndDirs = glob($dir."/*"); | |
foreach($allFilesAndDirs as $f){ |
View vhost.rb
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/ruby | |
# Get the path in the Sites folder | |
path = ARGV[0] | |
# Get the path in the Sites folder | |
url = ARGV[1] | |
if ARGV[2] == "third" | |
open('/etc/apache2/extra/httpd-vhosts.conf', 'a') { |f| |
View spreadsheet.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 DocDB { | |
private $key; | |
private $url; | |
private $file; | |
private $json; | |
private $rows; | |
private $data = array(); | |
private $columns = array(); |