This file contains 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
(defun stumpwm-internal-loop () | |
"The internal loop that waits for events and handles them." | |
(loop | |
(run-hook *internal-loop-hook*) | |
(handler-bind | |
((xlib:lookup-error (lambda (c) | |
(if (lookup-error-recoverable-p) | |
(recover-from-lookup-error) | |
(error c)))) | |
(warning #'muffle-warning) |
This file contains 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
(defun stumpwm-internal-loop () | |
"The internal loop that waits for events and handles them." | |
(loop | |
(run-hook *internal-loop-hook*) | |
(handler-bind | |
((xlib:lookup-error (lambda (c) | |
(if (lookup-error-recoverable-p) | |
(recover-from-lookup-error) | |
(error c)))) | |
(warning #'muffle-warning) |
This file contains 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
asdf |
This file contains 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
### Simple RPN Calculator | |
## supported number types: integer, float builtin, extensible | |
## supported operators : +, *, -, / builtin, extensible | |
## | |
## | |
This file contains 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
Tramp: Waiting for prompts from remote shell | |
Tramp: Sending password | |
Tramp: Sending command `exec ssh -l root -o ControlPath=/tmp/tramp.27341nSA.%r@%h:%p -o ControlMaster=yes -e none 192.168.2.55' | |
Tramp: Found remote shell prompt on `192.168.2.55' | |
Tramp: Opening connection for root@192.168.2.55 using scpc...done |
This file contains 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
;; You should have received a copy of the GNU General Public License | |
;; along with GNU Emacs; see the file COPYING. If not, write to | |
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
;; Boston, MA 02111-1307, USA. |
This file contains 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
Tramp: Opening connection for root@192.168.2.55 using ssh... | |
Tramp: Sending command `exec ssh -l root -e none 192.168.2.55' | |
Tramp: Waiting for prompts from remote shell | |
Tramp: Sending password | |
Tramp: Sending command `exec ssh -l root -e none 192.168.2.55' | |
Tramp: Found remote shell prompt on `192.168.2.55' | |
Tramp: Opening connection for root@192.168.2.55 using ssh...done |
This file contains 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
### Simple RPN Calculator | |
## supported number types: integer, float builtin, extensible | |
## supported operators : +, *, -, / builtin, extensible | |
## | |
## | |
This file contains 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
def section_level(example_or_group) | |
if example_or_group.respond_to? :ancestors | |
example_or_group.ancestors.size | |
else | |
example_or_group.example_group.ancestors.size + 1 | |
end | |
end |
This file contains 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
def benchmark n | |
a = (1..n).to_a | |
Benchmark.bmbm do |bb| | |
bb.report('a.map:') do | |
a.map { |x| x * x } | |
end | |
bb.report('a.reverse:') do | |
a.reverse | |
end | |
bb.report('a.reverse.each') do |