Skip to content

Instantly share code, notes, and snippets.

Ahn Bustamante Ahnita

  • Manila
Block or report user

Report or block Ahnita

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Ahnita / cat.rb
Last active Aug 29, 2015
Object Oriented Programming I and II
View cat.rb
class Cat
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
def feed(food)
puts "Mmmmm, " + food + "!"
Ahnita / posts.js
Last active Aug 1, 2016
To create posts using JS
View posts.js
var main =function() {
$('.btn').click(function() {
var post = $('status-box').val();
$('.status-box').keyup(function() {
var postLength = $(this).val().length;
var charactersLeft = 140 - postLength;
View MapBuilder Script
google.maps.event.addDomListener(window, 'load', init);
var map;
function init() {
var mapOptions = {
center: new google.maps.LatLng(MY COORDINATES),
zoom: 15,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.DEFAULT,
You can’t perform that action at this time.