I hereby claim:
- I am p2004a on github.
- I am p2004a (https://keybase.io/p2004a) on keybase.
- I have a public key ASCkyH7WPkmOGWrmCUJdU2R1uSBCQRRrm9p9QcXlBuMS4Qo
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Plots</title> | |
</head> | |
<body> | |
<div> | |
<svg height="504pt" version="1.1" viewBox="0 0 864 504" width="864pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
I hereby claim:
To claim this, I am signing this object:
// SPDX-FileCopyrightText: 2015 Marek Rusinowski | |
// SPDX-License-Identifier: MIT | |
#include <memory> | |
#include <cstdio> | |
template<typename F> | |
class defer_finalizer { | |
F f; | |
bool moved; | |
public: |
Change values in lines 77-81 to change distribution of randomized variables.
The test uses GNU Linear Programming Kit to validate solutions. You have to install this library in your system to use it. Under debian/ubuntu install package libglpk-dev
.
You have to provide implementation of simplex in function with signature:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>iframe runner</title> | |
<script src="http://ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://ajaxorg.github.io/ace-builds/src-min-noconflict/ext-language_tools.js" type="text/javascript" charset="utf-8"></script> | |
<script src="main.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> |
(function(a,b){Array.prototype.slice.call(document.getElementsByClassName('tex'), 0).forEach(function(e){e.parentNode.replaceChild(document.createTextNode('$'+e.alt.replace(/\\aligned/g,'\\begin{aligned}').replace(/\\endaligned/g,'\\end{aligned}').replace(/&&/g,'\\\\')+'$'), e); });b=document.createElement('script');b.type='text/x-mathjax-config';b.appendChild(document.createTextNode("MathJax.Hub.Config({tex2jax:{inlineMath: [['$','$']]}});"));document.head.appendChild(b);a=document.createElement('script');a.src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';document.head.appendChild(a);}()); |
#!/usr/bin/python | |
import sys, time, re, urllib2, hashlib, pynotify | |
def get_site_hash(url): | |
opener = urllib2.build_opener() | |
opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36')] | |
u = opener.open(url) | |
data = u.read() | |
return hashlib.sha256(data).hexdigest() |
/* | |
Copyright 2013 Marek "p2004a" Rusinowski | |
*/ | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <ctime> | |
typedef unsigned short int uchar; |