I hereby claim:
- I am hidde-jan on github.
- I am hiddejan (https://keybase.io/hiddejan) on keybase.
- I have a public key ASBXijiDtzCGrZn_G3hpJYy8JD0WhlRrqTXs_iAjZbvdDQo
To claim this, I am signing this object:
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
STDERR.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' |
I hereby claim:
To claim this, I am signing this object:
function easygplot( A ) | |
%EASYGPLOT What gplot should do by default. | |
% EASYGPLOT puts all nodes on a circle equidistantly starting at (1, 0) | |
% and going counter clockwise. 2-way edges are plotted in black, edges | |
% from node i to node j with i < j are plotted in blue, and edges from | |
% node j to i with j > i are plotted in red. | |
% | |
% It's assumed that A(i,j) = 1 if there is an edge from j into i, and | |
% A(i,j) is zero otherwise. |
# Activate the gem you are reporting the issue against. | |
gem 'activerecord', '4.0.0' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
function [ opt, x_opt, diagnostics ] = solveportfolio( C, r, alpha ) | |
%SOLVEPORTFOLIO Solve the portfolio problem. | |
% Minizing the risk for investing in `n` different opportunities, while | |
% keeping the expected return on investment above `alpha`. | |
% | |
% This solves the following QD: | |
% | |
% min x' C x | |
% | |
% st. sum(x) = 1 |
[default] Importing base box 'lucid32'... | |
[default] The guest additions on this VM do not match the install version of | |
VirtualBox! This may cause things such as forwarded ports, shared | |
folders, and more to not work properly. If any of those things fail on | |
this machine, please update the guest additions and repackage the | |
box. | |
Guest Additions Version: 4.0.2 | |
VirtualBox Version: 4.1.4 | |
[default] Matching MAC address for NAT networking... |
<%= form_for(@user) do |f| %> | |
<% if @user.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> | |
<ul> | |
<% @user.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
""" | |
Wrapper for loading templates from "templates" directories in INSTALLED_APPS | |
packages, prefixed by the appname for namespacing. | |
This loader finds `appname/templates/index.html` when looking for something | |
of the form `appname/index.html`. | |
""" | |
from django.template import TemplateDoesNotExist | |
from django.template.loaders.app_directories import app_template_dirs, Loader as BaseAppLoader |