Skip to content

Instantly share code, notes, and snippets.

View matismasters's full-sized avatar

Matis matismasters

View GitHub Profile
users can
search for girls using only a keyword
use advance search to search for girls
see results paginated
watch girls profiles
score/rate girls in all the listed aspects
follow girls updates of their profiles
have lists of favorite girls (the favorite girls are also followed )
upload pictures by themselves
comment on girls, trailers, galleries, photos, profiles, reviews
var __li_padding = 33;
var __pointer_half_width = 8;
function set_active_position(){
set_position(calculate_position($('#block-menu-menu-ourwhiskytopmenu .content .menu li.active-trail')));
}
function set_position(distance){
$('.menu_pointer_img').css('left',(distance+"px"));
}
function calculate_position(the_li){
var the_li = $(the_li);
Miembros actuales
* Ian Gillan - Voz y Armónica
* Steve Morse - Guitarra
* Roger Glover - Bajo
* Don Airey - Teclado
* Ian Paice - Batería
Miembros anteriores
* Jon Lord - Teclado
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
if [[ -n "$PS1" ]] ; then
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@matismasters
matismasters / gist:902827
Created April 5, 2011 01:14
Ejemplo de leer desde el teclado 04-04-2011 CTC-ORT Colonia
public class Main {
public static void main (String[] args) {
System.out.print("Escribi algo: ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String teclado = null;
try {
teclado = br.readLine();
} catch (IOException ioe) {
System.out.println("IO error");
@matismasters
matismasters / gist:943098
Created April 26, 2011 20:45
HTML y JS para GMAPS
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAALo9aqudJX-CndJlG93sJ1hT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQ3t2QaEC2O7tWK6G8CATgheBuwIQ" type="text/javascript"></script>
<div id="main_wrapper">
<div id="map_canvas" style="width: 800px; height: 800px"></div>
</div>
<script type="text/javascript">
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(-31.8, -55.33333), 13);
map.setUIToDefault();
function createMarker(point, label)
{
class Frecuency < ActiveRecord::Base
belongs_to :company
belongs_to :from_place, :class_name => "Place", :foreign_key => "from_place_id"
belongs_to :to_place, :class_name => "Place", :foreign_key => "to_place_id"
has_many :frecuency_lines
def name
"desde " + from_place.name + " hasta " + to_place.name + " a las " + from_time.strftime("%H:%M")
end
def short_name
class Frecuency < ActiveRecord::Base
belongs_to :company
belongs_to :from_place, :class_name => "Place", :foreign_key => "from_place_id"
belongs_to :to_place, :class_name => "Place", :foreign_key => "to_place_id"
has_many :frecuency_lines
def name
"desde " + from_place.name + " hasta " + to_place.name + " a las " + from_time.strftime("%H:%M")
end
def short_name
@matismasters
matismasters / gist:1029159
Created June 16, 2011 12:45
errors on rvm install
matis:~$ rvm --trace install 1.8.7
+[/home/matis/.rvm/scripts/cli] : 421 : __rvm_parse_args() $ [[ -z '' ]]
+[/home/matis/.rvm/scripts/cli] : 422 : __rvm_parse_args() $ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/home/matis/.rvm/scripts/cli] : 422 : __rvm_parse_args() $ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/home/matis/.rvm/scripts/cli] : 577 : __rvm_parse_args() $ [[ -z '' ]]
+[/home/matis/.rvm/scripts/cli] : 577 : __rvm_parse_args() $ [[ -n '' ]]
+[/home/matis/.rvm/scripts/cli] : 579 : __rvm_parse_args() $ [[ 0 -eq 1 ]]
+[/home/matis/.rvm/scripts/cli] : 579 : __rvm_parse_args() $ [[ -n '' ]]
+[/home/matis/.rvm/scripts/cli] : 14 : __rvm_parse_args() $ [[ -n install ]]
+[/home/matis/.rvm/scripts/cli] : 16 : __rvm_parse_args() $ rvm_token=install
@matismasters
matismasters / ejercicio_motosierras.php
Created June 25, 2011 19:42
Ejercicio Motosierras
<?php
/*
* Ejercicio 1
*/
function promedio_motosierra($gasto_en_monte_forestado,$gasto_en_monte_natural,$gasto_en_monte_natural_accidentado){
return ($gasto_en_monte_forestado + $gasto_en_monte_natural + $gasto_en_monte_natural_accidentado)/3;
}
function promedio_motosierra_chica(){
return promedio_motosierra(1,1.5,2);
}