Skip to content

Instantly share code, notes, and snippets.

View iPotaje's full-sized avatar

Emilio G.C. iPotaje

  • iPotaje
  • Lanzarote
  • 23:50 (UTC +01:00)
View GitHub Profile
@iPotaje
iPotaje / example.js
Created April 19, 2016 13:19
Example of Sequelize with sql.js
var lib = require('./patch.js');
var Sequelize = require('sequelize');
var sequelize = new Sequelize('sqlite://dbname', {dialectModulePath: 'sql.js'});
var User = sequelize.define('user', {
username: Sequelize.STRING,
birthday: Sequelize.DATE
});
@iPotaje
iPotaje / ShortIntroToScraping.rst
Last active December 15, 2020 19:57 — forked from bradmontgomery/ShortIntroToScraping.rst
Really short intro to scraping with Beautiful Soup and Requests
@iPotaje
iPotaje / EjemplosBatch.bat
Created December 15, 2020 17:36 — forked from HiroNakamura/EjemplosBatch.bat
Ejemplos de programas en Batch MS-DOS
@rem Ejemplos de código en Bat
@rem autor: yo
@rem Aqui hay varios scripts http://foro.elhacker.net/scripting/libreria_de_funciones_y_scripts_batch_actualizado_260507-t163184.0.html
goto :com1
@iPotaje
iPotaje / note.md
Created December 10, 2020 19:29
#ideas

Esto es algo pendiente

/* http://stackoverflow.com/a/23703655 */
.content {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
@iPotaje
iPotaje / gist:583e22e58d01a2b719ca8729fed67860
Created November 10, 2016 13:00
Move PDFs to parent directory and delete empty folders
mv */*.pdf .
find . -type d -empty -delete
git clone --bare url .git
[git clone --bare https://github.com/planetoftheweb/angular2.git .git]
git config --bool core.bare false #switch the bare repo to a normal version of the repo
git reset --hard
@iPotaje
iPotaje / gist:1fca82b3d508781d8059827f041dc0a2
Last active July 1, 2016 11:16 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@iPotaje
iPotaje / gist:5744254
Last active December 18, 2015 07:09
.htaccess skeleton
DirectoryIndex index.php
FallbackResource /slim/new/index.php
@iPotaje
iPotaje / gist:5618650
Created May 21, 2013 09:44
Prueba de gist
Gist is getting block