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
| module Idea | |
| class Generator | |
| def actions | |
| @actions ||= %w{read write design contemplate} | |
| end | |
| def objects | |
| @objects ||= ['code', 'books', 'art', 'poetry', 'blogs'] | |
| end | |
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
| // bookmarklet to introspect the source of current page | |
| javascript:(function(d,h){h=d.documentElement.innerHTML;d.open();d.write('<pre>'+('<!DOCTYPE html><html>'+h+'</html>').replace(/[<>]/g,function(m){return{'<':'<','>':'>'}[m]})+'</pre>')})(document); |
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
| var calculator = { | |
| add: function (a, b) { | |
| return a + b | |
| }, | |
| subtract: function (a, b) { | |
| return a - b | |
| }, | |
| multiply: function (a, b) { | |
| return a * b | |
| }, |
NewerOlder