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
// This script converts the active Google Doc to HTML with custom formatting for | |
// the Drupal footnotes module (https://www.drupal.org/project/footnotes) | |
function onOpen(e) { | |
DocumentApp.getUi().createAddonMenu().addItem('Convert', 'ConvertGoogleDocToCleanHtml').addToUi(); | |
} | |
function ConvertGoogleDocToCleanHtml() { | |
var body = DocumentApp.getActiveDocument().getBody(); |
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
// This script converts the active Google Doc to HTML with custom formatting for | |
// the Drupal footnotes module (https://www.drupal.org/project/footnotes) | |
function onOpen(e) { | |
DocumentApp.getUi().createAddonMenu().addItem('Convert', 'ConvertGoogleDocToCleanHtml').addToUi(); | |
} | |
function ConvertGoogleDocToCleanHtml() { | |
var body = DocumentApp.getActiveDocument().getBody(); |
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 | |
# Monitors an IP address to see if it is accessible. Useful for uptime monitoring and testing. | |
# Ex: bash ping-checker.sh 8.8.8.8 | |
while true | |
do | |
ping -c1 $1 | grep -q '0 packets received' && echo 'down' | |
ping -c1 $1 | grep -q '1 packets received' && echo 'up' | |
sleep 120 | |
done |
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
$('#makePicks .pickContainer').each(function( index ) { | |
var len = $(this).find('.teamSelection').length; | |
var random = Math.floor( Math.random() * len ) + 1; | |
$(this).find('.teamSelection').eq(random-1).click(); | |
}); |
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
public class yes extends Thread{ | |
static String yes; | |
public void run(){ | |
for(;;){ | |
if(yes == null){ | |
System.out.println("y"); | |
} | |
else{ | |
System.out.println(yes); | |
} |