Skip to content

Instantly share code, notes, and snippets.

# Copyright 2011 Hakan Kjellerstrand [email protected]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
"""Glop example: the Stigler diet."""
from google.apputils import app
from ortools.linear_solver import pywraplp
def main(_):
# Commodity, Unit, 1939 price (cents), Calories, Protein (g), Calcium (g), Iron (mg), Vitamin A (IU), Thiamine (mg), Riboflavin (mg), Niacin (mg), Ascorbic Acid (mg)
data = [
['Wheat Flour (Enriched)', '10 lb.', 36, 44.7, 1411, 2, 365, 0, 55.4, 33.3, 441, 0],
"""Glop simple example."""
from google.apputils import app
from ortools.linear_solver import pywraplp
def main(_):
# Instantiate a Glop solver, naming it SolveSimpleSystem.
solver = pywraplp.Solver('SolveSimpleSystem',
@spatzle
spatzle / Dockerfile
Created December 16, 2013 17:15 — forked from jamtur01/Dockerfile
FROM ubuntu:12.04
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk curl git-core build-essential bzr
RUN mkdir -p /tmp/downloads
# install go
RUN curl -sf -o /tmp/downloads/go1.1.1.linux-amd64.tar.gz -L https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz
RUN mkdir -p /opt && cd /opt && tar xfz /tmp/downloads/go1.1.1.linux-amd64.tar.gz
# install jenkins
RUN curl -sf -o /opt/jenkins-1.523.war -L http://mirrors.jenkins-ci.org/war/1.523/jenkins.war
#!/usr/bin/env node
//please requist your app token from
//https://trello.com/1/connect?key=yourkey&name=git-hook&expiration=never&response_type=token&scope=read,write
var key = "your key";
var token = "your token";
//https://trello.com/board/-/4e9003324a517dad44465056
var board_id = "4e9003324a517dad44465056";
var Trello = require("node-trello");
Name: play
Version: 1.2.3
Release: 1%{?dist}
Summary: Play Framework
Group: System Environment/Daemons
License: Apache License, Version 2
URL: http://www.playframework.org/
Source0: http://download.playframework.org/releases/%{name}-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
<fields>
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="title" indexed="true" stored="true" type="text" />
<field name="desc" indexed="true" stored="true" type="text" />
<field name="_version_" type="long" indexed="true" stored="true"/>
</fields>
<uniqueKey>id</uniqueKey>
<requestHandler name="/update" class="solr.UpdateRequestHandler" >
<lst name="defaults">
<str name="update.chain">uuid</str>
</lst>
</requestHandler>
<updateRequestProcessorChain name="uuid">
<processor class="solr.UUIDUpdateProcessorFactory">
<str name="fieldName">id</str>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
Name: jruby
Version: 1.6.4
#Version: 1.7.3
Release: 1%{?dist}
Summary: Pure-Java Implementation of the Ruby Programming Language
Group: Development/System
License: Multiple
URL: http://www.jruby.org
Source0: http://jruby.org.s3.amazonaws.com/downloads/%{version}/%{name}-bin-%{version}.tar.gz
@spatzle
spatzle / .gitignore
Created October 3, 2012 16:31 — forked from jbarciauskas/StatsD.php
PHP client for StatsD - forked from jbarciauskas - adding gauges
Merge.class.php
Util.class.php
WSSoapClient.class.php
.svn