Skip to content

Instantly share code, notes, and snippets.

View iPotaje's full-sized avatar

Emilio G.C. iPotaje

  • iPotaje
  • Lanzarote
  • 13:15 (UTC +01:00)
View GitHub Profile
@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 / 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 / gist:ef6d086fa17b0736b6a2
Created November 24, 2015 18:40
gulpfile.js For angular, angular-route, browserify, watchify and babelify
var gulp = require('gulp');
var dest = {
preDirectory : 'pre',
directory : 'dist',
bundle : '/' + 'all.js'
};
var src = {
webserver : '.',
@iPotaje
iPotaje / .jshintrc.js
Last active August 29, 2015 14:14 — forked from connor/.jshintrc.js
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.