Make sure everything is up to date.
"Command Line Tools" can be downloaded separate from Xcode at
module Jekyll | |
module CustomFrontmatterFilter | |
# Returns back filtered list of posts based on custom frontmatter data types | |
# Usage: {{ site.posts | filter_by_frontmatter:'subcategories','design' }} | |
# => Returns all posts with the frontmatter 'subcategories' containing 'design' | |
def filter_by_frontmatter(posts, frontmatter, type) | |
filtered = [] | |
for post in posts | |
if post.data[frontmatter] | |
filtered.push(post) if post.data[frontmatter].include? type |
/** | |
* @ngdoc filter | |
* @name orderByPreferred | |
* @memberof clrFilter | |
* | |
* @description | |
* Orders collection based on preferred values first | |
* | |
* @param {Object} input - Object you want to order | |
* @param {String} inputKey - Key of the object you want to prefer ordering by |
from ortools.algorithms import pywrapknapsack_solver | |
def main(): | |
# Create the solver. | |
solver = pywrapknapsack_solver.KnapsackSolver( | |
pywrapknapsack_solver.KnapsackSolver. | |
KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER, | |
'test') | |
values = [ 6361805,3746995,3760474,2911334,2237414,2298067,2106000,1964477,1886976,1550016,1843171,2015021,1809475,1607299,1603930,1172621,1745453,1533168,1479254,1644365,1600560,1334362,1290557,1344470,1213056,1266970,579571,1159142,970445,1098490,990662,815443,798595,6739,6739,454896 ] |
I hereby claim:
To claim this, I am signing this object: