Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Scripting apps and making games

Zachary Yaro ZMYaro

💻
Scripting apps and making games
View GitHub Profile
@ZMYaro
ZMYaro / mcu_compare.html
Created Jul 13, 2017
MCU Movie Compare-O-Matic
View mcu_compare.html
<!DOCTYPE html>
<html>
<head>
<title>MCU Movie Compare-O-Matic</title>
<style type="text/css">
html,
body {
width: 100%;
height: 100%;
margin: 0;
@ZMYaro
ZMYaro / sleep_sort.html
Last active May 23, 2017
A JavaScript implementation of sleep sort - https://jsfiddle.net/ZMYaro/Lqgbar98
View sleep_sort.html
<!DOCTYPE html>
<html>
<head>
<title>Sleep Sort Demo</title>
<script type="text/javascript">
var length, /** The length of the array being sorted. */
inputForm, /** The form wrapping the input field and submit button. */
inputFieldset, /** The fieldset wrapping the input field and submit button. */
inputField, /** The input field itself. */
inputDisp, /** The element where the parsed input will be printed. */
View counter.html
<!DOCTYPE html>
<!-- Simple counter -->
<!-- Written by Zachary Yaro in about a minute -->
<html>
<head>
<script type="text/javascript">
function countDown() {
localStorage.count = parseInt(localStorage.count) - 1;
document.getElementById('count').innerHTML = localStorage.count;
}
@ZMYaro
ZMYaro / wave_reply_bookmarklet.js
Created Mar 3, 2014
Click when reading a message in Gmail to turn the message into a wave where you can continue the conversation. Note that it will only take the first expanded message.
View wave_reply_bookmarklet.js
javascript:(function() {
var sub = document.getElementById("canvas_frame").contentDocument.getElementsByClassName("hP")[0].innerHTML;
var url = location.href.replace("#", "%23");
var msg = "";
var msgDiv = document.getElementById("canvas_frame").contentDocument.getElementsByClassName("ii")[0];
msg += msgDiv.children[0].innerText;
@ZMYaro
ZMYaro / notif_shim.js
Last active Jan 23, 2016
Chrome Notifications API Shim
View notif_shim.js
/* Maps functions from the Chrome notifications API to the WebKit
* notifications API so Chrome notifications API functions may be used
* in older versions of Chrome (and other WebKit-based browsers).
*/
(function() {
if (!window.chrome) {
window.chrome = {};
}
if(!chrome.notifications && window.webkitNotifications) {
@ZMYaro
ZMYaro / biogrid_ascii.txt
Created Jul 20, 2013
BioGrid ASCII logos
View biogrid_ascii.txt
___ ____
\ / \
___/ __ / __ ___ _\
\ \ / \ \ / \ \ \ / \
___/ / \__/ \____/ / / \__/
___ _____
| | |
___| ___ | __ ___ ___|
You can’t perform that action at this time.