This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Ball (type) { | |
| this.type = type; | |
| this.color = "red"; | |
| this.getInfo = getBallInfo; | |
| } | |
| function getBallInfo() { | |
| return this.color + ' ' + this.type + ' Ball'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Ball () { | |
| this.type = "round"; | |
| this.color = "red"; | |
| } | |
| Ball.prototype.getBallInfo = function () { | |
| return this.color + ' ' + this.type + ' Ball'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Ball() | |
| { | |
| } | |
| Ball.prototype = (function() | |
| { | |
| var private_stuff = function() | |
| { | |
| // Private code here | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @Push and element onto the end of an array with associative key | |
| * | |
| * @param array $array | |
| * | |
| * @string $key | |
| * | |
| * @mixed $value | |
| * | |
| * @return array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| $(".status").each(function(index) { | |
| $(this).html(to_hoygan($(this).html())); | |
| }); | |
| function to_hoygan(str) | |
| { | |
| str=str.replace(/á/gi, 'a'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| * @author me | |
| * | |