Skip to content

Instantly share code, notes, and snippets.

View jdgarrido's full-sized avatar

ジョセフ·ダミアン·ガリード jdgarrido

View GitHub Profile
{
"company": {
"name": "Real World Problem",
"styleprop": {
"activity_rounded": true
}
},
"projects": [
{
"title": {
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
def after_sign_in_path_for(resource)
sandboxes_path
end
end
<% if( user_signed_in? ) %>
lo que un usuario registrado ve
<% endif %>
cualquier cosa
<% if( user_signed_in? ) %>
lo que un usuario registrado ve
<% endif %>
@jdgarrido
jdgarrido / gist:b2d2ba911e10645e436b
Last active August 29, 2015 14:16
application.html.erb
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= content_for?(:title) ? yield(:title) : "Vizard" %></title>
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Vizard Rails" %>">
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
@jdgarrido
jdgarrido / el_dum.sql
Created October 1, 2014 21:32
glosario
INSERT INTO `glossaries` VALUES (3,'Accountability','pese a no tener una traducción literal en español, hace referencia, por un lado, al deber o responsabilidad que tienen los órganos de la administración pública o agentes públicos de rendir cuentas de sus acciones a los demás órganos del Estado y a los ciudadanos; y por otro, al derecho de estos últimos de fiscalizar e informarse de las acciones de quienes los gobiernan.\r\n Existe Accountability horizontal y vertical: el primero es el control que realizan entre sí los distintos poderes del Estado los cuales pueden examinar, cuestionar y en su caso sancionar actos irregulares cometidos durante el desempeño de los cargos públicos. El segundo, en tanto, se encuentra en el plano ciudadano, llevado a cabo a través de la vía electoral - que evalúa la gestión de las autoridades políticas mediante el voto - o por la vía social - por iniciativas ciudadanas, movimientos sociales y medios de comunicación - los cuales por medio de mecanismos institucionales (como dema
@jdgarrido
jdgarrido / stolen.js
Created September 16, 2014 19:36
stolen.js
<script>
//this code was 'stolen' from
//http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/
//a lot of thanks!!
var haystackText = "";
function findNames(needle, replacement) {
haystackText = document.getElementById("content").innerHTML;
var match = new RegExp(needle, "ig");
var replaced = "";
if (replacement.length > 0) {
GIT
remote: git://github.com/ciudadanointeligente/writeit-rails.git
revision: e56ca9a9a84f8c48f743ffb70459868fa5b0e5dd
specs:
writeit-rails (0.0.4)
rest-client (= 1.6.7)
GIT
remote: git://github.com/jipiboily/monologue.git
revision: a9f7c2636d66e261c5f5d2cf2ed6d154f57c2cdd
@jdgarrido
jdgarrido / style
Created June 24, 2014 21:12
heart beat fontawesome
.fa-heart {
-webkit-animation: fa-heart 1s linear infinite;
-moz-animation: fa-heart 1s linear infinite;
-ms-animation: fa-heart 1s linear infinite;
animation: fa-heart 1s linear infinite;
}
@keyframes "fa-heart" {
0% {
-webkit-transform: scale(1.1);
@jdgarrido
jdgarrido / email.txt
Created June 5, 2014 16:25
raw email
Delivered-To: [email protected]
Received: by 10.194.92.232 with SMTP id cp8csp215303wjb;
Thu, 5 Jun 2014 09:22:28 -0700 (PDT)
X-Received: by 10.60.63.142 with SMTP id g14mr33568683oes.72.1401985348167;
Thu, 05 Jun 2014 09:22:28 -0700 (PDT)
Return-Path: <[email protected]>
Received: from colicura (li491-205.members.linode.com. [50.116.29.205])
by mx.google.com with ESMTP id lb1si11296309oeb.64.2014.06.05.09.22.27
for <[email protected]>;
@jdgarrido
jdgarrido / index.html
Created May 20, 2014 17:12
web video
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
video#bgvid {
position: fixed; right: 0; bottom: 0;
min-width: 100%; min-height: 100%;
width: auto; height: auto; z-index: -100;