Skip to content

Instantly share code, notes, and snippets.

View abbood's full-sized avatar
💭
Leading Village.do tech team

Abdullah Bakhach abbood

💭
Leading Village.do tech team
View GitHub Profile
@abbood
abbood / gist:243f58a0fcd4a5aa7995
Last active August 29, 2015 14:01
angular google maps
<!DOCTYPE html>
<html ng-app="angular-google-maps-example">
<head>
<meta charset="UTF-8">
<title>angular-google-maps example</title>
<style>
.angular-google-map {
display: block;
}
@abbood
abbood / gist:a5597fcd11aa4dd9937c
Created May 27, 2014 16:53
custom coffeescript file
$(document).ready ->
$.fn.isAfter = (sel) ->
$(@prev()).is $(sel)
$.fn.isBefore = (sel) ->
$(@next()).is $(sel)
## definitions (good for caching)
menus = ['ul.car', '#price_slider', '#size_slider', 'ul.bed'];
buttons = $('.button'); annotations = $('.annotation')
{
"name": "angular-brunch-seed",
"repo": "scotch/angular-brunch-seed",
"version": "0.3.0",
"main": "_public/js/app.js",
"ignore": [
"**/.*",
"node_modules",
"components"
],
exports.config =
# See docs at http://brunch.readthedocs.org/en/latest/config.html.
conventions:
assets: /^app\/assets\//
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
modules:
definition: false
wrapper: false
paths:
public: '_public'
{
"author": "Your Name",
"name": "package-name",
"description": "Package description",
"version": "0.0.1",
"homepage": "",
"repository": {
"type": "git",
"url": ""
},
source 'https://rubygems.org'
source 'https://rails-assets.org'
gem 'rails', '4.1.1'
gem 'mysql2'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
@abbood
abbood / gist:06cd185fc9e6ab20fe18
Created May 29, 2014 06:16
code to fill google markers
propertyControllers.controller 'PropertyListCtrl', ['$scope', 'Properties', ($scope, Properties) ->
angular.extend $scope,
map:
control: {}
zoom: 3
dragging: false
bounds: {}
center:
latitude:33.889762
longitude: 35.506408
@abbood
abbood / gist:a3525d672be4a4db3210
Created May 29, 2014 06:29
brunch stack coffee script to fill google map markers
.controller('PropertyListCtrl', ['$scope', 'Properties', ($scope, Properties) ->
angular.extend $scope,
map:
control: {}
zoom: 3
dragging: false
bounds: {}
center:
latitude:33.889762
longitude: 35.506408
@abbood
abbood / gist:56a439553196bb938142
Created May 29, 2014 06:32
brunch stack config.coffee
exports.config =
# See docs at http://brunch.readthedocs.org/en/latest/config.html.
conventions:
assets: /^app\/assets\//
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
modules:
definition: false
wrapper: false
paths:
public: '_public'
angular.module('partials', [])
.run(['$templateCache', function($templateCache) {
return $templateCache.put('/partials/nav.html', [
'',
'<ul class="nav">',
' <li ng-class="getClass(\'/todo\')"><a ng-href="#/todo">todo</a></li>',
' <li ng-class="getClass(\'/view1\')"><a ng-href="#/view1">view1</a></li>',
' <li ng-class="getClass(\'/view2\')"><a ng-href="#/view2">view2</a></li>',
'</ul>',''].join("\n"));
}])