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
# run via: ruby [-Ilib] hilite_bug.rb | |
# ruby [-Ilib] hilite_bug.rb > nanoc_hl.html 2> nokogiri_out.txt | |
begin | |
require 'nanoc' | |
require 'nanoc/filters' | |
require 'nanoc/helpers' | |
include Nanoc::Helpers::HTMLEscape | |
rescue LoadError | |
require 'nanoc3' |
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
#!/usr/bin/env ruby | |
# An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile's | |
# HTTP implementation. | |
# | |
# Author: Jon Maken | |
# License: 3-clause BSD | |
# Revision: 2012-03-25 23:01:19 -0600 | |
require 'net/http' | |
require 'net/https' if RUBY_VERSION < '1.9' |
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
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#if defined(__MINGW64_VERSION_MAJOR) | |
/* XXX why isn't this in sec_api/time_s.h? */ | |
# if defined(_USE_32BIT_TIME_T) | |
# define gmtime_s _gmtime32_s | |
# else | |
# define gmtime_s _gmtime64_s |
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
Win7 Ultimate 32bit SP1 | |
C:\Users\Jon\Documents\RubyDev\ruby-git>git log -5 --oneline | |
5d43f34 merge revision(s) 35451: | |
e050fc1 merge revision(s) 35434: | |
ca27aa8 merge revision(s) 35433: | |
28db237 merge revision(s) 35424: | |
336c45e merge revision(s) 35422: | |
C:\projects\rubyinstaller-git>rake ruby19 local=c:\Users\Jon\Documents\RubyDev\ruby-git dkver=mingw64-32-4.6.3 |
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
/* Copyright (c) 2012 Jon Maken | |
* License: 3-clause BSD | |
* Revision: 2012-06-04 14:35:54 -0600 | |
* | |
* typical Clang/MinGW build recipe: | |
* set CPATH=C:/devlibs/mruby/include | |
* set LIBRARY_PATH=C:/devlibs/mruby/lib | |
* | |
* clang -Wall -O3 -march=native -o mruby_hello.exe mruby_hello.c -lmruby | |
* |
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
#### Revision: 2012-06-06 | |
### Overview | |
Don't be a leech. Swagger over to the Apple Store and pony up ~$30 for the | |
retail Mac OS X Snow Leopard install DVD. Don't whine, just do it. | |
There are a number of blog posts dealing with installing either Snow Leopard or | |
Lion in VirtualBox. None of them worked for my Win7 Ultimate 32bit Dell Studio | |
15 system with a paltry 4GB. Yes, I've been holding out a new Ivy Bridge system |
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
C:\Users\Jon\Documents\CDev\ninja-git>cl -h | |
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 | |
C:\Users\Jon\Documents\CDev\ninja-git>set VCINSTALLDIR="c:\Program Files\Microsoft Visual Studio 10.0\VC" | |
C:\Users\Jon\Documents\CDev\ninja-git>python configure.py --with-gtest=C:\Users\Jon\Documents\CDev\gtest | |
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build. | |
wrote build.ninja. | |
C:\Users\Jon\Documents\CDev\ninja-git>ninja ninja_test |
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
# IMPORTANT: ruby built with same mingw-w64 based toolchain as used to build EM | |
# beware `config.h` diffs due to toolchain header diffs | |
C:\Users\Jon\Documents\CDev\eventmachine-git>ruby --version && gcc --version | |
ruby 2.0.0dev (2012-09-26 trunk 37036) [i386-mingw32] | |
gcc (rubenvb-4.7.2-release) 4.7.2 | |
C:\Users\Jon\Documents\CDev\eventmachine-git>rake compile | |
... | |
linking shared-object rubyeventmachine.so |
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
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
:: EDIT THIS CONFIGURATION | |
:: Remove unnecessary env vars | |
SET ANDROID_HOME= | |
SET ChocolateyInstall= | |
SET GNUWIN= | |
SET INTEL_LICENSE_FILE= |
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
diff --git a/ext/oj/extconf.rb b/ext/oj/extconf.rb | |
index dd082ef..806076a 100644 | |
--- a/ext/oj/extconf.rb | |
+++ b/ext/oj/extconf.rb | |
@@ -1,11 +1,14 @@ | |
require 'mkmf' | |
+require 'rbconfig' | |
extension_name = 'oj' | |
dir_config(extension_name) |