Skip to content

Instantly share code, notes, and snippets.

View muncman's full-sized avatar

Kevin Munc muncman

View GitHub Profile
@muncman
muncman / Tiny_UISpec_Example.m
Created January 22, 2010 21:45
Just a sample from my first UISpec experiment. Have to look more into before & beforeAll, retain count, etc.
-(void)itShouldUpdateTheOutputFromTheInput {
UIQuery *app = [UIQuery withApplication];
UILabel *outputLabel = [self.app.label text:@"Update Me"];
[app.textField setText:@"testing 1-2-3"];
[app.button touch];
[outputLabel.should.have text:@"testing 1-2-3"];
}
/* R O U N D E D C O R N E R S */
/* TODO: test differing KHTML formats across platforms. */
/* TODO: get version specifics for Opera options. */
.round_all {
-opera-border-radius: 5px;
-o-border-radius: 5px;
-khtml-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en-US' xml:lang='en-US' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>VacationTrade</title>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
</head>
<body>
<p><a href="http://www.munc.com/" rel="bookmark">More info via a relationship link popup</a></p>
<p><a href="http://www.munc.com/" rel="bookmark">More info via a relationship link popup</a></p>
<p><a href="http://www.munc.com/" rel="bookmark">More info via a relationship link popup</a></p>
@muncman
muncman / restore_build_number.sh
Last active July 19, 2018 06:48
Pair of scripts for automatically updating the build number for Xcode projects. The second one restores the number so you have no outgoing version control changes.
#!/bin/sh
# Set in Product | Scheme | Edit Scheme | Build | Post-actions as a new Run Script item.
# echo Restoring build number
# ${PROJECT_DIR}/Scripts/restore_build_number.sh
# Select your target in the "Provide build settings from" dropdown.
set -e
if [ -z "$SRCROOT" ]
then
echo "Run this from the project root."
@muncman
muncman / GistList!.md
Created December 31, 2014 05:58
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

Keybase proof

I hereby claim:

  • I am muncman on github.
  • I am muncman (https://keybase.io/muncman) on keybase.
  • I have a public key ASCPBE4GgohZ2wPDNZCgbLQ0dOZOx9AdSv3v6-MsuoAo6go

To claim this, I am signing this object:

@muncman
muncman / date_picker.dart
Last active May 18, 2020 20:15 — forked from jmolins/date_picker.dart
Add Material date picker, time picker, and Cupertino date-time picker to a flutter app.
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@muncman
muncman / nullable-noodles.dart
Last active January 9, 2023 20:40
Some Dart Nullable Noodlings
void main() async {
oneWay();
anotherWay();
orThisWay();
}
String? getNullable() {
if (DateTime.now().second % 2 == 0) {
return 'not null';
}