by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sammy khaleel
    @Sammykhaleel
    sure, and i just pushed the last changes for the Categories.
    handler = Gmaps.build('Google');
       handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
            markers = handler.addMarkers(<%=raw @hash.to_json %>);
            handler.bounds.extendWith(markers);
            handler.fitMapToBounds();
      });
    Guntars Ašmanis
    @guncha
    Thanks, @Sammykhaleel. How are you going to decide which markers to return in @hash ?
    Sammy khaleel
    @Sammykhaleel
    Hold on, first how do i make the embedded ruby
    in here to work with haml file
    Guntars Ašmanis
    @guncha
    First of all, that thing above is javascript. To render it on the page, you need to use javascript filter
    This message was deleted
    Sammy khaleel
    @Sammykhaleel
    You mean like this
    :javascript
      handler = Gmaps.build('Google');
       handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
            markers = handler.addMarkers(<%=raw @hash.to_json %>);
            handler.bounds.extendWith(markers);
            handler.fitMapToBounds();
      });
    Guntars Ašmanis
    @guncha
    Yeah, and then you can just use standard Ruby interpolation to run code in there:
    :javascript
      alert('#{"hello " * 10}');
    Sammy khaleel
    @Sammykhaleel
    Uncaught SyntaxError: Unexpected token ILLEGAL line 118
                markers = handler.addMarkers(raw @hash.to_json);
    Guntars Ašmanis
    @guncha
    Eh, those ILLEGALS....
    You need to put the Ruby code inside #{blahblah}
    Also, calling raw is not necessary there
    Sammy khaleel
    @Sammykhaleel
    Screen Shot 2014-12-19 at 12.23.34 PM.png
    nice, thanks
    Guntars Ašmanis
    @guncha
    Nice
    Sammy khaleel
    @Sammykhaleel
    I guess now i need to show a single item location on the map.
    Guntars Ašmanis
    @guncha
    Yup
    Sammy khaleel
    @Sammykhaleel
    @guncha i notice the update category is failing, i did migrate is there any i can do?
    Guntars Ašmanis
    @guncha
    @Sammykhaleel, I just made a small update
    Sammy khaleel
    @Sammykhaleel
    Screen Shot 2014-12-19 at 1.46.58 PM.png
    @guncha i used static location from google without having javascript in the show page, we can markers for search purpose what do you think?
    Or to show all the items in a single map
    Sammy khaleel
    @Sammykhaleel
    Just pushed the code to gmap4rails branch, it's weird i can't see the code through the commit but i can see it in the app.
    i mean i can see it in the branch
    oops never mind i can see it now.
    Sammy khaleel
    @Sammykhaleel
    When I realize that I have been blocked for two hours because of a forgotten semicolon
    Guntars Ašmanis
    @guncha
    Haha, yeah, that happens
    Sammy khaleel
    @Sammykhaleel
    Screen Shot 2014-12-19 at 2.59.32 PM.png
    Screen Shot 2014-12-19 at 3.01.45 PM.png
    Sammy khaleel
    @Sammykhaleel
    IMG_1476.jpg
    Sammy khaleel
    @Sammykhaleel
    @laurenismyname
    laurenismyname
    @laurenismyname
    How do you tell an introverted computer scientist from an extroverted computer scientist?
    Hannah Salwen
    @hannahsalwen
    one of them talks?
    laurenismyname
    @laurenismyname
    An extroverted computer scientist looks at <i>your</i> shoes when he talks to you.
    Hannah Salwen
    @hannahsalwen
    haHAhahHEHEhoho
    knock knock
    Sammy khaleel
    @Sammykhaleel
    When customer wants to change specification 2 days before pushing to production
    laurenismyname
    @laurenismyname
    What did one strawberry say to the other?
    Sammy khaleel
    @Sammykhaleel
    Why you so red?
    laurenismyname
    @laurenismyname
    How did we get ourselves into this jam?!?

    A computer science student is studying under a tree and another pulls up on a flashy new bike. The first student asks, “Where’d you get that?”

    The student on the bike replies, “While I was studying outside, a beautiful girl pulled up on her bike. She took off all her clothes and said, ‘You can have anything you want’.”

    The first student responds, “Good choice! Her clothes probably wouldn’t have fit you.”

    Sammy khaleel
    @Sammykhaleel
    When I apply a new CSS for the first time
    Jessica Schmitt
    @JessieSchmitt
    hahahaha
    miss you guys. and lookin good sammy
    Sammy khaleel
    @Sammykhaleel
    Belated happy new year 2015 guys !!!