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
#requires -version 2.0 | |
# Author: Jon Maken | |
# License: 3-clause BSD | |
# Revision: 2013-03-11 01:39:59 -0600 | |
# | |
# TODO: | |
# - extract generics into a downloadable utils helper module | |
# - add proper try-catch-finally error handling | |
# - support x86 and x64 builds |
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
#requires -version 2.0 | |
# Author: Jon Maken | |
# License: 3-clause BSD | |
# Revision: 2013-03-11 00:37:25 -0600 | |
# | |
# TODO: | |
# - extract generics into a downloadable utils helper module | |
# - add proper try-catch-finally error handling | |
# - support x86 and x64 builds |
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
#requires -version 2.0 | |
# Author: Jon Maken | |
# License: 3-clause BSD | |
# Revision: 2013-03-04 18:48:14 -0600 | |
# | |
# TODO: | |
# - extract generics into a downloadable utils helper module | |
# - add try-catch-finally error handling | |
# - add checkpoint support |
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
#require -version 2.0 | |
function invoker($data, $fcn) { $fcn.Invoke($data) } | |
$sport = 'ski' | |
$lambda = { param ($who) write-host "Hello $who, do you $sport" } | |
# direct call with mixed array of mixed values | |
& $lambda 'Foo', 7 |
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
#requires -version 2.0 | |
# Author: Jon Maken | |
# License: 3-clause BSD | |
# Revision: 2013-03-11 01:24:20 -0600 | |
# | |
# TODO: | |
# - extract generics into a downloadable utils helper module | |
# - add try-catch-finally error handling | |
# - add checkpoint support |
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: 2013-01-09 12:34:09 -0600 | |
getYahooStockUrl <- function(symbol, start, end, type="m") { | |
# Creates a Yahoo URL for fetching historical stock data | |
# | |
# Args: | |
# symbol - the stock symbol for which to fetch data | |
# start - the date (CCYY-MM-DD) to start fetching data | |
# end - the date (CCYY-MM-DD) to finish fetching data | |
# type - daily/monthly data indicator ("d" or "m") |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"highlight_line": true, | |
"caret_style": "wide", | |
"fade_fold_buttons": false, | |
"default_line_ending": "unix", | |
"fallback_encoding": "UTF-8", |
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
import numpy as np | |
from cvxopt import matrix, printing, solvers | |
# configuration - turn down the volume and set output formatting | |
solvers.options['show_progress'] = False | |
solvers.options['LPX_K_MSGLEV'] = 0 | |
printing.options['dformat'] = '% .3f' | |
# MINIMIZE - portfolio of current bond prices |
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
From 6ba6eebc2e7dd309c9113ebfbb8c8e0e90542d21 Mon Sep 17 00:00:00 2001 | |
From: Sokolov Yura 'funny-falcon <[email protected]> | |
Date: Sun, 2 Sep 2012 13:46:17 +0400 | |
Subject: [PATCH 1/4] array.c: steal shared array's container when | |
ARY_SHARED_NUM == 1 | |
- Do not allocate new memory in rb_ary_modify when ARY_SHARED_NUM == 1 | |
and length almost same. | |
- Store ARY_CAPA instead of RARRAY_LEN in ary_make_shared, to make it useful | |
- Fix rb_ary_sort_bang accordantly |
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) |