Skip to content

Instantly share code, notes, and snippets.

class Novelty < ActiveRecord::Base
attr_accessible :body, :photo, :title
has_and_belongs_to_many :topics
has_attached_file :photo,
:styles => { :thumb=> "100x100#",:small => "150x150>" },
:url => "/uploads/images/:class/:attachment/:id/:style/:basename.:extension",
:path => ":rails_root/public/uploads/images/:class/:attachment/:id/:style/:basename.:extension"
@abuiles
abuiles / temp
Created December 15, 2009 15:31
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
(global-unset-key (kbd "C-z"))
(global-set-key (kbd "C-z 1") '(lambda () (interactive) (my-shell 1)))
(global-set-key (kbd "C-z 2") '(lambda () (interactive) (my-shell 2)))
(global-set-key (kbd "C-z 3") '(lambda () (interactive) (my-shell 3)))
(global-set-key (kbd "C-z 4") '(lambda () (interactive) (my-shell 4)))
(global-set-key (kbd "C-z 5") '(lambda () (interactive) (my-shell 5)))
(defun my-shell (arg)
(interactive "p")
(let ((arg (or arg 1)))
(shell (format "*sh%d*" arg))))
;; hiding toolbar menubar scrollbar
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
;;Full screen
(defun toggle-fullscreen ()
(interactive)
(set-frame-parameter nil 'fullscreen (if (frame-parameter nil 'fullscreen)
nil
@abuiles
abuiles / temp
Created December 17, 2009 02:39
data Burrito a = Tortilla a | TortillaSola
class Monad (m a) where
return :: m a
m a >>= f :: m a -> (a -> m b) -> m b
..
ahora
instance Monad (Tortilla a) where
@abuiles
abuiles / temp
Created December 17, 2009 02:52
data Burrito a = Tortilla a | TortillaSola
class Monad (m a) where
return :: m a
m a >>= f :: m a -> (a -> m b) -> m b
..
ahora
instance Monad (Burrito a) where
# The api key, secret key, and canvas page name are required to get started
# Tunnel configuration is only needed if you are going to use the facebooker:tunnel Rake tasks
# Your callback url in Facebook should be set to http://public_host:public_port
# If you're building a Facebook connect site,
# change the value of set_asset_host_to_callback_url to false
# To develop for the new profile design, add the following key..
# api: new
# remove the key or set it to anything else to use the old facebook design.
# This should only be necessary until the final version of the new profile is released.
Haga una revisión bibliográfica para encontrar algunas de las habilidades humanas y técnicas requeridas para los siguientes roles. Mencione las referencias bibliográficas que utilizó
a.Analista de requisitos
b.Gerente de proyecto
c.Arquitecto de Software
data Expr f = In (f (Expr f))
data Add e = Add e e
type AddExpr = Expr Add