Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some JavaScript and Perl tweaks

  • Loading branch information...
commit 49fa40398e05c19189b2044291701abf1e677b2e 1 parent 69c09c9
@liyanage liyanage authored
View
8 Clipping Sets/JavaScript.js/prototype.js/OO/class
@@ -0,0 +1,8 @@
+#indent#<#class name#> = Class.create(<#superclass#>, {
+
+ initialize: function(<#constructor args#>) {
+ <#code#>
+ },
+
+ <#methods#>
+};
View
3  Clipping Sets/JavaScript.js/prototype.js/each
@@ -0,0 +1,3 @@
+#indent#each(function (i) {
+ <#code#>
+})
View
3  Clipping Sets/JavaScript.js/prototype.js/method
@@ -0,0 +1,3 @@
+#indent#<#method name#>: function (<#args#>) {
+ <#code#>
+},
View
16 Clipping Sets/JavaScript.js/unittest.js/TestRunner
@@ -0,0 +1,16 @@
+#indent#new Test.Unit.Runner({
+ setup: function() {
+
+ },
+
+ teardown: function() {
+
+ },
+
+ test<#test function#>: function() { with(this) {
+ assertNothingRaised(function() {
+ <#code#>
+ });
+ }}
+});
+
View
1  Clipping Sets/JavaScript.js/unittest.js/assertEquals
@@ -0,0 +1 @@
+#indent#assertEqual(<#value#>, <#actual#>, <#message#>);
View
6 Clipping Sets/JavaScript.js/unittest.js/test function
@@ -0,0 +1,6 @@
+#indent#test<#test name#>: function() { with(this) {
+ assertNothingRaised(function() {
+ <#code#>
+ });
+}},
+
View
BIN  Clipping Sets/Perl.pl/03)OO/ask_and_store_string_method.scpt
Binary file not shown
View
BIN  Clipping Sets/Perl.pl/03)OO/read_stored_string.scpt
Binary file not shown
View
2  Clipping Sets/Perl.pl/06)POD/pod method block
@@ -1 +1 @@
-=head2 <#method#> <#method description#> =head3 Parameters This method expects <#key/value|positional#> parameters. =over =item <#parameter key#> <#parameter value description, use the "item" clipping to add more items...#> =back =head3 Result <#return value description#> =cut
+=head2 <#method#> <#method description#> =head3 Parameters This method expects <#key/value|positional#> parameters. =over =item <#parameter key#> <#parameter value description, use the "item" clipping to add more items...#> =back =head3 Result <#return value description#> =head3 Exceptions <#description of possible exceptions#> =cut
View
9 Clipping Sets/Perl.pl/99)Test-Class/setup and teardown
@@ -0,0 +1,9 @@
+#INDENT#sub <#method name#> : Test(setup) {
+ my $self = shift;
+ <#method body#>
+}
+
+#INDENT#sub <#method name#> : Test(teardown) {
+ my $self = shift;
+ <#method body#>
+}
View
9 Clipping Sets/Perl.pl/99)Test-Class/startup and shutdown
@@ -0,0 +1,9 @@
+#INDENT#sub <#method name#> : Test(startup) {
+ my $self = shift;
+ <#method body#>
+}
+
+#INDENT#sub <#method name#> : Test(shutdown) {
+ my $self = shift;
+ <#method body#>
+}
Please sign in to comment.
Something went wrong with that request. Please try again.