Skip to content

Instantly share code, notes, and snippets.

@davidgjordan
davidgjordan / generate-ssh-key.sh
Created October 27, 2020 01:49 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@davidgjordan
davidgjordan / Operaciones-Git
Created June 8, 2018 13:14 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@davidgjordan
davidgjordan / deepq.py
Created January 12, 2018 01:31 — forked from jonholifield/deepq.py
CartPole V1 Q-learning Solution
"""
Solve OpenAI Gym Cartpole V1 with DQN.
"""
import gym
import numpy as np
import tensorflow as tf
import math
@davidgjordan
davidgjordan / style-angular.txt
Last active August 28, 2017 14:51
Styles Background poner backgruond mediante styles
import { Component} from '@angular/core';
import { DomSanitizer} from '@angular/platform-browser'
@Component({
selector: 'app-books',
templateUrl: './books.component.html'
})
export class BooksComponent implements OnInit {
public urlImage:string;
constructor(private _sanitizer:DomSanitizer) {
this.urlImage = "assets/img/project-2.jpg" ;
@davidgjordan
davidgjordan / routerLink.html
Last active August 28, 2017 14:52
RouterLink and RouterLinkActive
@davidgjordan
davidgjordan / animate.css
Created August 12, 2017 00:34
Animade FadeIn Css
/*Animaciones*/
.animated {
animation-duration: 1s;
animation-fill-mode: both;
}
@keyframes fadeIn {
from {
opacity: 0;
}
@davidgjordan
davidgjordan / app.routing.ts
Last active August 25, 2017 00:22
Routing Angular 4
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
//importamos los componentes
import { AboutComponent, PortafolioComponent, PortafolioItemComponent } from './components/index.paginas';
//arrray con la configuracion de rutas
const APP_ROUTES:Routes =[
@davidgjordan
davidgjordan / index.html
Last active August 5, 2017 23:41
HTML: Codigo Basico
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pagina del Repositorio</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>