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 / 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>
exports.definition = {
config: {
"URL": "http://192.168.0.15:3000/v/places",
// "debug": 1,
"adapter": {
"type": "restapi",
"collection_name": "Place",
"idAttribute": "id"
},
"headers": { // your custom headers
[
{
id: 1,
name: "Botilleria Uno",
description: "Es una prueba 1",
address: null,
latitude: null,
longitude: null,
created_at: "2015-02-11T16:53:02.070Z",
updated_at: "2015-02-11T16:53:02.070Z"