Skip to content

Instantly share code, notes, and snippets.

View yeco's full-sized avatar

Jasson Cascante yeco

View GitHub Profile
function Ball (type) {
this.type = type;
this.color = "red";
this.getInfo = getBallInfo;
}
function getBallInfo() {
return this.color + ' ' + this.type + ' Ball';
}
function Ball () {
this.type = "round";
this.color = "red";
}
Ball.prototype.getBallInfo = function () {
return this.color + ' ' + this.type + ' Ball';
}
function Ball()
{
}
Ball.prototype = (function()
{
var private_stuff = function()
{
// Private code here
};
/**
* @Push and element onto the end of an array with associative key
*
* @param array $array
*
* @string $key
*
* @mixed $value
*
* @return array
<?PHP
// vraiProxy
// About: License
// Copyright (c) 2010 "Yëco" Jasson Cascante,
// Licensed under WTFPL.
// GET Parameters
//
// Certain GET (query string) parameters may be passed into vraiProxy.php
// to control its behavior, this is a list of these parameters.
(function(){
$(".status").each(function(index) {
$(this).html(to_hoygan($(this).html()));
});
function to_hoygan(str)
{
str=str.replace(/á/gi, 'a');
if($.browser.webkit) {
FB.Canvas.setSize = function(params) {
if (typeof params != "object") {
params = {};
}
params = FB.copy(params || {}, FB.Canvas._computeContentSize());
// Deep compare
if (FB.Canvas._lastSize &&
FB.Canvas._lastSize.width == params.width &&
function resizeImage($file,$scale="",$width="",$height="")
{
// If they wish to scale the image.
if (isset($scale))
{
// Create our image object from the image.
$fullImage = imagecreatefromjpeg($file);
// Get the image size, used in calculations later.
$fullSize = getimagesize($file);
// If there is NOT a thumbnail for this image, make one.
YecoBook-2:Popularidad Yeco$ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:gcollazo/popularidad.git HEAD"
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/recipes/deploy.rb:98: warning: Insecure world writable dir /usr/local/mysql/bin in PATH, mode 040777
* executing "git clone -q git@github.com:gcollazo/popularidad.git /home/webuser/helloworld/releases/20101005162859 && cd /home/webuser/helloworld/releases/20101005162859 && git checkout -q -b deploy 88e9302486e1278f121512255753c4c0c9ecf68b && (echo 88e9302486e1278f121512255753c4c0c9ecf68b > /home/webuser/helloworld/releases/20101005162859/REVISION)"
servers: ["ec2-184-72-184-255.compute-1.amazonaws.com"]
[ec2-184-72-184-255.compute-1.amazonaws.com] executing command
<?php
/**
*
* @author me
*