This file contains hidden or 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
import React, { useRef, useEffect, useState, useCallback } from 'react'; | |
import p5 from 'p5'; | |
// Assuming Link and ArrowLeftIcon are used elsewhere or can be removed if not needed for this component directly | |
// import { Link } from 'react-router-dom'; | |
// import { ArrowLeftIcon } from 'lucide-react'; | |
// Ensure the CSS file exists and is correctly linked if needed | |
// import './connect-the-tequilas.css'; | |
// --- Interfaces --- | |
interface P5Instance extends p5 { |
This file contains hidden or 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
import React, { useRef, useEffect, useState, useCallback } from 'react'; | |
import p5 from 'p5'; | |
import { Link } from 'react-router-dom'; | |
import { ArrowLeftIcon } from 'lucide-react'; | |
import './connect-the-tequilas.css'; | |
interface P5Instance extends p5 { | |
updateWithProps: (props: { level: number }) => void; | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) |