- Send short emails. (If things are complicated, ask me to get back to you face-to-face or Skype)
- One topic per email. (If you have some requests about teaching and others about research, send two emails.)
- Highlight important keywords in bold.
- If you want Chat to do something:
- Group all action items together in bullet points at the end of the email.
- If you want to make an appointment:
- Propose 3 slots that you are convenient in the email.
- Attach iCal calendar items
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/env bash | |
#Thanks to Craig Hair for crafting this magic. | |
ARRAY=() | |
ARRAY=( "0:0" | |
"1:Grey" | |
"2:Space Grey" | |
"3:Yellow" | |
"4:Green" | |
"5:Blue" |
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
function run(input, parameters) { | |
const appNames = []; | |
const skipAppNames = []; | |
const verbose = true; | |
const scriptName = 'close_notifications_applescript'; | |
const CLEAR_ALL_ACTION = 'Clear All'; | |
const CLEAR_ALL_ACTION_TOP = 'Clear'; | |
const CLOSE_ACTION = 'Close'; |
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
// TODO: setting window transforms (or mission control) flattens layers... | |
// TODO: Mask image vs path (layer)? | |
/// `NSVisualEffectView`: | |
/// | |
/// A view that adds translucency and vibrancy effects to the views in your interface. | |
/// When you want views to be more prominent in your interface, place them in a | |
/// backdrop view. The backdrop view is partially transparent, allowing some of | |
/// the underlying content to show through. Typically, you use a backdrop view | |
/// to blur background content, instead of obscuring it completely. It can also |
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 is a basic asyncronous shader loader for THREE.js. | |
function ShaderLoader(vertex_url, fragment_url, onLoad, onProgress, onError) { | |
var vertex_loader = new THREE.XHRLoader(THREE.DefaultLoadingManager); | |
vertex_loader.setResponseType('text'); | |
vertex_loader.load(vertex_url, function (vertex_text) { | |
var fragment_loader = new THREE.XHRLoader(THREE.DefaultLoadingManager); | |
fragment_loader.setResponseType('text'); | |
fragment_loader.load(fragment_url, function (fragment_text) { | |
onLoad(vertex_text, fragment_text); | |
}); |
- Close Android File Transfer
- Open Activity Monitor and kill “Android File Transfer Agent”
- Go to where you installed “Android File Transfer.app” (I have it under /Applications)
- Ctrl+click –> “Show package contents”
- Go to Contents/Resources
- Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
- Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body style="background:#fff;"> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js"></script> | |
<canvas id="canvas"></canvas> | |
<script id="jsbin-javascript"> |
- copy your image (
Ctrl+A
andCtrl+C
) - make a new document-sized pure-black layer behind it
- group the black layer and yor image together
- add mask to the group
- enter mask edit mode (
alt+click
on the mask icon/thumbnail) - paste your image in the mask (b/w) and then invert it.
- save it as a 24-bit transparent PNG
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
// ============================================================ // | |
// CAST | |
// ============================================================ // | |
window.chrome = {}; | |
window.chrome.cast = {}; | |
window.chrome.cast.isAvailable = true; | |
window.chrome.cast.initialize = function(a, b, c) { } | |
window.chrome.cast.ApiConfig = function(a, b, c) { | |
// This fakes that chromecast is available so the button appears | |
// call anything other than "available" to fake chromcast dissapearing |
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
/** | |
* Toggle fullscreen function who work with webkit and firefox. | |
* @function toggleFullscreen | |
* @param {Object} event | |
*/ | |
function toggleFullscreen(event) { | |
var element = document.body; | |
if (event instanceof HTMLElement) { | |
element = event; |
NewerOlder