Skip to content

Instantly share code, notes, and snippets.

View nelyj's full-sized avatar
👁️
25/8

Nelson Jiménez nelyj

👁️
25/8
View GitHub Profile
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Results: {{filtered.length}}</h1>
<table class="table table-striped">
<tr>
<th></th>
<th>
@nelyj
nelyj / appController.js
Created June 2, 2014 14:39
Example of animation with angularjs for google maps
var app = angular.module("AppController", []);
app.controller('MapController',['Publication','$scope',function(Publication,$scope){
$scope.map = {
center: {
latitude: "Address",
longitude: "Address"
},
options: {
animation: google.maps.Animation.BOUNCE
@nelyj
nelyj / gist:10171462
Last active August 29, 2015 13:58
link con imagen
en haml
=link_to root_url, class: 'alguna clase' do
=image_tag "imagen.blablaba"
en erb
<%= link_to root_url, class: 'alguna clase' do %>
<%= image_tag "imagen.blablaba" %>
<% end %>
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
@nelyj
nelyj / deploy.rb
Last active August 29, 2015 13:56
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, 'mydomain.com'
set :deploy_user, 'deploy'
set :deploy_to, '/var/www'
#setup repo details
set :scm, :git
@nelyj
nelyj / gist:6108330
Created July 29, 2013 22:09
Configuración de mi pantalla
xrandr --output VGA-0 --mode 1600x900 --pos 1367x0 --output LVDS --mode 1366x768 --pos 0x0
@nelyj
nelyj / generarRutas.js
Created July 20, 2013 19:36
Generar multiples puntos con jquery y Google maps, los datos son obtenidos desde un JSON ;)
var map;
function initialize() {
var mapOptions = {
zoom: 10,
scaleControl: true,
center: new google.maps.LatLng(-33.5357766,-70.5617116),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map-canvas'),