Skip to content

Instantly share code, notes, and snippets.

View leonkunert's full-sized avatar

Leon Kunert leonkunert

View GitHub Profile
fn calculate_return(cost :f64, given :f64) -> f64 {
return given - cost
}
#[test]
fn calculate_return_test(){
assert_eq!(calculate_return(13.23f64, 15.00f64), 1.77f64);
}
@leonkunert
leonkunert / debug.sublime-snippet
Created May 5, 2014 15:52
PHP - Debug Snippet for Sublime Text
<snippet>
<content><![CDATA[
echo '<pre>';
var_dump(${1:this});
echo '</pre>';
exit;
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>debug</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->