Skip to content

Instantly share code, notes, and snippets.

View patrickdlogan's full-sized avatar

Patrick Logan patrickdlogan

View GitHub Profile
import 'package:flutter/material.dart';
import 'dart:collection';
void foo() {
Variable fahrenheit;
final celsius =
Variable.formula(() => ((fahrenheit.get() as double) - 32.0) / 1.8, 0.0);
fahrenheit =
Variable.formula(() => ((celsius.get() as double) * 1.8) + 32.0, 32.0);
print(celsius.get() == 0.0);
@patrickdlogan
patrickdlogan / plet.clj
Created November 2, 2012 19:57 — forked from fogus/plet.clj
(defmacro letp
[bindings & exprs]
(let [bindings (partition 2 bindings)
vars (->> bindings (map first) vec)
values (->> bindings (map second))]
`((fn ~vars ~@exprs)
~@values)))
(def a 7)
(def y 2)
@patrickdlogan
patrickdlogan / example output
Created January 31, 2011 05:10 — forked from lukaszkorecki/example output
phantomjs testrunner for qunit
[10:44][~/dev/Mikrob.chrome master]: phantomjs testrunner.js file://`pwd`/test.html
Running tests
file:///Users/optimor/dev/Mikrob.chrome/test/collection_store_test.js:71 Clearing localStorage
Passed: 14, Failed: 1 Total: 15
[10:44][~/dev/Mikrob.chrome master]: echo $?
1
[2010-10-26 10:46:06] [INFO ] Completed in 92170ms (View: 42508, DB: 48324) | 200 OK [http://health.utah.gov/utnedss/search/cmrs.csv?birth_date=&city=&county=&diseases%5B%5D=162&entered_on_end=&entered_on_start=&event_type=&first_reported_PH_date_end=&first_reported_PH_date_start=&gender=&name=&other_data_1=&other_data_2=&outbreak_id=&pregnant_id=&record_number=&sent_to_cdc=&sw_first_name=&sw_last_name=&workflow_state=]
MANPATH=:/usr/local/pgsql/man
ORBIT_SOCKETDIR=/tmp/orbit-patrick
SSH_AGENT_PID=1392
GEM_HOME=/home/patrick/.rvm/gems/ree-1.8.7-2010.02
SHELL=/bin/bash
TERM=dumb
XDG_SESSION_COOKIE=e2690f97f509181a90bd90e14c3f2a21-1287502141.844714-3702232
IRBRC=/home/patrick/.rvm/rubies/ree-1.8.7-2010.02/.irbrc
TRISANO_UID=trisano_admin
OLDPWD=/home/patrick/dev/trisano/webapp
#!/bin/bash
# Derived from http://weierophinney.net/matthew/archives/134-exuberant-ctags-with-PHP-in-Vim.html
exec etags \
--languages=PHP \
--langmap=PHP:+.phpt \
-h ".php" -R \
--exclude="\.git" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cdf \