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 'memoist' | |
class Thing | |
extend Memoist | |
def a | |
puts "in a body" | |
return 10 | |
10 | |
end | |
memoize :a |
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
#/var/www/vhosts/domain.com/.htaccess | |
############################################ | |
## uncomment these lines for CGI mode | |
## make sure to specify the correct cgi php binary file name | |
## it might be /cgi-bin/php-cgi | |
# Action php5-cgi /cgi-bin/php5-cgi | |
# AddHandler php5-cgi .php |
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
#!/bin/sh | |
# Install OpenERP 7 on Digital Ocean | |
# Fernando Altuzar | |
# Modified script from Carlos E. Fonseca Zorrilla & Mario Gielissen | |
# First: Create a Droplet with CentOS 32 bits | |
# Then: | |
yum -y install wget unzip | |
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm |
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
Minimizar x0 = 3x1 + 8x2 | |
sujeto a: | |
x1+2x2>=8; | |
x1+6x2=12 |
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
Original matrix | |
A = | |
1 3 -1 4 | |
3 -2 4 11 | |
2 1 3 13 | |
Press any key to continue. . . | |
pivot = A(1,1) |