Skip to content

Instantly share code, notes, and snippets.

@tockrock
tockrock / Info.plist
Created October 5, 2023 01:39 — forked from georgebrock/Info.plist
AppleScript to handle URLs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<!-- Add this section: -->
<key>CFBundleURLTypes</key>
<array>
<dict>

The Composable Architecture

The Composable Architecture(略TCA)はcomposition、test、ergonomicsを念頭に、一貫性のある理解しやすいアプリケーション開発を実現するライブラリーです。SwiftUI、UIKitなどで利用でき、どのAppleプラットフォーム(iOS、macOS、tvOSとwatchOS)でも動作します。

Keybase proof

I hereby claim:

  • I am tockrock on github.
  • I am tockrock (https://keybase.io/tockrock) on keybase.
  • I have a public key ASBd9E9Tf6s9Ennk9Mx01-hw7TMHe63qliXxCa8YKFNVsgo

To claim this, I am signing this object:

@tockrock
tockrock / tweet.scpt
Created October 29, 2011 05:43
AppleScript that tweets from LaunchBar through ttytter, and notifies with growl(growl notify). Based on work by Justin Blanton(@jblanton) http://hypertext.net/2011/05/tweet-via-launchbar
on handle_string(tweet)
if length of tweet ≤ 140 then
set theResult to do shell script "~/bin/ttytter -status=" & quoted form of tweet & " 2>&1"
do shell script "/usr/local/bin/growlnotify -n 'tweet' -m '" & theResult & "' -t 'Success' "
else
set charsOver to (length of tweet) - 140
do shell script "/usr/local/bin/growlnotify -n 'tweet' -m \"You're " & charsOver & " Chars Over\" -t 'fail'"
tell application "LaunchBar"
remain active
end tell
@tockrock
tockrock / .ignore
Created November 30, 2010 13:36
Basic snippets for lilypond files
.DS_Store
<?xml version="1.0" encoding="utf-8" ?>
<ZIP_result>
<result name="ZipSearchXML" />
<result version="1.01" />
<result request_url="http%3A%2F%2Fzip.cgis.biz%2Fxml%2Fzip.php%3Fzn%3D2590124" />
<result request_zip_num="2590124" />
<result request_zip_version="none" />
<result result_code="1" />
<result result_zip_num="2590124" />
<result result_zip_version="0" />
<?xml version="1.0" encoding="utf-8" ?>
<ZIP_result>
<result name="ZipSearchXML" />
<result version="1.01" />
<result request_url="http%3A%2F%2Fzip.cgis.biz%2Fxml%2Fzip.php%3Fzn%3D0660005" />
<result request_zip_num="0660005" />
<result request_zip_version="none" />
<result result_code="1" />
<result result_zip_num="0660005" />
<result result_zip_version="0" />
<p>this is a test</p>
<ul>
<li>list</li>
<li>another list</li>
</ul>
<p>think</p>
<ol>
<!--[AdBanner]-->
<div id="adBanner">
<script type="text/javascript" language="JavaScript">
<!--
var impAcn = "IMPASEG";
var impAco = document.cookie;
var impApos = impAco.indexOf(impAcn + "=");
var impAseg = (impApos != -1) ? impAco.substring(impApos + impAcn.length + 1, (impAco.indexOf("; ", impApos) != -1) ? impAco.indexOf("; ", impApos) : impAco.length) : null;
impAseg = (impAseg) ? unescape(impAseg) : null;
dfasds
testing fork