This file contains hidden or 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
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); |
This file contains hidden or 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
(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) |
This file contains hidden or 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
[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 |
This file contains hidden or 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
[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=] |
This file contains hidden or 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
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 |