Skip to content

Instantly share code, notes, and snippets.

View gavargas22's full-sized avatar
🐲

Guillermo Vargas gavargas22

🐲
View GitHub Profile
@gavargas22
gavargas22 / heatmap_example.py
Created October 9, 2019 19:50 — forked from teechap/heatmap_example.py
How to make a heatmap from data stored in Python lists
'''
Most heatmap tutorials I found online use pyplot.pcolormesh with random sets of
data from Numpy; I just needed to plot x, y, z values stored in lists--without
all the Numpy mumbo jumbo. Here I have code to plot intensity on a 2D array, and
I only use Numpy where I need to (pcolormesh expects Numpy arrays as inputs).
'''
import matplotlib.pyplot as plt
import numpy as np
#here's our data to plot, all normal Python lists
@gavargas22
gavargas22 / Component.jsx
Created August 8, 2018 16:00 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
@gavargas22
gavargas22 / instr
Created November 14, 2017 01:41
instructions
1. Open up the terminal
2. cd Desktop then press Enter
3. git clone https://github.com/gavargas22/Lunheng.git
4. We are then installing all the necessary software:
cd Lunheng/scripts -> press Enter
chmod +x install.sh -> press Enter
./install.sh -> press Enter
@gavargas22
gavargas22 / gist:e86e77e84ea80784105a
Last active January 7, 2020 11:50
BigBlueButton on CentOS
#Steps taken to install Big Blue Button in CentOS 6
# we'll work mostly from the /tmp/ directory:
cd /tmp
# install MySQL server
yum install -y mysql-server
service mysqld start
chkconfig mysqld on