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
// Click into one of the categories | |
// Open the developer tools | |
// Paste the code below | |
// Leave the page open until all videos are watched | |
// Only do one category at a time or the "complete" event for the video will fail | |
// You may need to lower the playback speed variable. | |
function asyncWaitSeconds(seconds) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { |
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 |
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. |
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); |
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> |
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. |
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){ |
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| |
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(); |