Skip to content

Instantly share code, notes, and snippets.

View rcotrina94's full-sized avatar

Richard Cotrina rcotrina94

View GitHub Profile
@rcotrina94
rcotrina94 / install-rtl8723de.md
Last active March 16, 2024 13:17
Realtek Semiconductor RTL8723DE Device d723 Linux Ubuntu
@rcotrina94
rcotrina94 / How to use Images as Radio buttons.md
Last active February 22, 2024 13:29
How to use images for radio buttons (input-radio).
@rcotrina94
rcotrina94 / devLearning.md
Last active October 25, 2023 09:19
What do professional developers think of online programming courses such as Codecademy or Code School?

What do professional developers think of online programming courses such as Codecademy or Code School?

by Song Zheng,Developer

90% of the people who use Codecademy and Codeschool to try to learn coding fail. This is because 90% of people who turn to Codecademy and Codeschool are learning programming for the sake of learning how to code. This is why you will not be hired if you list Codecademy and/or CodeSchool badges on your resume.

The other 10% of people who use Codecademy or Codeschool become successful developers because they are learning programming to build a tictactoe game to play with their friends; a ecommerce site so they can sell things; a video chat app to connect with relatives; etc.

There is a very different mentality between the 90% and the 10% who are learning programming, and the successful ones are those who sees learning platforms as means to an end, not the end itself. For example, if you have no programming experience and want to learn how to code, your goal should not be claimi

@rcotrina94
rcotrina94 / regex para staticfiles en Django
Last active May 9, 2023 08:17
Find and Replace Django static files from template
Find what:
`(href|src)="([a-zA-Z0-9/.-]+[^.html])"`
Replace with:
`$1=\"{% static "assets/$2" %}"`
@rcotrina94
rcotrina94 / setup.md
Last active May 6, 2021 09:48
Install Moodle on NGINX
@rcotrina94
rcotrina94 / Installing GNU Health.md
Last active May 16, 2020 04:43
Installing GNU Health

Instalando GNU Health

Antes de instalar GNU Health y sus dependencias se debe tener en cuenta los requisitos de software para el sistema, que son los siguientes:

  • Sistema Operativo: GNU Health es independiente del S.O., sin embargo es muy recomendado el uso de un S.O. Libre (como GNU/Linux or FreeBSD)
  • Motor de Base de datos: PostgreSQL
  • Python: >= 2.7 < 3.0
  • Tryton: = 3.4
  • BASH Shell
@rcotrina94
rcotrina94 / install.md
Last active July 8, 2018 18:44
Instalando PyFBA en Ubuntu 18.04

INSTALAR LIBRERÍAS EN EL SISTEMA

sudo apt-get install libglpk-dev glpk-utils glpk-doc libglpk40 libgmp10 libgmpxx4ldbl

INSTALAR LIBRERÍAS DE PYTHON

mkdir ~/pyfba
@rcotrina94
rcotrina94 / .hgignore
Created June 2, 2017 01:26
Mercurial Ignore File for Django (Python) Projects
# glob syntax
syntax: glob
# Temp files
*.bak
*.orig
*.pyc
*~
# Nodejs
@rcotrina94
rcotrina94 / server.js
Created March 6, 2017 21:28
NodeJS server with CORS headers.
var socket = require('socket.io'),
http = require('http'),
server = http.createServer(function(req, res){
res.setHeader('Access-Control-Allow-Origin', '*');
// res.setHeader('Access-Control-Request-Method', '*');
// res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
// res.setHeader('Access-Control-Allow-Headers', '*');
/*
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);
@rcotrina94
rcotrina94 / RPI2_django_server.md
Last active February 13, 2017 03:09
Turning a Raspberry Pi 2 ready into a portable Django development server.

Actualizar índices de repositorios

sudo apt-get update

Instalar git

sudo apt-get install git

Instalar mercurial

sudo apt-get install mercurial

Instalar instalador de módulos de Python - Instalar pip