Skip to content

Instantly share code, notes, and snippets.

View jdgarrido's full-sized avatar

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

View GitHub Profile
@jdgarrido
jdgarrido / child.css
Created October 7, 2015 15:19
pal observatorio noticias
#todas_las_noticias {
div:nth-child(1) {
div:nth-child(1) {
background-color: rojo;
}
div:nth-child(2) {
background-color: azul;
}
}
# linea 37 # <% @policy_problems.each_with_index do |policy, i| %>
# linea 39 # <h4><li><%= policy.title %> - <%= i+1 %></li></h4>
<script>
$(document).ready(function(){
if (RegExp('tour', 'gi').test(window.location.search)) {
introJs().setOption('doneLabel', 'Next page').start().oncomplete(function() {
window.location.href = '/demo/1/stage1?tour=true';
});
$('.introjs-bullets li a')[0].className = 'active'; //this line add to the first element the active class
}
})
</script>
@jdgarrido
jdgarrido / gist:812848efc59e25aea417
Created August 19, 2015 13:22
mensaje validacion angular
$scope.messages = {response: "", message: ""}
$http.put('/projects/' + $scope.current_project.id, $scope.current_project)
.success(function (data){
$scope.messages = { response: true, message: "Project updated!"}
})
.error(function(){
$scope.messages = { response: false, message: "Error while updating Project!"}
});

title: mi titulo proyectos:

  • name: proyecto_01 history:
    • txt: 1 enero, lanzamiento
    • txt: 5 marzo, mil usuarios
    • txt: 14 junio, aparicion prensa
  • name: proyecto_02 history:
$negro : #000;
body {
margin: 0px
.head {
background-color: #CCC;
h2 {
font-size: 24px;
}
ul {
@jdgarrido
jdgarrido / _config.yml
Last active August 29, 2015 14:24
un reporte
# Site settings
title: NEBE
email: [email protected]
description: "NEBE es un proyecto desarrollado por el ISS e Hivos de Holanda, Lidema de Bolivia y la Universidad San Francisco de Quito de Ecuador que se propone de estudiar los impactos de la nacionalización sobre los conflictos y la cooperación alrededor de las actividades extractivas en Bolivia y Ecuador."
baseurl: "//nebe.ciudadanointeligente.org" # the subpath of your site, e.g. /blog/
url: "//nebe.ciudadanointeligente.org" # the base hostname & protocol for your site
twitter_username: "@proyectonebe"
bootstrap_version: "3.3.2"
jquery_version: "2.1.3"
google_analytics: "UA-60671039-1"
@jdgarrido
jdgarrido / script.js
Created June 19, 2015 16:17
capture info from google search
function myFunction() {
var active_ss = SpreadsheetApp.getActiveSpreadsheet();
//sheet2
var sheet = active_ss.getSheets()[0];
var range = sheet.getDataRange();
var values = range.getValues();
//sheet3
var sheet_bckp = active_ss.getSheets()[1];
var range_bckp = sheet_bckp.getDataRange();
var openAside = function(policy, position, backdrop) {
$scope.asideState = {
open: true,
position: position
};
function postClose() {
$scope.asideState.open = false;
}
@jdgarrido
jdgarrido / steps.txt
Last active August 29, 2015 14:19
description about Army of Two MS-Gold
the problem occur with Army Of Two from Xbox 360
first, download the game through the banner.
the game is on the stack of downloads game.
the problem
if you open an app, for example netflix, the download manager pause the download game and then mark this as finished, but, this game is corrupted. at this point, you never see an alert of problem, only when you check your games on the console, the game doesn't appear
the solution
remove your corrupted game and then clean the cache of the disk.