Ruby 1.9.3-p0 requires a minor patch to make ruby-debug19 work. If you have
ruby-build and rbenv installed, these scripts will install ruby-1.9.3-p0.
curl https://raw.github.com/gist/1270704/install-ruby-1.9.3-p0.sh | sh| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <float.h> | |
| int main | |
| (int argc | |
| ,char *ac []){int i, count = argc - 1; | |
| double * dvalues=malloc(01- 01+count* | |
| sizeof(double)+1); double mi=DBL_MAX,ran=.0,ma =DBL_MIN,mo;for(i= 00; argc>1 | |
| &&i<count;i=i+8-7) {double val = atof(ac[i+1]) ;if(23&&val<mi)mi= val;if(val |
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| def adf2mp3(input_path, output_path, buffer_size=1024*1024): | |
| print 'Converting', output_path | |
| input_file = open(input_path, 'rb') | |
| output_file = open(output_path, 'wb') | |
| for read_buffer in iter(lambda: input_file.read(buffer_size), ''): |
| # encoding: utf-8 | |
| require 'bench_press' | |
| require 'json' | |
| require 'yajl' | |
| require 'msgpack' | |
| extend BenchPress | |
| reps 10_000 |
| diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el | |
| index 157b2dd..f3807b7 100644 | |
| --- a/lisp/term/ns-win.el | |
| +++ b/lisp/term/ns-win.el | |
| @@ -1263,6 +1263,11 @@ the operating system.") | |
| (add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
| +(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
| +(defun ns-toggle-fullscreen () |
| find . -name \.AppleDouble -exec rm -rf {} \; |
| $.fn.extend | |
| myplugin: (options) -> | |
| self = $.fn.myplugin | |
| opts = $.extend {}, self.default_options, options | |
| $(this).each (i, el) -> | |
| self.init el, opts | |
| self.log el if opts.log | |
| $.extend $.fn.myplugin, | |
| default_options: |
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| # From Bryan Liles on the Practicing Ruby Discussion List | |
| 1. TDD is a great tool. As a tool, you'll use it when appropriate. | |
| TATFT mostly means that you should be thinking about how you can put | |
| whatever you are creating under test at all times. Writing tests for | |
| the sake of writing tests is silly. | |
| 2. Like Gregory stated, brittle tests aren't helping anyone. Think | |
| about the ingress/egress points of your objects at all times. |