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
@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'),
@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 / 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
# 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 / 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 %>
@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
<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>
[{"country":null,"name":"Buscador de trabajos part time","round":21,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"buscador-de-trabajos-part-time"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"hackett-inc"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"hackett-inc--2"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"hackett-inc--3"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"hackett-inc--4"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":null,"industry":null,"executive_account":null,"slug":"hackett-inc--5"},{"country":"Burundi","name":"Hackett Inc","round":0,"formalized":null,"sup_code":nu
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*) /home.php/#/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@nelyj
nelyj / gist:725ec342b25f83859c1c
Created December 16, 2014 14:26
.htacces configuracion
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*) /home.php/#/$1
RewriteRule ^(.*) /index.php/#/$1 [L]
</IfModule>