Skip to content

Instantly share code, notes, and snippets.

View geoom's full-sized avatar
🏠
Working from home

George Mejia geoom

🏠
Working from home
View GitHub Profile
@geoom
geoom / Jade.tmLanguage
Created September 11, 2013 11:40
jade syntax highlighting to sublime text 2, create a folder named "jade" on sublime's packages path, then paste this file within jade folder
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>jade</string>
</array>
<key>keyEquivalent</key>
<string>^~J</string>
@geoom
geoom / install java on debian
Last active December 20, 2015 06:48
Steps to install java oracle in debian
//Download <jdk-version>.tar.gz
cd Downloads // go to downloads folder
tar -xvf <jdk-version>.tar.gz // decompress
sudo mkdir -p /usr/lib/jvm/<jdk-version> // create location directory
sudo mv <jdk-version>/* /usr/lib/jvm/my-jdk-version/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/my-jdk-version/bin/java" 1 // install jre
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/my-jdk-version/bin/javac" 1 // install compiler
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/my-jdk-version/bin/javaws" 1 // install java web start
@geoom
geoom / python enviroment
Created July 7, 2013 11:26
python enviroment
LINUX: linux se lleva muy bien con python por lo que recomiendo su uso para el desarrollo de aplicaciones en python, entre otros beneficios (facilidad de desarrollo y para el pase a produccion, todo esto tiene que ver con la codificacion, los permisos, la seguridad, etc). Cuando trabaje en windows todo parecia muco mas facil hasta que el proyecto me demandaba librerias externas, en en este caso solo para adapatar esos modulos al proyectos tenia problemas con los binarias de esas librerias que no encontraban un ruta en el registro de windows, la solucion fue modificar los registros pero esto es algo ariesgado y fastidioso tambien, bueno.
PYTHON: Trabajen con python 2.7.2+ (esta version ya viene instalada con linux por defecto en lso distros ubuntu, mint, no todos), el python 3 no he usado pero si me he tomado con algunos problemas en los foros sobre el, luego a veces incluso es necesario pensar con que implementacion de python se va a trabajar (CPython, Jython, Pypy son los mas conocidos) , es que viene por
@geoom
geoom / south instructions
Last active December 19, 2015 10:49
basic commands for using south (tested in ubuntu)
/* -----------------------------------------
Installation
----------------------------------------- */
pip install south // install south app
// added south to INSTALLED_APPS in settings
python manage.py syncdb // create the app's models that we don't need migrate (auth, contenttypes, session, admin, south, other instaled apps ...)
/* -----------------------------------------
Working with a new app
----------------------------------------- */
@geoom
geoom / gist:5849204
Created June 24, 2013 10:39
CSS Media Queries for All Devices
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* STYLES GO HERE */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
Run this in your command line to make the process begin:
$ curl -o ko3_structure.sh https://raw.github.com/gist/1702555/ko3_structure.sh && ./ko3_structure.sh
@geoom
geoom / gist:5746809
Created June 10, 2013 06:03
Hotel management -
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdio.h>
#include<dos.h>
class hotel
{
int room_no;
char name[30];
@geoom
geoom / less instructions
Last active December 18, 2015 04:59
basic commands for using less (tested in debian)
/* -----------------------------------------
Install node.js and npm in Debian
----------------------------------------- */
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
@geoom
geoom / sass and compass instructions
Created June 7, 2013 13:29
basic commands for using sass and compass (tested in debian)
/* -----------------------------------------
Install Ruby and RubyGems in Debian
----------------------------------------- */
$ sudo apt-get install ruby1.9.1
$ sudo apt-get install rubygems
/* -----------------------------------------
Using Saas
----------------------------------------- */
@geoom
geoom / nodejs instrucctions
Last active December 18, 2015 04:59
basic commands for using nodejs (tested in debian)
/* -----------------------------------------
Install node.js and npm in Debian
----------------------------------------- */
*firts way (recommended):
sudo apt-get install python-software-properties python g++ make
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm