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 | |
# Change the current directory to the document path. | |
cd "${BB_DOC_PATH%/*}" | |
# Update PATH. | |
PATH=$PATH:/usr/bin/:/usr/local/bin/ | |
PATH=$PATH:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin | |
# Pre-compute the file names used. |
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
on prepareGrowl() | |
tell application "Growl" | |
set the allNotificationsList to {"iTunes"} | |
set the enabledNotificationsList to {"iTunes"} | |
register as application "iTunes" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "iTunes" | |
end tell | |
end prepareGrowl | |
on notify(messageTitle, message) | |
tell application "Growl" to notify with name "iTunes" title messageTitle description ¬ |
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
/** | |
* @file mutex.h | |
* @brief Declares Mutex class. | |
* @author Yutaka Tsutano | |
*/ | |
#ifndef MUTEX_H | |
#define MUTEX_H | |
#ifdef _WIN32 |
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
#include <CoreFoundation/CoreFoundation.h> | |
#include <IOKit/IOKitLib.h> | |
#include <iostream> | |
void set_request_idle(bool request) | |
{ | |
io_registry_entry_t entry = IORegistryEntryFromPath(kIOMasterPortDefault, | |
"IOService:/IOResources/IODisplayWrangler"); | |
if (entry == MACH_PORT_NULL) { |
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> | |
<head> | |
<title>Bookmarklets: Resize Viewport</title> | |
</head> | |
<body> | |
<h1>Bookmarklets: Resize Viewport</h1> | |
<h2>Bookmarklets</h2> |