Skip to content

Instantly share code, notes, and snippets.

@evansalter
evansalter / App.vue
Created October 13, 2019 16:01
Photo Booth Software
<template>
<div id="app">
<div v-if="!cam.connected">
Waiting for camera...
</div>
<div v-if="cam.connected">
<div class="pics">
<img class="pic" v-for="pic in pictures" :key="pic" :src="pic"/>
</div>
<div class="button-div" v-if="!active || countdown !== 0">
def hello_wiki():
print "I'm embedded in a Wiki page!"
if __name__ == '__main__':
hello_wiki()
@evansalter
evansalter / imessage
Last active January 6, 2016 22:20 — forked from aktau/imessage
Send iMessage from the command line using phone number or contact name
#!/bin/sh
if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi
exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit
-- another way of waiting until an app is running
on waitUntilRunning(appname, delaytime)
repeat until my appIsRunning(appname)
tell application "Messages" to close window 1
delay delaytime
end repeat